This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] dwarf2read.c recognize more DW_OP_*
- From: Elena Zannoni <ezannoni at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Tue, 1 Oct 2002 19:49:19 -0400
- Subject: [PATCH] dwarf2read.c recognize more DW_OP_*
I committed this.
Just adding new operators so that if there is an error, gdb will print
that it doesn't know how to handle the specific operator, instead of
just saying that it doesn't know how to handle OP_unknown.
Elena
2002-10-01 Elena Zannoni <ezannoni@redhat.com>
* dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
GNU operators.
Index: dwarf2read.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2read.c,v
retrieving revision 1.66
diff -u -p -r1.66 dwarf2read.c
--- dwarf2read.c 3 Sep 2002 17:32:11 -0000 1.66
+++ dwarf2read.c 1 Oct 2002 23:49:07 -0000
@@ -5961,6 +5961,18 @@ dwarf_stack_op_name (register unsigned o
return "DW_OP_xderef_size";
case DW_OP_nop:
return "DW_OP_nop";
+ /* DWARF 3 extensions. */
+ case DW_OP_push_object_address:
+ return "DW_OP_push_object_address";
+ case DW_OP_call2:
+ return "DW_OP_call2";
+ case DW_OP_call4:
+ return "DW_OP_call4";
+ case DW_OP_call_ref:
+ return "DW_OP_call_ref";
+ /* GNU extensions. */
+ case DW_OP_GNU_push_tls_address:
+ return "DW_OP_GNU_push_tls_address";
default:
return "OP_<unknown>";
}