summaryrefslogtreecommitdiff
path: root/gdb/dwarf2loc.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-01-18 18:32:35 +0000
committerTom Tromey <tromey@redhat.com>2013-01-18 18:32:35 +0000
commit46f352282bbb75ac5aa5d0b1d15eaf206c5bcf51 (patch)
tree764df6d6ffd75d7b87fdfedc48acfac8945fbd72 /gdb/dwarf2loc.c
parent50701cc170a7c10a72e5ec2c7c6ed31057a31d43 (diff)
downloadbinutils-gdb-46f352282bbb75ac5aa5d0b1d15eaf206c5bcf51.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.c1
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)
{