* gdbtk.c (gdb_disassemble): Rework disassemble_info initialization.
authorDavid Edelsohn <dje.gcc@gmail.com>
Tue, 23 Jan 1996 23:09:05 +0000 (23:09 +0000)
committerDavid Edelsohn <dje.gcc@gmail.com>
Tue, 23 Jan 1996 23:09:05 +0000 (23:09 +0000)
Pass fprintf_unfiltered to INIT_DISASSEMBLE_INFO.
* printcmd.c (print_insn): Likewise.

gdb/ChangeLog
gdb/gdbtk.c

index a0c947f64854adfe38877eacabcbfe104d85b790..129681a251607965bd63d0c53eed8fc6e6115445 100644 (file)
@@ -28,6 +28,8 @@ Tue Jan 23 13:08:26 1996  Jeffrey A Law  (law@cygnus.com)
 Tue Jan 23 09:00:48 1996  Doug Evans  <dje@charmed.cygnus.com>
 
        * gdbtk.c (gdb_disassemble): Rework disassemble_info initialization.
+       Pass fprintf_unfiltered to INIT_DISASSEMBLE_INFO.
+       * printcmd.c (print_insn): Likewise.
 
 Mon Jan 22 16:59:40 1996  Stan Shebs  <shebs@andros.cygnus.com>
 
index 3132e9ac7b150871863496304099a5b38e5927cf..dd99f6944277c7b3d3665f2216216ea7aae5f955 100644 (file)
@@ -794,8 +794,8 @@ gdb_disassemble (clientData, interp, argc, argv)
 
   if (! di_initialized)
     {
-      INIT_DISASSEMBLE_INFO (di, gdb_stdout);
-      di.fprintf_func = (fprintf_ftype) fprintf_unfiltered;
+      INIT_DISASSEMBLE_INFO (di, gdb_stdout,
+                            (fprintf_ftype) fprintf_unfiltered);
       di.memory_error_func = dis_asm_memory_error;
       di.print_address_func = dis_asm_print_address;
       di_initialized = 1;