diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2009-11-11 04:59:48 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2009-11-11 04:59:48 +0000 |
commit | 9b14d7aa417b709eb41369e33b6652a1961313c9 (patch) | |
tree | 70c545ae067df8ec1f16e0641423ffa9b4dce2dc /gdb/objfiles.c | |
parent | ee2fb9eb60f34103739b42fbc70431cb6cdf141e (diff) | |
download | gdb-9b14d7aa417b709eb41369e33b6652a1961313c9.zip gdb-9b14d7aa417b709eb41369e33b6652a1961313c9.tar.gz gdb-9b14d7aa417b709eb41369e33b6652a1961313c9.tar.bz2 |
gdb/
* objfiles.c (objfile_relocate): Update also the field psymtabs_addrmap.
gdb/testsuite/
* gdb.dwarf2/dw2-ranges.exp: Call runto_main.
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r-- | gdb/objfiles.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c index 48f2613..4728190 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -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; |