mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-01 20:12:01 +08:00
* printcmd.c (print_address_symbolic): turn this into an assigment
instead of an initialization (many compilers don't accept structure initialization).
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user