summaryrefslogtreecommitdiff
path: root/gdb/blockframe.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2003-12-16 21:23:50 +0000
committerMark Kettenis <kettenis@gnu.org>2003-12-16 21:23:50 +0000
commit95aad0cee702cd9bf0e1e8fb2cc78b0e0b7e02a1 (patch)
tree62d15ca5c8a8078088cb612e21bf2da7163c4a5e /gdb/blockframe.c
parent3a09251c171d8284a530e66c956df525729770f5 (diff)
downloadgdb-95aad0cee702cd9bf0e1e8fb2cc78b0e0b7e02a1.tar.gz
* blockframe.c (inside_main_func): Don't treat a zero PC specially.
Needed to fix PR backtrace/1476.
Diffstat (limited to 'gdb/blockframe.c')
-rw-r--r--gdb/blockframe.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gdb/blockframe.c b/gdb/blockframe.c
index ac73ef227a8..cebc10af076 100644
--- a/gdb/blockframe.c
+++ b/gdb/blockframe.c
@@ -73,18 +73,13 @@ deprecated_inside_entry_file (CORE_ADDR addr)
}
/* Test whether PC is in the range of addresses that corresponds to
- the "main" function.
-
- A PC of zero is always considered to be the bottom of the stack. */
+ the "main" function. */
int
inside_main_func (CORE_ADDR pc)
{
struct minimal_symbol *msymbol;
- if (pc == 0)
- return 1;
-
if (symfile_objfile == 0)
return 0;