* blockframe.c (inside_main_func): Don't treat a zero PC specially.

Needed to fix PR backtrace/1476.
This commit is contained in:
Mark Kettenis
2003-12-16 21:23:50 +00:00
parent f5d3df9661
commit c683153733
2 changed files with 6 additions and 6 deletions

View File

@@ -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;