From: Mark Kettenis Date: Tue, 16 Dec 2003 21:23:50 +0000 (+0000) Subject: * blockframe.c (inside_main_func): Don't treat a zero PC specially. X-Git-Tag: cagney_bigcore-20040122-branchpoint~456 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c6831537339f652cae8ac7f77d68be6afbb2b89f;p=external%2Fbinutils.git * blockframe.c (inside_main_func): Don't treat a zero PC specially. Needed to fix PR backtrace/1476. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3d05afd..9293059 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2003-12-16 Mark Kettenis + + * blockframe.c (inside_main_func): Don't treat a zero PC specially. + Needed to fix PR backtrace/1476. + 2003-12-16 David Carlton * cp-support.c (class_name_from_physname): Add DMGL_PARAMS. 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;