* blockframe.c (inside_entry_func): Reformat. Introduce new local

variables to prevent long lines.  Update comments to reflect
reality.
This commit is contained in:
Mark Kettenis 2004-01-10 00:09:58 +00:00
parent 6fa9022e89
commit 29ff87c561
2 changed files with 17 additions and 11 deletions

View file

@ -1,3 +1,9 @@
2004-01-10 Mark Kettenis <kettenis@gnu.org>
* blockframe.c (inside_entry_func): Reformat. Introduce new local
variables to prevent long lines. Update comments to reflect
reality.
2004-01-09 David Carlton <carlton@kealia.com> 2004-01-09 David Carlton <carlton@kealia.com>
Checked in by Elena Zannoni <ezannoni@redhat.com>. Checked in by Elena Zannoni <ezannoni@redhat.com>.

View file

@ -156,13 +156,10 @@ inside_main_func (CORE_ADDR pc)
&& symfile_objfile->ei.main_func_highpc > pc); && symfile_objfile->ei.main_func_highpc > pc);
} }
/* Test a specified PC value to see if it is in the range of addresses /* Test whether PC is inside the range of addresses that corresponds
that correspond to the process entry point function. See comments to the process entry point function.
in objfiles.h for why we might want to do this.
Typically called from DEPRECATED_FRAME_CHAIN_VALID. A PC of zero is always considered to be the bottom of the stack. */
A PC of zero is always considered to be the bottom of the stack. */
int int
inside_entry_func (CORE_ADDR pc) inside_entry_func (CORE_ADDR pc)
@ -171,16 +168,19 @@ inside_entry_func (CORE_ADDR pc)
return 1; return 1;
if (symfile_objfile == 0) if (symfile_objfile == 0)
return 0; return 0;
if (CALL_DUMMY_LOCATION == AT_ENTRY_POINT) if (CALL_DUMMY_LOCATION == AT_ENTRY_POINT)
{ {
/* Do not stop backtracing if the pc is in the call dummy /* Do not stop backtracing if the program counter is in the call
at the entry point. */ dummy at the entry point. */
/* FIXME: Won't always work with zeros for the last two arguments */ /* FIXME: This won't always work with zeros for the last two
arguments. */
if (DEPRECATED_PC_IN_CALL_DUMMY (pc, 0, 0)) if (DEPRECATED_PC_IN_CALL_DUMMY (pc, 0, 0))
return 0; return 0;
} }
return (symfile_objfile->ei.entry_func_lowpc <= pc &&
symfile_objfile->ei.entry_func_highpc > pc); return (symfile_objfile->ei.entry_func_lowpc <= pc
&& symfile_objfile->ei.entry_func_highpc > pc);
} }
/* Return nonzero if the function for this frame lacks a prologue. Many /* Return nonzero if the function for this frame lacks a prologue. Many