aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1995-02-06 04:39:14 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1995-02-06 04:39:14 +0000
commitd039851f9f498c919eea58ee41058ade58d131dd (patch)
treeb73f44f5475203d08997608fcee39ad7fc2f0bb4
parentf78d026a5206f41771006a4d1ac3ba7320662f57 (diff)
downloadgdb-d039851f9f498c919eea58ee41058ade58d131dd.zip
gdb-d039851f9f498c919eea58ee41058ade58d131dd.tar.gz
gdb-d039851f9f498c919eea58ee41058ade58d131dd.tar.bz2
* gdbtk.c (gdb_disassemble): Deference pointer to function before
calling it (pre-ANSI compilers generally require this).
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/gdbtk.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 612dd66..9fc4383 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/gdbtk.c b/gdb/gdbtk.c
index 5951b08..751e2b9 100644
--- a/gdb/gdbtk.c
+++ b/gdb/gdbtk.c
@@ -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);
}
}