aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
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/dwarf2read.c
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/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 6ddaecd..bb08841 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -7957,6 +7957,7 @@ dwarf2_const_value (struct attribute *attr, struct symbol *sym,
DW_ADDR (attr));
SYMBOL_CLASS (sym) = LOC_CONST_BYTES;
break;
+ case DW_FORM_string:
case DW_FORM_strp:
/* DW_STRING is already allocated on the obstack, point directly
to it. */