From 633c8b0a9d08b46a792cb99441f288d405e69633 Mon Sep 17 00:00:00 2001 From: "David D. Zuhn" Date: Sat, 29 May 1993 00:26:49 +0000 Subject: [PATCH] * printcmd.c (print_address_symbolic): turn this into an assigment instead of an initialization (many compilers don't accept structure initialization). --- gdb/ChangeLog | 6 ++++++ gdb/printcmd.c | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f3776605b7f..429b9ee1e6f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +Fri May 28 17:24:51 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com) + + * printcmd.c (print_address_symbolic): turn this into an assigment + instead of an initialization (many compilers don't accept + structure initialization). + Thu May 27 16:56:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com) * xcoffread.c (read_xcoff_symtab): If several program csects in one diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 6aca2f53e04..c6d4a6c29d9 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -591,7 +591,9 @@ print_address_symbolic (addr, stream, do_demangle, leadin) /* Append source filename and line number if desired. */ if (symbol && print_symbol_filename) { - struct symtab_and_line sal = find_pc_line (addr, 0); + struct symtab_and_line sal; + + sal = find_pc_line (addr, 0); if (sal.symtab) fprintf_filtered (stream, " at %s:%d", sal.symtab->filename, sal.line); } -- 2.30.2