forked from Imagelibrary/binutils-gdb
* corelow.c (add_solib_stub): Copy to_sections changes from
core_ops to current_target after adding the shared libraries. * partial-stab.h (N_EXCL), dbxread.c (add_old_header_file, find_corresponding_bincl_psymtab): Change `repeated header not seen' error to a complaint, simplify complaint. * procfs.c (signalname, errnoname): Make `name' const. * symfile.c (reread_symbols): Use filename from old BFD to reopen the objfile. * values.c (record_latest_value): Don't record value in the history chain until we are sure there won't be an error.
This commit is contained in:
@@ -79,8 +79,13 @@ static int
|
||||
solib_add_stub (from_ttyp)
|
||||
char *from_ttyp;
|
||||
{
|
||||
SOLIB_ADD (NULL, *(int *)from_ttyp, &core_ops);
|
||||
return 0;
|
||||
SOLIB_ADD (NULL, *(int *)from_ttyp, &core_ops);
|
||||
|
||||
/* SOLIB_ADD usually modifies core_ops.to_sections, which has to
|
||||
be reflected in current_target. */
|
||||
current_target.to_sections = core_ops.to_sections;
|
||||
current_target.to_sections_end = core_ops.to_sections_end;
|
||||
return 0;
|
||||
}
|
||||
#endif /* SOLIB_ADD */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user