aboutsummaryrefslogtreecommitdiff
path: root/gdb/disasm.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-06-19 17:30:37 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-06-19 17:30:37 +0000
commit7f5c84d395320e610b6cf45e1adfe97ba3122131 (patch)
treecd9c88e13c3f0eaf454646839cf232e52296962f /gdb/disasm.c
parentf73e88f92fc5c54b19418144cb4b3cf9b6beff36 (diff)
downloadgdb-7f5c84d395320e610b6cf45e1adfe97ba3122131.zip
gdb-7f5c84d395320e610b6cf45e1adfe97ba3122131.tar.gz
gdb-7f5c84d395320e610b6cf45e1adfe97ba3122131.tar.bz2
2007-06-19 Markus Deuling <deuling@de.ibm.com>
* gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn. * disasm.c (dump_insns, gdb_print_insn): Likewise. * gdbarch.c, gdbarch.h: Regenerate.
Diffstat (limited to 'gdb/disasm.c')
-rw-r--r--gdb/disasm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/disasm.c b/gdb/disasm.c
index 1c050c9..168d7ee 100644
--- a/gdb/disasm.c
+++ b/gdb/disasm.c
@@ -135,7 +135,7 @@ dump_insns (struct ui_out *uiout, struct disassemble_info * di,
xfree (name);
ui_file_rewind (stb->stream);
- pc += TARGET_PRINT_INSN (pc, di);
+ pc += gdbarch_print_insn (current_gdbarch, pc, di);
ui_out_field_stream (uiout, "inst", stb);
ui_file_rewind (stb->stream);
do_cleanups (ui_out_chain);
@@ -393,5 +393,5 @@ int
gdb_print_insn (CORE_ADDR memaddr, struct ui_file *stream)
{
struct disassemble_info di = gdb_disassemble_info (current_gdbarch, stream);
- return TARGET_PRINT_INSN (memaddr, &di);
+ return gdbarch_print_insn (current_gdbarch, memaddr, &di);
}