diff options
author | Roland McGrath <roland@redhat.com> | 2008-08-07 08:39:41 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2008-08-07 08:39:41 +0000 |
commit | 1d8bb25cac06b5af57f8733e5ea7a068a79edfe0 (patch) | |
tree | f794a75ef8e1f324185d2850e6e4da59323fe9ca /libdwfl/dwfl_module_addrsym.c | |
parent | 9d2f3ee2554185a9df70f434eddc4405a4aff0fa (diff) | |
download | android_external_elfutils-1d8bb25cac06b5af57f8733e5ea7a068a79edfe0.tar.gz android_external_elfutils-1d8bb25cac06b5af57f8733e5ea7a068a79edfe0.tar.bz2 android_external_elfutils-1d8bb25cac06b5af57f8733e5ea7a068a79edfe0.zip |
src/
(find_symbol): Likewise.
Convert plain number, or handle strings like "(section)+offset"
or "symbol+offset".
Diffstat (limited to 'libdwfl/dwfl_module_addrsym.c')
-rw-r--r-- | libdwfl/dwfl_module_addrsym.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libdwfl/dwfl_module_addrsym.c b/libdwfl/dwfl_module_addrsym.c index f16de116..bc1d556e 100644 --- a/libdwfl/dwfl_module_addrsym.c +++ b/libdwfl/dwfl_module_addrsym.c @@ -1,5 +1,5 @@ /* Find debugging and symbol information for a module in libdwfl. - Copyright (C) 2005, 2006, 2007 Red Hat, Inc. + Copyright (C) 2005, 2006, 2007, 2008 Red Hat, Inc. This file is part of Red Hat elfutils. Red Hat elfutils is free software; you can redistribute it and/or modify @@ -117,6 +117,7 @@ dwfl_module_addrsym (Dwfl_Module *mod, GElf_Addr addr, GElf_Word shndx; const char *name = INTUSE(dwfl_module_getsym) (mod, i, &sym, &shndx); if (name != NULL + && sym.st_shndx != SHN_UNDEF && sym.st_value <= addr && (sym.st_size == 0 || addr - sym.st_value < sym.st_size)) { |