diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-05-03 19:13:04 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-05-03 19:13:04 +0000 |
commit | 92bf2b80f20268d032bb7f55103514324ff939b9 (patch) | |
tree | 073b7936e0f7136bc12cee866383c3f68b2cf627 /gdb/tui | |
parent | 633a0b73d4990a24384ff4fe24c04e22b5e1204e (diff) | |
download | gdb-92bf2b80f20268d032bb7f55103514324ff939b9.zip gdb-92bf2b80f20268d032bb7f55103514324ff939b9.tar.gz gdb-92bf2b80f20268d032bb7f55103514324ff939b9.tar.bz2 |
2003-05-03 Andrew Cagney <cagney@redhat.com>
* disasm.h (print_insn): Declare.
* disasm.c (init_gdb_disassemble_info): New function.
(gdb_disassembly): Call init_gdb_disassemble_info.
(gdb_print_insn): New function.
* v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
* mcore-tdep.c: Include "disasm.h"
(mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
* d10v-tdep.c: Include "disasm.h".
(display_trace): Call gdb_print_insn, instead of print_insn.
(print_insn): Delete function.
* printcmd.c: Include "disasm.h".
(print_insn): Delete function.
(print_formatted): Call gdb_print_insn, instead of print_insn.
* Makefile.in (printcmd.o): Update dependencies.
(mcore-tdep.o, d10v-tdep.o): Ditto.
2003-05-03 Andrew Cagney <cagney@redhat.com>
* tuiDisassem.c (tui_disassemble): Call gdb_print_insn, instead of
TARGET_PRINT_INSN. Do not initialize a disassemble_info object.
Diffstat (limited to 'gdb/tui')
-rw-r--r-- | gdb/tui/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/tui/tuiDisassem.c | 18 |
2 files changed, 6 insertions, 17 deletions
diff --git a/gdb/tui/ChangeLog b/gdb/tui/ChangeLog index 3de8973..0da5591 100644 --- a/gdb/tui/ChangeLog +++ b/gdb/tui/ChangeLog @@ -1,3 +1,8 @@ +2003-05-03 Andrew Cagney <cagney@redhat.com> + + * tuiDisassem.c (tui_disassemble): Call gdb_print_insn, instead of + TARGET_PRINT_INSN. Do not initialize a disassemble_info object. + 2003-04-30 Andrew Cagney <cagney@redhat.com> * tuiDisassem.c (tui_disassemble): Use diff --git a/gdb/tui/tuiDisassem.c b/gdb/tui/tuiDisassem.c index eaf75df..0ddf32c 100644 --- a/gdb/tui/tuiDisassem.c +++ b/gdb/tui/tuiDisassem.c @@ -68,26 +68,10 @@ static CORE_ADDR tui_disassemble (struct tui_asm_line* lines, CORE_ADDR pc, int count) { struct ui_file *gdb_dis_out; - disassemble_info asm_info; /* now init the ui_file structure */ gdb_dis_out = tui_sfileopen (256); - /* FIXME: cagney/2003-04-28: Should instead be using the generic - disassembler but first need to clean that up and stop it trying - to access the exec file. */ - - memcpy (&asm_info, &deprecated_tm_print_insn_info, sizeof (asm_info)); - asm_info.stream = gdb_dis_out; - - if (TARGET_BYTE_ORDER == BFD_ENDIAN_BIG) - asm_info.endian = BFD_ENDIAN_BIG; - else - asm_info.endian = BFD_ENDIAN_LITTLE; - - if (TARGET_ARCHITECTURE != NULL) - asm_info.mach = TARGET_ARCHITECTURE->mach; - /* Now construct each line */ for (; count > 0; count--, lines++) { @@ -102,7 +86,7 @@ tui_disassemble (struct tui_asm_line* lines, CORE_ADDR pc, int count) ui_file_rewind (gdb_dis_out); - pc = pc + TARGET_PRINT_INSN (pc, &asm_info); + pc = pc + gdb_print_insn (pc, gdb_dis_out); lines->insn = xstrdup (tui_file_get_strbuf (gdb_dis_out)); |