This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] mi-cmd-disas.c: use TARGET_PRINT_INSN (take 2)
- From: Elena Zannoni <ezannoni at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 14 Apr 2002 22:24:39 -0400
- Subject: [PATCH] mi-cmd-disas.c: use TARGET_PRINT_INSN (take 2)
Turns out that the change I committed in:
http://sources.redhat.com/ml/gdb-patches/2002-04/msg00161.html
got wiped out by the change I committed later in:
http://sources.redhat.com/ml/gdb-patches/2002-04/msg00165.html
The use of the old tm_print_insn was ok on most platforms, but not on
Powerpc, because Kevin just got rid of tm_print_insn in rs6000-tdep.c.
This was causing a core dump.
Thanks to cagney for finding this out.
Sorry about the trouble.
Elena
2002-04-14 Elena Zannoni <ezannoni@redhat.com>
* mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
instead of tm_print_insn.
Index: mi-cmd-disas.c
===================================================================
RCS file: /cvs/uberbaum/gdb/mi/mi-cmd-disas.c,v
retrieving revision 1.16
diff -u -r1.16 mi-cmd-disas.c
--- mi-cmd-disas.c 8 Apr 2002 00:43:22 -0000 1.16
+++ mi-cmd-disas.c 15 Apr 2002 02:21:08 -0000
@@ -123,7 +123,7 @@
xfree (name);
ui_file_rewind (stb->stream);
- pc += (*tm_print_insn) (pc, di);
+ pc += TARGET_PRINT_INSN (pc, di);
ui_out_field_stream (uiout, "inst", stb);
ui_file_rewind (stb->stream);
ui_out_tuple_end (uiout);