gdb/
* objfiles.c (objfile_relocate): Update also the field psymtabs_addrmap. gdb/testsuite/ * gdb.dwarf2/dw2-ranges.exp: Call runto_main.
This commit is contained in:
parent
ee2fb9eb60
commit
9b14d7aa41
@ -1,3 +1,7 @@
|
||||
2009-11-11 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
* objfiles.c (objfile_relocate): Update also the field psymtabs_addrmap.
|
||||
|
||||
2009-11-11 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
* configure.ac: Call ACX_LARGEFILE.
|
||||
|
@ -680,6 +680,10 @@ objfile_relocate (struct objfile *objfile, struct section_offsets *new_offsets)
|
||||
}
|
||||
}
|
||||
|
||||
if (objfile->psymtabs_addrmap)
|
||||
addrmap_relocate (objfile->psymtabs_addrmap,
|
||||
ANOFFSET (delta, SECT_OFF_TEXT (objfile)));
|
||||
|
||||
{
|
||||
struct partial_symtab *p;
|
||||
|
||||
|
@ -1,3 +1,7 @@
|
||||
2009-11-11 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
* gdb.dwarf2/dw2-ranges.exp: Call runto_main.
|
||||
|
||||
2009-11-09 Keith Seitz <keiths@redhat.com>
|
||||
|
||||
* gdb.cp/overload.exp: Add tests for resolving overloaded
|
||||
|
@ -55,6 +55,12 @@ gdb_start
|
||||
gdb_reinitialize_dir $srcdir/$subdir
|
||||
gdb_load ${binfile}
|
||||
|
||||
# Test also objfile->psymtabs_addrmap relocations for -fPIE -pie builds below.
|
||||
# On some targets it may possibly fail but the program is being started only
|
||||
# for the PIE build so try it anyway.
|
||||
|
||||
runto_main
|
||||
|
||||
# Correct output:
|
||||
# Line 39 of "../.././gdb/testsuite/gdb.dwarf2/dw2-ranges.S" starts at address 0x4 and ends at 0x8.
|
||||
# Wrong output:
|
||||
|
Loading…
x
Reference in New Issue
Block a user