* gdbtk.c (gdb_disassemble): Deference pointer to function before
authorJim Kingdon <jkingdon@engr.sgi.com>
Mon, 6 Feb 1995 04:39:14 +0000 (04:39 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Mon, 6 Feb 1995 04:39:14 +0000 (04:39 +0000)
calling it (pre-ANSI compilers generally require this).

gdb/ChangeLog
gdb/gdbtk.c

index 612dd6694454ef48d6ca4f699fdb137d30243e1d..9fc4383d2935666579a66c618ec454a5b0623b66 100644 (file)
@@ -1,3 +1,10 @@
+Sun Feb  5 20:32:44 1995  Jim Kingdon  (kingdon@lioth.cygnus.com)
+
+start-sanitize-gdbtk
+       * gdbtk.c (gdb_disassemble): Deference pointer to function before
+       calling it (pre-ANSI compilers generally require this).
+
+end-sanitize-gdbtk
 Fri Feb  3 16:47:31 1995  Kung Hsu  <kung@mexican.cygnus.com>
 
        * ser-go32-para.c (dos_read): fix syntax errors.
index 5951b08f5c256bc8973d9c29d1dcc86d9eefece8..751e2b9672b7005606fb8a4e33cf24992158f8e7 100644 (file)
@@ -950,7 +950,7 @@ gdb_disassemble (clientData, interp, argc, argv)
              fputs_unfiltered ("    ", gdb_stdout);
              print_address (pc, gdb_stdout);
              fputs_unfiltered (":\t    ", gdb_stdout);
-             pc += tm_print_insn (pc, &di);
+             pc += (*tm_print_insn) (pc, &di);
              fputs_unfiltered ("\n", gdb_stdout);
            }
        }
@@ -964,7 +964,7 @@ assembly_only:
          fputs_unfiltered ("    ", gdb_stdout);
          print_address (pc, gdb_stdout);
          fputs_unfiltered (":\t    ", gdb_stdout);
-         pc += tm_print_insn (pc, &di);
+         pc += (*tm_print_insn) (pc, &di);
          fputs_unfiltered ("\n", gdb_stdout);
        }
     }