mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
* symfile.c (set_initial_language): Update.
(deduce_language_from_filename): Argument type now const. * symtab.h (find_main_filename): Update. (deduce_language_from_filename): Update. * symtab.c (find_main_filename): Make result const. * dwarf2read.c (dw2_find_symbol_file): Change return type. * psymtab.c (find_symbol_file_from_partial): Change return type. * symfile.h (struct quick_symbol_functions) <find_symbol_file>: Make result const.
This commit is contained in:
@ -1617,14 +1617,16 @@ basic_lookup_transparent_type (const char *name)
|
||||
/* FIXME: What about languages without main() or specially linked
|
||||
executables that have no main() ? */
|
||||
|
||||
char *
|
||||
const char *
|
||||
find_main_filename (void)
|
||||
{
|
||||
struct objfile *objfile;
|
||||
char *result, *name = main_name ();
|
||||
char *name = main_name ();
|
||||
|
||||
ALL_OBJFILES (objfile)
|
||||
{
|
||||
const char *result;
|
||||
|
||||
if (!objfile->sf)
|
||||
continue;
|
||||
result = objfile->sf->qf->find_symbol_file (objfile, name);
|
||||
|
Reference in New Issue
Block a user