* 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:
parent
a9f5cf7be2
commit
633c8b0a9d
2 changed files with 9 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue