diff options
author | Stephane Carrez <stcarrez@nerim.fr> | 2001-07-16 22:10:07 +0000 |
---|---|---|
committer | Stephane Carrez <stcarrez@nerim.fr> | 2001-07-16 22:10:07 +0000 |
commit | a8080b7fbfaf3a5916b4ce95f097a890a48fc878 (patch) | |
tree | c9d430e80a775a6c0a64320fa999142f881758a5 /gdb | |
parent | 2a5127c4e3c45c140abc4450afcbe5f9e98db03e (diff) | |
download | gdb-a8080b7fbfaf3a5916b4ce95f097a890a48fc878.zip gdb-a8080b7fbfaf3a5916b4ce95f097a890a48fc878.tar.gz gdb-a8080b7fbfaf3a5916b4ce95f097a890a48fc878.tar.bz2 |
* tuiDisassem.c (tuiSetDisassemContent): Use tm_print_insn_info
to disassemble in the curses window.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/tui/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/tui/tuiDisassem.c | 7 |
2 files changed, 9 insertions, 3 deletions
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 <Stephane.Carrez@worldnet.fr> + * tuiDisassem.c (tuiSetDisassemContent): Use tm_print_insn_info + to disassemble in the curses window. + +2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr> + * 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; |