mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-14 22:49:09 +00:00
2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
PR/symtab 11766: * gdb/objfiles.h (struct objfile) <addr_low>: New field. * gdb/solib.c (solib_read_symbols): Check for addr_low in equality test for objfile, initialize addr_low if needed.
This commit is contained in:
parent
f829b0eccc
commit
e4f6d2ecc4
@ -1,3 +1,10 @@
|
||||
2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
|
||||
|
||||
PR/symtab 11766:
|
||||
* gdb/objfiles.h (struct objfile) <addr_low>: New field.
|
||||
* gdb/solib.c (solib_read_symbols): Check for addr_low in
|
||||
equality test for objfile, initialize addr_low if needed.
|
||||
|
||||
2011-01-25 Pedro Alves <pedro@codesourcery.com>
|
||||
|
||||
* tui/tui-regs.c (tui_register_format): Remove dead code.
|
||||
|
@ -194,6 +194,8 @@ struct objfile
|
||||
|
||||
char *name;
|
||||
|
||||
CORE_ADDR addr_low;
|
||||
|
||||
/* Some flag bits for this objfile. */
|
||||
|
||||
unsigned short flags;
|
||||
|
@ -638,7 +638,8 @@ solib_read_symbols (struct so_list *so, int flags)
|
||||
/* Have we already loaded this shared object? */
|
||||
ALL_OBJFILES (so->objfile)
|
||||
{
|
||||
if (strcmp (so->objfile->name, so->so_name) == 0)
|
||||
if (strcmp (so->objfile->name, so->so_name) == 0
|
||||
&& so->objfile->addr_low == so->addr_low)
|
||||
break;
|
||||
}
|
||||
if (so->objfile != NULL)
|
||||
@ -648,6 +649,7 @@ solib_read_symbols (struct so_list *so, int flags)
|
||||
so->sections_end);
|
||||
so->objfile = symbol_file_add_from_bfd (so->abfd,
|
||||
flags, sap, OBJF_SHARED);
|
||||
so->objfile->addr_low = so->addr_low;
|
||||
free_section_addr_info (sap);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user