* printcmd.c (display_uses_solib_p): Remove variable section.  Access
	objfile via SYMBOL_SYMTAB.
This commit is contained in:
Jan Kratochvil 2010-01-26 23:40:13 +00:00
parent c57a9d51fc
commit 52334bf503
2 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
* printcmd.c (display_uses_solib_p): Remove variable section. Access
objfile via SYMBOL_SYMTAB.
2010-01-26 Tom Tromey <tromey@redhat.com>
PR exp/7643:

View file

@ -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;