aboutsummaryrefslogtreecommitdiff
path: root/gdb/blockframe.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2004-01-13 16:12:25 +0000
committerDaniel Jacobowitz <drow@false.org>2004-01-13 16:12:25 +0000
commit1232d0e08f9677e386722d9c15df26759a442530 (patch)
treea76a4801871ecd5c5d659a4d12a548b2cece8fb8 /gdb/blockframe.c
parent962bba3ea8e66fdb184c0432a91e36cd8694dcc2 (diff)
downloadgdb-1232d0e08f9677e386722d9c15df26759a442530.zip
gdb-1232d0e08f9677e386722d9c15df26759a442530.tar.gz
gdb-1232d0e08f9677e386722d9c15df26759a442530.tar.bz2
Merge mainline to branch. GDB is broken until I update cp-names.y.
Diffstat (limited to 'gdb/blockframe.c')
-rw-r--r--gdb/blockframe.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/gdb/blockframe.c b/gdb/blockframe.c
index cebc10a..83bc691 100644
--- a/gdb/blockframe.c
+++ b/gdb/blockframe.c
@@ -156,13 +156,10 @@ inside_main_func (CORE_ADDR pc)
&& symfile_objfile->ei.main_func_highpc > pc);
}
-/* Test a specified PC value to see if it is in the range of addresses
- that correspond to the process entry point function. See comments
- in objfiles.h for why we might want to do this.
+/* Test whether PC is inside the range of addresses that corresponds
+ to the process entry point function.
- 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
inside_entry_func (CORE_ADDR pc)
@@ -171,16 +168,19 @@ inside_entry_func (CORE_ADDR pc)
return 1;
if (symfile_objfile == 0)
return 0;
+
if (CALL_DUMMY_LOCATION == AT_ENTRY_POINT)
{
- /* Do not stop backtracing if the pc is in the call dummy
- at the entry point. */
- /* FIXME: Won't always work with zeros for the last two arguments */
+ /* Do not stop backtracing if the program counter is in the call
+ dummy at the entry point. */
+ /* FIXME: This won't always work with zeros for the last two
+ arguments. */
if (DEPRECATED_PC_IN_CALL_DUMMY (pc, 0, 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