projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ld testsuite fixes for alpha
[deliverable/binutils-gdb.git]
/
gdb
/
symfile.c
diff --git
a/gdb/symfile.c
b/gdb/symfile.c
index dd8192a67fbba4f40d2b68a3f8e9b0ad86318d50..b29f864b3735989392dae7684754e7958413a08d 100644
(file)
--- a/
gdb/symfile.c
+++ b/
gdb/symfile.c
@@
-2543,6
+2543,11
@@
reread_symbols (void)
will need to be called (see discussion below). */
obstack_free (&objfile->objfile_obstack, 0);
objfile->sections = NULL;
will need to be called (see discussion below). */
obstack_free (&objfile->objfile_obstack, 0);
objfile->sections = NULL;
+ objfile->section_offsets.clear ();
+ objfile->sect_index_bss = -1;
+ objfile->sect_index_data = -1;
+ objfile->sect_index_rodata = -1;
+ objfile->sect_index_text = -1;
objfile->compunit_symtabs = NULL;
objfile->template_symbols = NULL;
objfile->static_links.reset (nullptr);
objfile->compunit_symtabs = NULL;
objfile->template_symbols = NULL;
objfile->static_links.reset (nullptr);
@@
-2597,6
+2602,9
@@
reread_symbols (void)
objfiles_changed ();
objfiles_changed ();
+ /* Recompute section offsets and section indices. */
+ objfile->sf->sym_offsets (objfile, {});
+
read_symbols (objfile, 0);
if (!objfile_has_symbols (objfile))
read_symbols (objfile, 0);
if (!objfile_has_symbols (objfile))
@@
-3396,8
+3404,7
@@
enum ovly_index
static void
simple_free_overlay_table (void)
{
static void
simple_free_overlay_table (void)
{
- if (cache_ovly_table)
- xfree (cache_ovly_table);
+ xfree (cache_ovly_table);
cache_novlys = 0;
cache_ovly_table = NULL;
cache_ovly_table_base = 0;
cache_novlys = 0;
cache_ovly_table = NULL;
cache_ovly_table_base = 0;
This page took
0.037797 seconds
and
4
git commands to generate.