mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 01:50:48 +00:00
* symfile.c (symbol_file_add): Move reinit_frame_cache call to
the callers of symbol_file_add. Gets rid of heuristic fence-post warnings on mips and alpha targets when the PC resides in a shared library which is not yet read in. * coff-solib.c (coff_solib_add), cxux-nat.c (add_shared_symbol_files), irix5-nat.c (solib_add), osfsolib.c (solib_add), remote-vx.c (vx_open), solib.c (solib_add): Add call to reinit_frame_cache after all shared libraries are read in. * remote-udi.c (udi_load), remote-vx.c (vx_load_command), symfile.c (symbol_file_command, add_symbol_file_command): Add call to reinit_frame_cache after symbol_file_add.
This commit is contained in:
@@ -642,6 +642,10 @@ vx_load_command (arg_string, from_tty)
|
||||
|
||||
/* FIXME, for now we ignore data_addr and bss_addr. */
|
||||
symbol_file_add (arg_string, from_tty, text_addr, 0, 0, 0);
|
||||
|
||||
/* Getting new symbols may change our opinion about what is
|
||||
frameless. */
|
||||
reinit_frame_cache ();
|
||||
}
|
||||
|
||||
#ifdef FIXME /* Not ready for prime time */
|
||||
@@ -1002,6 +1006,7 @@ vx_open (args, from_tty)
|
||||
struct ldfile *pLoadFile;
|
||||
int i;
|
||||
extern CLIENT *pClient;
|
||||
int symbols_added = 0;
|
||||
|
||||
if (!args)
|
||||
error_no_arg ("target machine name");
|
||||
@@ -1077,13 +1082,19 @@ vx_open (args, from_tty)
|
||||
/* Botches, FIXME:
|
||||
(1) Searches the PATH, not the source path.
|
||||
(2) data and bss are assumed to be at the usual offsets from text. */
|
||||
catch_errors (add_symbol_stub, (char *)pLoadFile, (char *)0,
|
||||
RETURN_MASK_ALL);
|
||||
if (catch_errors (add_symbol_stub, (char *)pLoadFile, (char *)0,
|
||||
RETURN_MASK_ALL))
|
||||
symbols_added = 1;
|
||||
#endif
|
||||
}
|
||||
printf_filtered ("Done.\n");
|
||||
|
||||
clnt_freeres (pClient, xdr_ldtabl, &loadTable);
|
||||
|
||||
/* Getting new symbols may change our opinion about what is
|
||||
frameless. */
|
||||
if (symbols_added)
|
||||
reinit_frame_cache ();
|
||||
}
|
||||
|
||||
/* Takes a task started up outside of gdb and ``attaches'' to it.
|
||||
|
||||
Reference in New Issue
Block a user