diff options
author | Mark Kettenis <kettenis@gnu.org> | 2003-12-16 21:23:50 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2003-12-16 21:23:50 +0000 |
commit | c6831537339f652cae8ac7f77d68be6afbb2b89f (patch) | |
tree | 6b02f0f690d63893cf3de078168c10a08acaa9a7 /gdb/blockframe.c | |
parent | f5d3df96612aa9c44954ffba108fc4e6ec634e15 (diff) | |
download | gdb-c6831537339f652cae8ac7f77d68be6afbb2b89f.zip gdb-c6831537339f652cae8ac7f77d68be6afbb2b89f.tar.gz gdb-c6831537339f652cae8ac7f77d68be6afbb2b89f.tar.bz2 |
* 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.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gdb/blockframe.c b/gdb/blockframe.c index ac73ef2..cebc10a 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; |