aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2009-11-11 04:59:48 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2009-11-11 04:59:48 +0000
commit9b14d7aa417b709eb41369e33b6652a1961313c9 (patch)
tree70c545ae067df8ec1f16e0641423ffa9b4dce2dc /gdb/testsuite
parentee2fb9eb60f34103739b42fbc70431cb6cdf141e (diff)
downloadgdb-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/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-ranges.exp6
2 files changed, 10 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index f17187d..b89a23e 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -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
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-ranges.exp b/gdb/testsuite/gdb.dwarf2/dw2-ranges.exp
index 61e1fe4..9109030 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-ranges.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-ranges.exp
@@ -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: