aboutsummaryrefslogtreecommitdiff
path: root/gdb/printcmd.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-01-26 23:40:13 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-01-26 23:40:13 +0000
commit52334bf503004f805976c92b2771d8b8b1ca1132 (patch)
tree6fd3f9ba587e57f1bdd421126cf81951fd3add03 /gdb/printcmd.c
parentc57a9d51fc67d96d1744e8f6531d1e51dd346ab8 (diff)
downloadgdb-52334bf503004f805976c92b2771d8b8b1ca1132.zip
gdb-52334bf503004f805976c92b2771d8b8b1ca1132.tar.gz
gdb-52334bf503004f805976c92b2771d8b8b1ca1132.tar.bz2
gdb/
* printcmd.c (display_uses_solib_p): Remove variable section. Access objfile via SYMBOL_SYMTAB.
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r--gdb/printcmd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index 88db08b..c8cb35c 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -1888,15 +1888,14 @@ display_uses_solib_p (const struct display *d,
{
const struct block *const block = elts[i + 1].block;
const struct symbol *const symbol = elts[i + 2].symbol;
- const struct obj_section *const section =
- SYMBOL_OBJ_SECTION (symbol);
if (block != NULL
&& solib_contains_address_p (solib,
block->startaddr))
return 1;
- if (section && section->objfile == solib->objfile)
+ /* SYMBOL_OBJ_SECTION (symbol) may be NULL. */
+ if (SYMBOL_SYMTAB (symbol)->objfile == solib->objfile)
return 1;
}
endpos -= oplen;