diff options
author | Tom Tromey <tromey@redhat.com> | 2013-01-18 18:32:33 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-01-18 18:32:33 +0000 |
commit | 5cfecc6f77699aca4cf21fb92b0a8e6cd43b8b6b (patch) | |
tree | e755bbcf19bc373f59556e1923c93c0f5916de69 /gdb/dwarf2loc.c | |
parent | ff99d75680f0ec9d72b3581c93dff41e2f22f5c9 (diff) | |
download | gdb-5cfecc6f77699aca4cf21fb92b0a8e6cd43b8b6b.tar.gz |
PR c++/14999:
* dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
Call require_rvalue.
gdb/testsuite
* gdb.dwarf2/trace-crash.s: New file.
* gdb.dwarf2/trace-crash.exp: New file.
Diffstat (limited to 'gdb/dwarf2loc.c')
-rw-r--r-- | gdb/dwarf2loc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c index 33300ee3231..2282febba23 100644 --- a/gdb/dwarf2loc.c +++ b/gdb/dwarf2loc.c @@ -2878,6 +2878,7 @@ dwarf2_compile_expr_to_ax (struct agent_expr *expr, struct axs_value *loc, op_ptr = safe_read_sleb128 (op_ptr, op_end, &offset); dwarf2_compile_expr_to_ax (expr, loc, arch, addr_size, datastart, datastart + datalen, per_cu); + require_rvalue (expr, loc); if (offset != 0) { |