aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbtk.c
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 /gdb/gdbtk.c
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).
Diffstat (limited to 'gdb/gdbtk.c')
-rw-r--r--gdb/gdbtk.c4
1 files changed, 2 insertions, 2 deletions
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);
}
}