From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30645 invoked by alias); 27 Jun 2002 17:13:47 -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 30619 invoked from network); 27 Jun 2002 17:13:45 -0000 Received: from unknown (HELO harvester.transas.com) (193.125.200.2) by sources.redhat.com with SMTP; 27 Jun 2002 17:13:45 -0000 Received: from localhost (localhost [127.0.0.1]) by harvester.transas.com (Postfix) with SMTP id 57BB96B827; Thu, 27 Jun 2002 21:13:44 +0400 (MSD) Received: from clue.transas.com (clue.transas.com [10.0.0.42]) by harvester.transas.com (Postfix) with ESMTP id 1B6636B820; Thu, 27 Jun 2002 21:13:44 +0400 (MSD) Received: by clue.transas.com with Internet Mail Service (5.5.2653.19) id ; Thu, 27 Jun 2002 21:13:43 +0400 Message-ID: <2E74F312D6980D459F3A05492BA40F8DFE339D@clue.transas.com> From: Andrew Volkov To: gdb-patches@sources.redhat.com Cc: jimb@redhat.com, ezannoni@redhat.com Subject: [RFA/RFC] blockframe.c Fix errorneous addr check Date: Thu, 27 Jun 2002 10:13:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" X-SW-Source: 2002-06/txt/msg00555.txt.bz2 Hi, This patch fix wrong detection of belonging addr to startup file: if call main is last instuction in crt0, then inside_entry_file erroneously return false. Ok to commit? Andrey P.S. Possible this bug not in this func, but in symbol reader. 2002-06-27 Andrey Volkov *blockframe.c (inside_entry_file): Fixed erroneous check that addr is in startup file. Index: blockframe.c =================================================================== RCS file: /cvs/src/src/gdb/blockframe.c,v retrieving revision 1.30 diff -u -r1.30 blockframe.c --- blockframe.c 26 Jun 2002 15:28:46 -0000 1.30 +++ blockframe.c 27 Jun 2002 16:33:10 -0000 @@ -113,7 +113,7 @@ return 0; } return (addr >= symfile_objfile->ei.entry_file_lowpc && - addr < symfile_objfile->ei.entry_file_highpc); + addr <= symfile_objfile->ei.entry_file_highpc); } /* Test a specified PC value to see if it is in the range of addresses