From 55518360d847fab31e7a3d4f784908e1827fd5d8 Mon Sep 17 00:00:00 2001 From: Hui Zhu Date: Tue, 10 Mar 2009 08:53:53 +0000 Subject: [PATCH] * disasm.c (gdb_disassembly): Remove unused argument "line_num". * disasm.h (gdb_disassembly): Ditto. * cli/cli-cmds.c (print_disassembly): Ditto. * mi/mi-cmd-disas.c (mi_cmd_disassemble): Ditto. --- gdb/ChangeLog | 8 ++++++++ gdb/cli/cli-cmds.c | 2 +- gdb/disasm.c | 1 - gdb/disasm.h | 1 - gdb/mi/mi-cmd-disas.c | 1 - 5 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a69ef7f..ea4697a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +2009-03-10 Hui Zhu + + * disasm.c (gdb_disassembly): Remove unused argument + "line_num". + * disasm.h (gdb_disassembly): Ditto. + * cli/cli-cmds.c (print_disassembly): Ditto. + * mi/mi-cmd-disas.c (mi_cmd_disassemble): Ditto. + 2009-03-09 Paul Pluzhnikov * solib.c (solib_contains_address_p): New function. diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index 4d9c4f3..1b40b4b 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -905,7 +905,7 @@ print_disassembly (const char *name, CORE_ADDR low, CORE_ADDR high, int mixed) printf_filtered ("from %s to %s:\n", paddress (low), paddress (high)); /* Dump the specified range. */ - gdb_disassembly (uiout, 0, 0, mixed, -1, low, high); + gdb_disassembly (uiout, 0, mixed, -1, low, high); printf_filtered ("End of assembler dump.\n"); gdb_flush (gdb_stdout); diff --git a/gdb/disasm.c b/gdb/disasm.c index e6533b0..4ea5137 100644 --- a/gdb/disasm.c +++ b/gdb/disasm.c @@ -351,7 +351,6 @@ gdb_disassemble_info (struct gdbarch *gdbarch, struct ui_file *file) void gdb_disassembly (struct ui_out *uiout, char *file_string, - int line_num, int mixed_source_and_assembly, int how_many, CORE_ADDR low, CORE_ADDR high) { diff --git a/gdb/disasm.h b/gdb/disasm.h index c08af3d..2f9c370 100644 --- a/gdb/disasm.h +++ b/gdb/disasm.h @@ -24,7 +24,6 @@ struct ui_file; extern void gdb_disassembly (struct ui_out *uiout, char *file_string, - int line_num, int mixed_source_and_assembly, int how_many, CORE_ADDR low, CORE_ADDR high); diff --git a/gdb/mi/mi-cmd-disas.c b/gdb/mi/mi-cmd-disas.c index 4969406..0017cf8 100644 --- a/gdb/mi/mi-cmd-disas.c +++ b/gdb/mi/mi-cmd-disas.c @@ -154,7 +154,6 @@ mi_cmd_disassemble (char *command, char **argv, int argc) gdb_disassembly (uiout, file_string, - line_num, mixed_source_and_assembly, how_many, low, high); } -- 2.7.4