From a8080b7fbfaf3a5916b4ce95f097a890a48fc878 Mon Sep 17 00:00:00 2001 From: Stephane Carrez Date: Mon, 16 Jul 2001 22:10:07 +0000 Subject: * tuiDisassem.c (tuiSetDisassemContent): Use tm_print_insn_info to disassemble in the curses window. --- gdb/tui/ChangeLog | 5 +++++ gdb/tui/tuiDisassem.c | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'gdb') diff --git a/gdb/tui/ChangeLog b/gdb/tui/ChangeLog index 1e360ae..7a974b7 100644 --- a/gdb/tui/ChangeLog +++ b/gdb/tui/ChangeLog @@ -1,5 +1,10 @@ 2001-07-16 Stephane Carrez + * tuiDisassem.c (tuiSetDisassemContent): Use tm_print_insn_info + to disassemble in the curses window. + +2001-07-16 Stephane Carrez + * tui.h: Cleanup to avoid inclusion of curses includes. (TuiGenWinInfo, TuiGenWinInfoPtr): Move from here. * tuiData.h: To here; include curses includes here. diff --git a/gdb/tui/tuiDisassem.c b/gdb/tui/tuiDisassem.c index 55c0157..b80edd7 100644 --- a/gdb/tui/tuiDisassem.c +++ b/gdb/tui/tuiDisassem.c @@ -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_ADDR, int, char *, int); /* 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; -- cgit v1.1