mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-30 21:34:42 +08:00
* cli/cli-cmds.c (shell_escape): Use lbasename.
* coffread.c (coff_start_symtab): Constify parameter. (complete_symtab): Constify `name' parameter. (coff_symtab_read): Constify `filestring' local. (coff_getfilename): Constify return and `result' local. Use lbasename. * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename. * linux-fork.c (info_checkpoints_command): Use lbasename. * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename. * minsyms.c (lookup_minimal_symbol): Use lbasename. * nto-tdep.c (nto_find_and_open_solib): Use lbasename. * procfs.c (procfs_make_note_section): Use lbasename. * tui/tui-io.c (printable_part): Constity return and parameter. Use lbasename. (print_filename): Constify parameters, and local `s'. (tui_rl_display_match_list): Constify local `temp'.
This commit is contained in:
@ -584,14 +584,7 @@ info_checkpoints_command (char *arg, int from_tty)
|
||||
|
||||
sal = find_pc_line (pc, 0);
|
||||
if (sal.symtab)
|
||||
{
|
||||
char *tmp = strrchr (sal.symtab->filename, '/');
|
||||
|
||||
if (tmp)
|
||||
printf_filtered (_(", file %s"), tmp + 1);
|
||||
else
|
||||
printf_filtered (_(", file %s"), sal.symtab->filename);
|
||||
}
|
||||
printf_filtered (_(", file %s"), lbasename (sal.symtab->filename));
|
||||
if (sal.line)
|
||||
printf_filtered (_(", line %d"), sal.line);
|
||||
if (!sal.symtab && !sal.line)
|
||||
|
Reference in New Issue
Block a user