This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH]: Fix tuiDisassem.c


Hi!

I've committed the simple patch below that repairs tuiDisassem.c
to disassemble the code.  It also adds several includes to fix
some warnings.

	Stephane

2001-07-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>

	* tuiDisassem.c (tuiSetDisassemContent): Use tm_print_insn_info
	to disassemble in the curses window.
Index: tuiDisassem.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tuiDisassem.c,v
retrieving revision 1.4
diff -u -p -r1.4 tuiDisassem.c
--- tuiDisassem.c	2001/07/14 19:31:09	1.4
+++ tuiDisassem.c	2001/07/16 22:08:33
@@ -26,9 +26,11 @@
 
 #include "tui.h"
 #include "tuiData.h"
+#include "tuiWin.h"
 #include "tuiLayout.h"
 #include "tuiSourceWin.h"
 #include "tuiStack.h"
+#include "tui-file.h"
 
 
 /*****************************************
@@ -75,9 +77,8 @@ extern void strcat_address_numeric (CORE
 	  /* now init the ui_file structure */
 	  gdb_dis_out = tui_sfileopen (threshold);
 
-	  INIT_DISASSEMBLE_INFO_NO_ARCH (asmInfo, gdb_dis_out, (fprintf_ftype) fprintf_filtered);
-	  asmInfo.read_memory_func = dis_asm_read_memory;
-	  asmInfo.memory_error_func = dis_asm_memory_error;
+          asmInfo = tm_print_insn_info;
+          asmInfo.stream = gdb_dis_out;
 
 	  disassemWin->detail.sourceInfo.startLineOrAddr.addr = startAddr;
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]