aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2loc.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-09-14 19:39:59 +0000
committerTom Tromey <tromey@redhat.com>2010-09-14 19:39:59 +0000
commit7155d5780a29c29184d5794107f87a5f3b5e8517 (patch)
treed5ad57f24467b9dfd2d1e37fbbb29de54d1fda83 /gdb/dwarf2loc.c
parent515ed532307e751b26e34347ee7258f164eb053f (diff)
downloadgdb-7155d5780a29c29184d5794107f87a5f3b5e8517.zip
gdb-7155d5780a29c29184d5794107f87a5f3b5e8517.tar.gz
gdb-7155d5780a29c29184d5794107f87a5f3b5e8517.tar.bz2
gdb
PR symtab/8399: * dwarf2loc.c (locexpr_describe_location_piece): Don't call error for unrecognized frame base expression. gdb/testsuite PR symtab/8399: * gdb.threads/tls.exp: Remove kfail. Update expected output.
Diffstat (limited to 'gdb/dwarf2loc.c')
-rw-r--r--gdb/dwarf2loc.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c
index 909dba1..b2aecf2 100644
--- a/gdb/dwarf2loc.c
+++ b/gdb/dwarf2loc.c
@@ -1940,7 +1940,7 @@ locexpr_describe_location_piece (struct symbol *symbol, struct ui_file *stream,
struct symbol *framefunc;
int frame_reg = 0;
LONGEST frame_offset;
- const gdb_byte *base_data, *new_data;
+ const gdb_byte *base_data, *new_data, *save_data = data;
size_t base_size;
LONGEST base_offset = 0;
@@ -1984,10 +1984,7 @@ locexpr_describe_location_piece (struct symbol *symbol, struct ui_file *stream,
{
/* We don't know what to do with the frame base expression,
so we can't trace this variable; give up. */
- error (_("Cannot describe location of symbol \"%s\"; "
- "DWARF 2 encoding not handled, "
- "first opcode in base data is 0x%x."),
- SYMBOL_PRINT_NAME (symbol), base_data[0]);
+ return save_data;
}
regno = gdbarch_dwarf2_reg_to_regnum (gdbarch, frame_reg);