From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17335 invoked by alias); 10 Jan 2004 00:22:04 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 17314 invoked from network); 10 Jan 2004 00:22:03 -0000 Received: from unknown (HELO walton.kettenis.dyndns.org) (213.93.115.144) by sources.redhat.com with SMTP; 10 Jan 2004 00:22:03 -0000 Received: from elgar.kettenis.dyndns.org (elgar.kettenis.dyndns.org [192.168.0.2]) by walton.kettenis.dyndns.org (8.12.6p3/8.12.6) with ESMTP id i0A0M2jv000345 for ; Sat, 10 Jan 2004 01:22:02 +0100 (CET) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: from elgar.kettenis.dyndns.org (localhost [127.0.0.1]) by elgar.kettenis.dyndns.org (8.12.6p3/8.12.6) with ESMTP id i0A0M2LA008635 for ; Sat, 10 Jan 2004 01:22:02 +0100 (CET) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: (from kettenis@localhost) by elgar.kettenis.dyndns.org (8.12.6p3/8.12.6/Submit) id i0A0M2xS008632; Sat, 10 Jan 2004 01:22:02 +0100 (CET) Date: Sat, 10 Jan 2004 00:22:00 -0000 Message-Id: <200401100022.i0A0M2xS008632@elgar.kettenis.dyndns.org> From: Mark Kettenis To: gdb-patches@sources.redhat.com Subject: [PATCH] Don't treat PC == 0 specially in inside_entry_func X-SW-Source: 2004-01/txt/msg00258.txt.bz2 This stops us from treating a zero PC specially in inside_entry_func, just like we did for inside_main_func. If nobody objects, I'll check this in in a week or so. Mark Index: ChangeLog from Mark Kettenis * blockframe.c (inside_entry_func): Don't treat a zero PC specially. Index: blockframe.c =================================================================== RCS file: /cvs/src/src/gdb/blockframe.c,v retrieving revision 1.85 diff -u -p -r1.85 blockframe.c --- blockframe.c 10 Jan 2004 00:09:58 -0000 1.85 +++ blockframe.c 10 Jan 2004 00:10:57 -0000 @@ -157,15 +157,11 @@ inside_main_func (CORE_ADDR pc) } /* Test whether PC is inside the range of addresses that corresponds - to the process entry point function. - - A PC of zero is always considered to be the bottom of the stack. */ + to the process entry point function. */ int inside_entry_func (CORE_ADDR pc) { - if (pc == 0) - return 1; if (symfile_objfile == 0) return 0;