Remove unused file_string parameter in gdb_disassembly
authorSimon Marchi <simon.marchi@polymtl.ca>
Thu, 2 Feb 2017 03:54:35 +0000 (22:54 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Thu, 2 Feb 2017 03:54:35 +0000 (22:54 -0500)
The file_string parameter was added in 8f0eea0 (sorry, no title back
then) and has never actually been used.

gdb/ChangeLog:

* disasm.h (gdb_disassembly): Remove file_string parameter.
* disasm.c (gdb_disassembly): Likewise.
* cli/cli-cmds.c (print_disassembly): Adapt.
* mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
* stack.c (do_gdb_disassembly): Likewise.

gdb/ChangeLog
gdb/cli/cli-cmds.c
gdb/disasm.c
gdb/disasm.h
gdb/mi/mi-cmd-disas.c
gdb/stack.c

index 8638ebabc3304336b03e7c9a6fd7f1b8d9619b9e..72d33e34f498936fa888542fc47cdadda4e606aa 100644 (file)
@@ -1,3 +1,11 @@
+2017-02-01  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * disasm.h (gdb_disassembly): Remove file_string parameter.
+       * disasm.c (gdb_disassembly): Likewise.
+       * cli/cli-cmds.c (print_disassembly): Adapt.
+       * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
+       * stack.c (do_gdb_disassembly): Likewise.
+
 2017-02-01  Andreas Arnez  <arnez@linux.vnet.ibm.com>
 
        * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
index 119f2202ce0a528a9393bc8b57d14706a4164689..b5c9d0ba78c6d531f9bc35e8f7ce33242f1f405e 100644 (file)
@@ -1148,7 +1148,7 @@ print_disassembly (struct gdbarch *gdbarch, const char *name,
                         paddress (gdbarch, low), paddress (gdbarch, high));
 
       /* Dump the specified range.  */
-      gdb_disassembly (gdbarch, current_uiout, 0, flags, -1, low, high);
+      gdb_disassembly (gdbarch, current_uiout, flags, -1, low, high);
 
       printf_filtered ("End of assembler dump.\n");
       gdb_flush (gdb_stdout);
index 897f2f1412f366f9cd28bd35ae4d96b6f3ad196e..9d36f151f30444a60086f491b055fbf97e82f6e5 100644 (file)
@@ -815,7 +815,7 @@ gdb_disassembler::print_insn (CORE_ADDR memaddr,
 
 void
 gdb_disassembly (struct gdbarch *gdbarch, struct ui_out *uiout,
-                char *file_string, int flags, int how_many,
+                int flags, int how_many,
                 CORE_ADDR low, CORE_ADDR high)
 {
   struct ui_file *stb = mem_fileopen ();
index 7bbfa31da421afba9399fd5f18d531c02bd6b7df..7374dbfe2dc073ea402c1d8850af3e3bb3c16873 100644 (file)
@@ -92,7 +92,7 @@ struct disasm_insn
 };
 
 extern void gdb_disassembly (struct gdbarch *gdbarch, struct ui_out *uiout,
-                            char *file_string, int flags, int how_many,
+                            int flags, int how_many,
                             CORE_ADDR low, CORE_ADDR high);
 
 /* Print the instruction at address MEMADDR in debugged memory,
index 2247d2c3e03a740e154cfd4c958c50c415f843ef..9338f7bdec4a1e5a87eb8a995423e25c8f052cf6 100644 (file)
@@ -187,7 +187,6 @@ mi_cmd_disassemble (char *command, char **argv, int argc)
     }
 
   gdb_disassembly (gdbarch, uiout,
-                  file_string,
                   disasm_flags,
                   how_many, low, high);
 
index 4c9e14e48e37febcf7a7642a999c32ca0eb64d4f..f48433109a353ede57fc47d1e4149a0a97304fe8 100644 (file)
@@ -770,7 +770,7 @@ do_gdb_disassembly (struct gdbarch *gdbarch,
 
   TRY
     {
-      gdb_disassembly (gdbarch, current_uiout, 0,
+      gdb_disassembly (gdbarch, current_uiout,
                       DISASSEMBLY_RAW_INSN, how_many,
                       low, high);
     }