gdb: pass program space to have_{full,partial}_symbols

Make the current program space reference bubble up one level.

Change-Id: I19c4fc2ca955f9c828ef426a077b43983865697b
Approved-By: Tom Tromey <tom@tromey.com>
Reviewed-By: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
This commit is contained in:
Simon Marchi
2024-05-16 16:37:06 -04:00
committed by Simon Marchi
parent cc7541ce5e
commit 9c067e2844
15 changed files with 48 additions and 37 deletions

View File

@@ -932,14 +932,13 @@ extern bool objfile_has_full_symbols (objfile *objfile);
extern bool objfile_has_symbols (objfile *objfile);
/* Return true if any objfile of the current program space has partial
symbols. */
/* Return true if any objfile of PSPACE has partial symbols. */
extern bool have_partial_symbols ();
extern bool have_partial_symbols (program_space *pspace);
/* Return true if any objfile of the current program space has full symbols. */
/* Return true if any objfile of PSPACE has full symbols. */
extern bool have_full_symbols ();
extern bool have_full_symbols (program_space *pspace);
extern void objfile_set_sym_fns (struct objfile *objfile,
const struct sym_fns *sf);
@@ -966,10 +965,9 @@ extern void objfile_purge_solibs (program_space *pspace);
/* Functions for dealing with the minimal symbol table, really a misc
address<->symbol mapping for things we don't have debug symbols for. */
/* Return true if any objfile of the current program space has minimal
symbols. */
/* Return true if any objfile of PSPACE has minimal symbols. */
extern bool have_minimal_symbols ();
extern bool have_minimal_symbols (program_space *pspace);
extern struct obj_section *find_pc_section (CORE_ADDR pc);