projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add virtual destructor to tui_layout_base
[deliverable/binutils-gdb.git]
/
gdb
/
symfile.c
diff --git
a/gdb/symfile.c
b/gdb/symfile.c
index d2ed1ccacdfa5a2a59ffeb5a3353dd6052ee1698..5ca89b45b350f1cb4ff71a7a6616aa7f21ec9105 100644
(file)
--- a/
gdb/symfile.c
+++ b/
gdb/symfile.c
@@
-44,7
+44,7
@@
#include "completer.h"
#include "bcache.h"
#include "hashtab.h"
#include "completer.h"
#include "bcache.h"
#include "hashtab.h"
-#include "readline/
readlin
e.h"
+#include "readline/
tild
e.h"
#include "block.h"
#include "observable.h"
#include "exec.h"
#include "block.h"
#include "observable.h"
#include "exec.h"
@@
-809,7
+809,7
@@
read_symbols (struct objfile *objfile, symfile_add_flags add_flags)
}
}
if ((add_flags & SYMFILE_NO_READ) == 0)
}
}
if ((add_flags & SYMFILE_NO_READ) == 0)
- require_partial_symbols (objfile,
0
);
+ require_partial_symbols (objfile,
false
);
}
/* Initialize entry point information for this objfile. */
}
/* Initialize entry point information for this objfile. */
@@
-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);
}
@@
-1044,7
+1044,7
@@
finish_new_objfile (struct objfile *objfile, symfile_add_flags add_flags)
For NAME description see the objfile constructor.
ADD_FLAGS encodes verbosity, whether this is main symbol file or
For NAME description see the objfile constructor.
ADD_FLAGS encodes verbosity, whether this is main symbol file or
- extra, such as dynamically loaded code, and what to do with breakpoins.
+ extra, such as dynamically loaded code, and what to do with breakpoin
t
s.
ADDRS is as described for syms_from_objfile_1, above.
ADDRS is ignored when SYMFILE_MAINLINE bit is set in ADD_FLAGS.
ADDRS is as described for syms_from_objfile_1, above.
ADDRS is ignored when SYMFILE_MAINLINE bit is set in ADD_FLAGS.
@@
-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 = new struct objfile (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)
@@
-1700,7
+1697,7
@@
set_initial_language (void)
struct symbol *sym = lookup_symbol (name, NULL, VAR_DOMAIN, NULL).symbol;
if (sym != NULL)
struct symbol *sym = lookup_symbol (name, NULL, VAR_DOMAIN, NULL).symbol;
if (sym != NULL)
- lang =
SYMBOL_LANGUAGE (sym
);
+ lang =
sym->language (
);
}
if (lang == language_unknown)
}
if (lang == language_unknown)
@@
-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.0266 seconds
and
4
git commands to generate.