mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-06 15:38:45 +08:00
2002-07-24 Dave Brolley <brolley@redhat.com>
* corefile.c (core_create_function_syms): Use the end of the section containing the symbol to compute max_vma.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2002-07-24 Dave Brolley <brolley@redhat.com>
|
||||||
|
|
||||||
|
* corefile.c (core_create_function_syms): Use the end of the section
|
||||||
|
containing the symbol to compute max_vma.
|
||||||
|
|
||||||
2002-07-24 Nick Clifton <nickc@redhat.com>
|
2002-07-24 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* po/sv.po: Updated Swedish translation.
|
* po/sv.po: Updated Swedish translation.
|
||||||
|
@ -542,8 +542,15 @@ core_create_function_syms (cbfd)
|
|||||||
if (class == 't')
|
if (class == 't')
|
||||||
symtab.limit->is_static = true;
|
symtab.limit->is_static = true;
|
||||||
|
|
||||||
|
/* Keep track of the minimum and maximum vma addresses used by all
|
||||||
|
symbols. When computing the max_vma, use the ending address of the
|
||||||
|
section containing the symbol, if available. */
|
||||||
min_vma = MIN (symtab.limit->addr, min_vma);
|
min_vma = MIN (symtab.limit->addr, min_vma);
|
||||||
max_vma = MAX (symtab.limit->addr, max_vma);
|
if (core_syms[i]->section)
|
||||||
|
max_vma = MAX (core_syms[i]->section->vma
|
||||||
|
+ core_syms[i]->section->_cooked_size - 1, max_vma);
|
||||||
|
else
|
||||||
|
max_vma = MAX (symtab.limit->addr, max_vma);
|
||||||
|
|
||||||
/* If we see "main" without an initial '_', we assume names
|
/* If we see "main" without an initial '_', we assume names
|
||||||
are *not* prefixed by '_'. */
|
are *not* prefixed by '_'. */
|
||||||
|
Reference in New Issue
Block a user