projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move free_all_objfiles to program_space
[deliverable/binutils-gdb.git]
/
gdb
/
symfile.c
diff --git
a/gdb/symfile.c
b/gdb/symfile.c
index eef27a8418ebaf1705865827104a44cafb3d9957..8852e2893a4f5657cdb5ea034020da2fbb564c7c 100644
(file)
--- a/
gdb/symfile.c
+++ b/
gdb/symfile.c
@@
-940,7
+940,7
@@
syms_from_objfile_1 (struct objfile *objfile,
if an error occurs during symbol reading. */
gdb::optional<clear_symtab_users_cleanup> defer_clear_users;
if an error occurs during symbol reading. */
gdb::optional<clear_symtab_users_cleanup> defer_clear_users;
-
std::unique_ptr<struct objfile>
objfile_holder (objfile);
+
objfile_up
objfile_holder (objfile);
/* If ADDRS is NULL, put together a dummy address list.
We now establish the convention that an addr of zero means
/* If ADDRS is NULL, put together a dummy address list.
We now establish the convention that an addr of zero means
@@
-958,7
+958,7
@@
syms_from_objfile_1 (struct objfile *objfile,
if (symfile_objfile != NULL)
{
if (symfile_objfile != NULL)
{
-
delete symfile_objfile
;
+
symfile_objfile->unlink ()
;
gdb_assert (symfile_objfile == NULL);
}
gdb_assert (symfile_objfile == NULL);
}
@@
-1093,10
+1093,7
@@
symbol_file_add_with_addrs (bfd *abfd, const char *name,
if (mainline)
flags |= OBJF_MAINLINE;
if (mainline)
flags |= OBJF_MAINLINE;
- objfile = objfile::make (abfd, name, flags);
-
- if (parent)
- add_separate_debug_objfile (objfile, parent);
+ objfile = objfile::make (abfd, name, flags, parent);
/* We either created a new mapped symbol table, mapped an existing
symbol table file which has not had initial symbol reading
/* We either created a new mapped symbol table, mapped an existing
symbol table file which has not had initial symbol reading
@@
-1254,7
+1251,7
@@
symbol_file_clear (int from_tty)
objfiles get stale by free_all_objfiles. */
no_shared_libraries (NULL, from_tty);
objfiles get stale by free_all_objfiles. */
no_shared_libraries (NULL, from_tty);
- free_all_objfiles ();
+
current_program_space->
free_all_objfiles ();
gdb_assert (symfile_objfile == NULL);
if (from_tty)
gdb_assert (symfile_objfile == NULL);
if (from_tty)
@@
-2441,7
+2438,7
@@
remove_symbol_file_command (const char *args, int from_tty)
objfile_name (objf)))
error (_("Not confirmed."));
objfile_name (objf)))
error (_("Not confirmed."));
-
delete objf
;
+
objf->unlink ()
;
clear_symtab_users (0);
}
clear_symtab_users (0);
}
@@
-2498,7
+2495,7
@@
reread_symbols (void)
/* If we get an error, blow away this objfile (not sure if
that is the correct response for things like shared
libraries). */
/* If we get an error, blow away this objfile (not sure if
that is the correct response for things like shared
libraries). */
-
std::unique_ptr<struct objfile>
objfile_holder (objfile);
+
objfile_up
objfile_holder (objfile);
/* We need to do this whenever any symbols go away. */
clear_symtab_users_cleanup defer_clear_users (0);
/* We need to do this whenever any symbols go away. */
clear_symtab_users_cleanup defer_clear_users (0);
This page took
0.025733 seconds
and
4
git commands to generate.