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.
This commit is contained in:
Tom Tromey
2013-01-18 18:32:35 +00:00
parent 50701cc170
commit 46f352282b
5 changed files with 348 additions and 0 deletions

View File

@@ -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)
{