mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-17 04:43:17 +08:00
2004-06-24 Andrew Cagney <cagney@gnu.org>
* objfiles.h (struct entry_info): Delete entry_func_lowpc and entry_func_highpc fields. * objfiles.c (init_entry_point_info): Do not clear entry_func_lowpc and entry_func_highpc. (objfile_relocate): Do not relocate entry_func_lowpc and entry_func_highpc. * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and entry_func_highpc. * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and entry_func_highpc. * blockframe.c (legacy_frame_chain_valid): Replace tests against entry_func_lowpc and entry_func_highpc with call to inside_entry_func.
This commit is contained in:
@ -1,3 +1,19 @@
|
|||||||
|
2004-06-24 Andrew Cagney <cagney@gnu.org>
|
||||||
|
|
||||||
|
* objfiles.h (struct entry_info): Delete entry_func_lowpc and
|
||||||
|
entry_func_highpc fields.
|
||||||
|
* objfiles.c (init_entry_point_info): Do not clear
|
||||||
|
entry_func_lowpc and entry_func_highpc.
|
||||||
|
(objfile_relocate): Do not relocate entry_func_lowpc and
|
||||||
|
entry_func_highpc.
|
||||||
|
* dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
|
||||||
|
entry_func_highpc.
|
||||||
|
* dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
|
||||||
|
entry_func_highpc.
|
||||||
|
* blockframe.c (legacy_frame_chain_valid): Replace tests against
|
||||||
|
entry_func_lowpc and entry_func_highpc with call to
|
||||||
|
inside_entry_func.
|
||||||
|
|
||||||
2004-06-24 Mark Kettenis <kettenis@gnu.org>
|
2004-06-24 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
* sparc64-tdep.c (sparc64_store_arguments): Fix passing
|
* sparc64-tdep.c (sparc64_store_arguments): Fix passing
|
||||||
|
@ -524,9 +524,7 @@ legacy_frame_chain_valid (CORE_ADDR fp, struct frame_info *fi)
|
|||||||
|
|
||||||
/* If we're already inside the entry function for the main objfile,
|
/* If we're already inside the entry function for the main objfile,
|
||||||
then it isn't valid. */
|
then it isn't valid. */
|
||||||
if (symfile_objfile != NULL
|
if (inside_entry_func (fi))
|
||||||
&& (symfile_objfile->ei.entry_func_lowpc <= get_frame_pc (fi)
|
|
||||||
&& symfile_objfile->ei.entry_func_highpc > get_frame_pc (fi)))
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -2504,13 +2504,6 @@ read_func_scope (struct die_info *die, struct dwarf2_cu *cu)
|
|||||||
/* Record the function range for dwarf_decode_lines. */
|
/* Record the function range for dwarf_decode_lines. */
|
||||||
add_to_cu_func_list (name, lowpc, highpc, cu);
|
add_to_cu_func_list (name, lowpc, highpc, cu);
|
||||||
|
|
||||||
if (objfile->ei.entry_point >= lowpc &&
|
|
||||||
objfile->ei.entry_point < highpc)
|
|
||||||
{
|
|
||||||
objfile->ei.entry_func_lowpc = lowpc;
|
|
||||||
objfile->ei.entry_func_highpc = highpc;
|
|
||||||
}
|
|
||||||
|
|
||||||
new = push_context (0, lowpc);
|
new = push_context (0, lowpc);
|
||||||
new->name = new_symbol (die, die->type, cu);
|
new->name = new_symbol (die, die->type, cu);
|
||||||
|
|
||||||
|
@ -1792,12 +1792,6 @@ read_func_scope (struct dieinfo *dip, char *thisdie, char *enddie,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (objfile->ei.entry_point >= dip->at_low_pc &&
|
|
||||||
objfile->ei.entry_point < dip->at_high_pc)
|
|
||||||
{
|
|
||||||
objfile->ei.entry_func_lowpc = dip->at_low_pc;
|
|
||||||
objfile->ei.entry_func_highpc = dip->at_high_pc;
|
|
||||||
}
|
|
||||||
new = push_context (0, dip->at_low_pc);
|
new = push_context (0, dip->at_low_pc);
|
||||||
new->name = new_symbol (dip, objfile);
|
new->name = new_symbol (dip, objfile);
|
||||||
list_in_scope = &local_symbols;
|
list_in_scope = &local_symbols;
|
||||||
|
@ -250,8 +250,6 @@ init_entry_point_info (struct objfile *objfile)
|
|||||||
/* Examination of non-executable.o files. Short-circuit this stuff. */
|
/* Examination of non-executable.o files. Short-circuit this stuff. */
|
||||||
objfile->ei.entry_point = INVALID_ENTRY_POINT;
|
objfile->ei.entry_point = INVALID_ENTRY_POINT;
|
||||||
}
|
}
|
||||||
objfile->ei.entry_func_lowpc = INVALID_ENTRY_LOWPC;
|
|
||||||
objfile->ei.entry_func_highpc = INVALID_ENTRY_HIGHPC;
|
|
||||||
objfile->ei.main_func_lowpc = INVALID_ENTRY_LOWPC;
|
objfile->ei.main_func_lowpc = INVALID_ENTRY_LOWPC;
|
||||||
objfile->ei.main_func_highpc = INVALID_ENTRY_HIGHPC;
|
objfile->ei.main_func_highpc = INVALID_ENTRY_HIGHPC;
|
||||||
}
|
}
|
||||||
@ -649,12 +647,6 @@ objfile_relocate (struct objfile *objfile, struct section_offsets *new_offsets)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (objfile->ei.entry_func_lowpc != INVALID_ENTRY_LOWPC)
|
|
||||||
{
|
|
||||||
objfile->ei.entry_func_lowpc += ANOFFSET (delta, SECT_OFF_TEXT (objfile));
|
|
||||||
objfile->ei.entry_func_highpc += ANOFFSET (delta, SECT_OFF_TEXT (objfile));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (objfile->ei.main_func_lowpc != INVALID_ENTRY_LOWPC)
|
if (objfile->ei.main_func_lowpc != INVALID_ENTRY_LOWPC)
|
||||||
{
|
{
|
||||||
objfile->ei.main_func_lowpc += ANOFFSET (delta, SECT_OFF_TEXT (objfile));
|
objfile->ei.main_func_lowpc += ANOFFSET (delta, SECT_OFF_TEXT (objfile));
|
||||||
|
@ -110,12 +110,6 @@ struct entry_info
|
|||||||
|
|
||||||
#define INVALID_ENTRY_POINT (~0) /* ~0 will not be in any file, we hope. */
|
#define INVALID_ENTRY_POINT (~0) /* ~0 will not be in any file, we hope. */
|
||||||
|
|
||||||
/* Start (inclusive) and end (exclusive) of function containing the
|
|
||||||
entry point. */
|
|
||||||
|
|
||||||
CORE_ADDR entry_func_lowpc;
|
|
||||||
CORE_ADDR entry_func_highpc;
|
|
||||||
|
|
||||||
/* Start (inclusive) and end (exclusive) of the user code main() function. */
|
/* Start (inclusive) and end (exclusive) of the user code main() function. */
|
||||||
|
|
||||||
CORE_ADDR main_func_lowpc;
|
CORE_ADDR main_func_lowpc;
|
||||||
|
Reference in New Issue
Block a user