summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-01-10 00:09:58 +0000
committerMark Kettenis <kettenis@gnu.org>2004-01-10 00:09:58 +0000
commiteb1b74fe6ab76efc1ecc113fd13422897dda2f55 (patch)
treefc5e2703c6aa7372b6e869823acd82aac72dd2fc
parent0600caa0796e6f0197598eb7dab76807e8fff244 (diff)
downloadgdb-eb1b74fe6ab76efc1ecc113fd13422897dda2f55.tar.gz
* blockframe.c (inside_entry_func): Reformat. Introduce new local
variables to prevent long lines. Update comments to reflect reality.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/blockframe.c22
2 files changed, 17 insertions, 11 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 666495786b8..b5d87e2383a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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>
Checked in by Elena Zannoni <ezannoni@redhat.com>.
diff --git a/gdb/blockframe.c b/gdb/blockframe.c
index cebc10af076..83bc691cd51 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