From 52334bf503004f805976c92b2771d8b8b1ca1132 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Tue, 26 Jan 2010 23:40:13 +0000 Subject: [PATCH] gdb/ * printcmd.c (display_uses_solib_p): Remove variable section. Access objfile via SYMBOL_SYMTAB. --- gdb/ChangeLog | 5 +++++ gdb/printcmd.c | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e891ecb2b1d..8851c2b827d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-01-27 Jan Kratochvil + + * printcmd.c (display_uses_solib_p): Remove variable section. Access + objfile via SYMBOL_SYMTAB. + 2010-01-26 Tom Tromey PR exp/7643: diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 88db08b01ce..c8cb35c3c18 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; -- 2.30.2