From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4022 invoked by alias); 15 Jan 2004 20:00:31 -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 4015 invoked from network); 15 Jan 2004 20:00:29 -0000 Received: from unknown (HELO walton.kettenis.dyndns.org) (213.93.115.144) by sources.redhat.com with SMTP; 15 Jan 2004 20:00:29 -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 i0FK0SmV000274 for ; Thu, 15 Jan 2004 21:00:28 +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 i0FK0SuQ014239 for ; Thu, 15 Jan 2004 21:00:28 +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 i0FK0SZg014236; Thu, 15 Jan 2004 21:00:28 +0100 (CET) Date: Thu, 15 Jan 2004 20:00:00 -0000 Message-Id: <200401152000.i0FK0SZg014236@elgar.kettenis.dyndns.org> From: Mark Kettenis To: gdb-patches@sources.redhat.com In-reply-to: <200401100022.i0A0M2xS008632@elgar.kettenis.dyndns.org> (message from Mark Kettenis on Sat, 10 Jan 2004 01:22:02 +0100 (CET)) Subject: Re: [PATCH] Don't treat PC == 0 specially in inside_entry_func References: <200401100022.i0A0M2xS008632@elgar.kettenis.dyndns.org> X-SW-Source: 2004-01/txt/msg00395.txt.bz2 Date: Sat, 10 Jan 2004 01:22:02 +0100 (CET) From: Mark Kettenis 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. I forgot to update the copyright year, so below is what I actually checked in. Mark Index: ChangeLog from Mark Kettenis * blockframe.c: Update copyright year. (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 15 Jan 2004 19:49:00 -0000 @@ -2,8 +2,8 @@ functions and pc values. Copyright 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, - 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free Software - Foundation, Inc. + 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 + Free Software Foundation, Inc. This file is part of GDB. @@ -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;