diff options
author | David D. Zuhn <zoo@cygnus> | 1993-05-29 00:26:49 +0000 |
---|---|---|
committer | David D. Zuhn <zoo@cygnus> | 1993-05-29 00:26:49 +0000 |
commit | 633c8b0a9d08b46a792cb99441f288d405e69633 (patch) | |
tree | a2911a08a7059f14b013fefc1dd0fdf34e4026f5 /gdb/printcmd.c | |
parent | a9f5cf7be244575ce3b775efe5b39d5ed3ef8b6d (diff) | |
download | gdb-633c8b0a9d08b46a792cb99441f288d405e69633.zip gdb-633c8b0a9d08b46a792cb99441f288d405e69633.tar.gz gdb-633c8b0a9d08b46a792cb99441f288d405e69633.tar.bz2 |
* printcmd.c (print_address_symbolic): turn this into an assigment
instead of an initialization (many compilers don't accept
structure initialization).
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r-- | gdb/printcmd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 6aca2f5..c6d4a6c 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); } |