aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.exp
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-07-27 21:18:40 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-07-27 21:18:40 +0000
commitd24f74ce456f68cf5a68b519dd08b96b971d88d6 (patch)
treeecfd6d6fdaa03ab3f2115235d22188e2fcca6210 /gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.exp
parent3396237fb5098bbd82b8e91fa67140af285840c0 (diff)
downloadgdb-d24f74ce456f68cf5a68b519dd08b96b971d88d6.zip
gdb-d24f74ce456f68cf5a68b519dd08b96b971d88d6.tar.gz
gdb-d24f74ce456f68cf5a68b519dd08b96b971d88d6.tar.bz2
gdb/testsuite/
* gdb.dwarf2/dw2-simple-locdesc.S: Change DWARF version to 3. (.Ldie26, .Ldie41, .Ldie4a, .Ldie54, .Ldie5b): Remove. (.Ldie30) Add as field "data4". (.Ldie32) Rename field "b" to "shl". (abbrev4) Change for the "data4" field. (abbrev5, abbrev6) Remove. * gdb.dwarf2/dw2-simple-locdesc.exp (p &s.b): Rename to ... (p &s.shl): ... here. Add comment. (p &s.data4): New.
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.exp')
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.exp8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.exp b/gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.exp
index 9fbca1b..8d39f88 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.exp
@@ -30,4 +30,10 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" object {}] != ""
clean_restart $executable
-gdb_test "p &s.b" { = \(int \*\) 0x1000000}
+# Re: [patch 2/2] Fix decode_locdesc for gcc-4.7.x optimized DWARF
+# http://sourceware.org/ml/gdb-patches/2011-07/msg00766.html
+gdb_test "p &s.shl" { = \(int \*\) 0x1000000}
+
+# Re: RFC: fix DW_AT_data_member_location buglet
+# http://sourceware.org/ml/gdb-patches/2011-05/msg00291.html
+gdb_test "p &s.data4" { = \(int \*\) 0x10000}