mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-19 22:03:57 +08:00
2003-09-11 Elena Zannoni <ezannoni@redhat.com>
* symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure orig_addrs is set up properly.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2003-09-11 Elena Zannoni <ezannoni@redhat.com>
|
||||||
|
|
||||||
|
* symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
|
||||||
|
orig_addrs is set up properly.
|
||||||
|
|
||||||
2003-09-11 Andrew Cagney <cagney@redhat.com>
|
2003-09-11 Andrew Cagney <cagney@redhat.com>
|
||||||
|
|
||||||
* gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
|
* gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
|
||||||
|
@ -854,7 +854,12 @@ symbol_file_add_with_addrs_or_offsets (char *name, int from_tty,
|
|||||||
orig_addrs = alloc_section_addr_info (bfd_count_sections (abfd));
|
orig_addrs = alloc_section_addr_info (bfd_count_sections (abfd));
|
||||||
my_cleanups = make_cleanup (xfree, orig_addrs);
|
my_cleanups = make_cleanup (xfree, orig_addrs);
|
||||||
if (addrs)
|
if (addrs)
|
||||||
*orig_addrs = *addrs;
|
{
|
||||||
|
int i;
|
||||||
|
orig_addrs->num_sections = addrs->num_sections;
|
||||||
|
for (i = 0; i < addrs->num_sections; i++)
|
||||||
|
orig_addrs->other[i] = addrs->other[i];
|
||||||
|
}
|
||||||
|
|
||||||
/* If the objfile uses a mapped symbol file, and we have a psymtab for
|
/* If the objfile uses a mapped symbol file, and we have a psymtab for
|
||||||
it, then skip reading any symbols at this time. */
|
it, then skip reading any symbols at this time. */
|
||||||
|
Reference in New Issue
Block a user