public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* [RFA] gdbtk-cmds.c: tm_print_insn
@ 2002-01-24 14:18 Elena Zannoni
  2002-02-05 19:48 ` Elena Zannoni
  0 siblings, 1 reply; 2+ messages in thread
From: Elena Zannoni @ 2002-01-24 14:18 UTC (permalink / raw)
  To: insight


Instead of using tm_print_insn directly, we should use the
TARGET_PRINT_INSN multiarch method.
I missed this in my change.

See the thread.
http://sources.redhat.com/ml/gdb-patches/2001-08/msg00255.html
http://sources.redhat.com/ml/gdb-patches/2001-09/msg00051.html

Elena

2002-01-23  Elena Zannoni  <ezannoni@redhat.com>

        * generic/gdbtk-cmds.c (gdbtk_load_asm, gdbtk_print_asm): Use 
        TARGET_PRINT_INSN instead of tm_print_insn.


Index: gdbtk-cmds.c
===================================================================
RCS file: /cvs/uberbaum/gdb/gdbtk/generic/gdbtk-cmds.c,v
retrieving revision 1.48
diff -u -p -r1.48 gdbtk-cmds.c
--- gdbtk-cmds.c	2002/01/08 20:21:44	1.48
+++ gdbtk-cmds.c	2002/01/24 22:15:32
@@ -2005,7 +2005,7 @@ gdbtk_load_asm (clientData, pc, di)
   gdb_flush (gdb_stdout);
 
   result_ptr->obj_ptr = client_data->result_obj[2];
-  pc += (*tm_print_insn) (pc, di);
+  pc += TARGET_PRINT_INSN (pc, di);
   gdb_flush (gdb_stdout);
 
   client_data->widget_line_no++;
@@ -2074,7 +2074,7 @@ gdbtk_print_asm (clientData, pc, di)
   fputs_unfiltered ("    ", gdb_stdout);
   print_address (pc, gdb_stdout);
   fputs_unfiltered (":\t    ", gdb_stdout);
-  pc += (*tm_print_insn) (pc, di);
+  pc += TARGET_PRINT_INSN (pc, di);
   fputs_unfiltered ("\n", gdb_stdout);
   gdb_flush (gdb_stdout);
   return pc;

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [RFA] gdbtk-cmds.c: tm_print_insn
  2002-01-24 14:18 [RFA] gdbtk-cmds.c: tm_print_insn Elena Zannoni
@ 2002-02-05 19:48 ` Elena Zannoni
  0 siblings, 0 replies; 2+ messages in thread
From: Elena Zannoni @ 2002-02-05 19:48 UTC (permalink / raw)
  To: insight

Elena Zannoni writes:
 > 

Committed. (After private approval from Keith).

Elena


 > Instead of using tm_print_insn directly, we should use the
 > TARGET_PRINT_INSN multiarch method.
 > I missed this in my change.
 > 
 > See the thread.
 > http://sources.redhat.com/ml/gdb-patches/2001-08/msg00255.html
 > http://sources.redhat.com/ml/gdb-patches/2001-09/msg00051.html
 > 
 > Elena
 > 
 > 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
 > 
 >         * generic/gdbtk-cmds.c (gdbtk_load_asm, gdbtk_print_asm): Use 
 >         TARGET_PRINT_INSN instead of tm_print_insn.
 > 
 > 
 > Index: gdbtk-cmds.c
 > ===================================================================
 > RCS file: /cvs/uberbaum/gdb/gdbtk/generic/gdbtk-cmds.c,v
 > retrieving revision 1.48
 > diff -u -p -r1.48 gdbtk-cmds.c
 > --- gdbtk-cmds.c	2002/01/08 20:21:44	1.48
 > +++ gdbtk-cmds.c	2002/01/24 22:15:32
 > @@ -2005,7 +2005,7 @@ gdbtk_load_asm (clientData, pc, di)
 >    gdb_flush (gdb_stdout);
 >  
 >    result_ptr->obj_ptr = client_data->result_obj[2];
 > -  pc += (*tm_print_insn) (pc, di);
 > +  pc += TARGET_PRINT_INSN (pc, di);
 >    gdb_flush (gdb_stdout);
 >  
 >    client_data->widget_line_no++;
 > @@ -2074,7 +2074,7 @@ gdbtk_print_asm (clientData, pc, di)
 >    fputs_unfiltered ("    ", gdb_stdout);
 >    print_address (pc, gdb_stdout);
 >    fputs_unfiltered (":\t    ", gdb_stdout);
 > -  pc += (*tm_print_insn) (pc, di);
 > +  pc += TARGET_PRINT_INSN (pc, di);
 >    fputs_unfiltered ("\n", gdb_stdout);
 >    gdb_flush (gdb_stdout);
 >    return pc;

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-02-06  3:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-24 14:18 [RFA] gdbtk-cmds.c: tm_print_insn Elena Zannoni
2002-02-05 19:48 ` Elena Zannoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).