aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dwarf2/dw2-strp.exp
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2009-05-21 07:15:47 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2009-05-21 07:15:47 +0000
commit4ac3663827c86f3e5bf756eafca995562dbd2ca2 (patch)
treeae424a20340004904cd10933d90e1feae17d8ee6 /gdb/testsuite/gdb.dwarf2/dw2-strp.exp
parent32e9651ca5f5935711578e56acee13cbc7348df3 (diff)
downloadgdb-4ac3663827c86f3e5bf756eafca995562dbd2ca2.zip
gdb-4ac3663827c86f3e5bf756eafca995562dbd2ca2.tar.gz
gdb-4ac3663827c86f3e5bf756eafca995562dbd2ca2.tar.bz2
gdb/
Fix parsing DW_AT_const_value using DW_FORM_string. * dwarf2read.c (dwarf2_const_value <DW_FORM_string>): New. gdb/testsuite/ * gdb.dwarf2/dw2-strp.exp (p a_string2, ptype a_string2): New. * gdb.dwarf2/dw2-strp.S (a_string2): New.
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2/dw2-strp.exp')
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-strp.exp5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-strp.exp b/gdb/testsuite/gdb.dwarf2/dw2-strp.exp
index 2201d30..41620a4 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-strp.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-strp.exp
@@ -48,5 +48,8 @@ gdb_start
gdb_reinitialize_dir $srcdir/$subdir
gdb_load ${binfile}
-gdb_test "p a_string" "\\\$1 = \"hello world!\\\\n\""
+gdb_test "p a_string" " = \"hello world!\\\\n\""
gdb_test "ptype a_string" "type = char \\\[14\\\]"
+
+gdb_test "p a_string2" " = \"hello world2\\\\n\""
+gdb_test "ptype a_string2" "type = char \\\[14\\\]"