diff options
author | Daniel Jacobowitz <drow@false.org> | 2004-01-17 23:09:29 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2004-01-17 23:09:29 +0000 |
commit | b263358a72927359d11acefa99ce0fead19a90bd (patch) | |
tree | 913daedb4734aae9f1d9b22462f89b854f0d42d6 /gdb/dwarf2expr.c | |
parent | c087d6782a2f02147d91b1d16819e0ac273552f5 (diff) | |
download | gdb-b263358a72927359d11acefa99ce0fead19a90bd.zip gdb-b263358a72927359d11acefa99ce0fead19a90bd.tar.gz gdb-b263358a72927359d11acefa99ce0fead19a90bd.tar.bz2 |
Suggested by George Anzinger.
* dwarf2expr.c (execute_stack_op): Fetch the second item from the
correct stack offset. Include unknown opcode numbers in the error
message.
Diffstat (limited to 'gdb/dwarf2expr.c')
-rw-r--r-- | gdb/dwarf2expr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dwarf2expr.c b/gdb/dwarf2expr.c index cf00929..50baced 100644 --- a/gdb/dwarf2expr.c +++ b/gdb/dwarf2expr.c @@ -562,7 +562,7 @@ execute_stack_op (struct dwarf_expr_context *ctx, unsigned char *op_ptr, second = dwarf_expr_fetch (ctx, 0); dwarf_expr_pop (ctx); - first = dwarf_expr_fetch (ctx, 1); + first = dwarf_expr_fetch (ctx, 0); dwarf_expr_pop (ctx); val1 = value_from_longest (unsigned_address_type (), first); @@ -660,7 +660,7 @@ execute_stack_op (struct dwarf_expr_context *ctx, unsigned char *op_ptr, goto no_push; default: - error ("Unhandled dwarf expression opcode"); + error ("Unhandled dwarf expression opcode 0x%x", op); } /* Most things push a result value. */ |