From d039851f9f498c919eea58ee41058ade58d131dd Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Mon, 6 Feb 1995 04:39:14 +0000 Subject: [PATCH] * gdbtk.c (gdb_disassemble): Deference pointer to function before calling it (pre-ANSI compilers generally require this). --- gdb/ChangeLog | 7 +++++++ gdb/gdbtk.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 612dd669445..9fc4383d293 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 * ser-go32-para.c (dos_read): fix syntax errors. diff --git a/gdb/gdbtk.c b/gdb/gdbtk.c index 5951b08f5c2..751e2b9672b 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); } } -- 2.30.2