From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15324 invoked by alias); 5 May 2008 16:15:31 -0000 Received: (qmail 15315 invoked by uid 22791); 5 May 2008 16:15:30 -0000 X-Spam-Check-By: sourceware.org Received: from igw2.br.ibm.com (HELO igw2.br.ibm.com) (32.104.18.25) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 05 May 2008 16:15:08 +0000 Received: from mailhub1.br.ibm.com (mailhub1 [9.18.232.109]) by igw2.br.ibm.com (Postfix) with ESMTP id 52BC717F495 for ; Mon, 5 May 2008 13:04:49 -0300 (BRST) Received: from d24av02.br.ibm.com (d24av02.br.ibm.com [9.18.232.47]) by mailhub1.br.ibm.com (8.13.8/8.13.8/NCO v8.7) with ESMTP id m45GEr0N3321874 for ; Mon, 5 May 2008 13:14:59 -0300 Received: from d24av02.br.ibm.com (loopback [127.0.0.1]) by d24av02.br.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m45GElGh009185 for ; Mon, 5 May 2008 13:14:48 -0300 Received: from [9.18.201.86] ([9.18.201.86]) by d24av02.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id m45GEkEc009160 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 5 May 2008 13:14:47 -0300 Subject: Re: [RFC] Entry point update with "run" command From: Luis Machado Reply-To: luisgpm@linux.vnet.ibm.com To: Daniel Jacobowitz Cc: gdb-patches@sourceware.org In-Reply-To: <20080502154355.GQ29202@caradoc.them.org> References: <1209052694.18229.6.camel@gargoyle.br.ibm.com> <20080502154355.GQ29202@caradoc.them.org> Content-Type: multipart/mixed; boundary="=-VLZ/TO76wHLg8/joGr7a" Date: Mon, 05 May 2008 19:17:00 -0000 Message-Id: <1210004084.25903.0.camel@gargoyle> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-05/txt/msg00210.txt.bz2 --=-VLZ/TO76wHLg8/joGr7a Content-Type: text/plain Content-Transfer-Encoding: 7bit Content-length: 451 I've checked this in now. Thanks! On Fri, 2008-05-02 at 11:43 -0400, Daniel Jacobowitz wrote: > On Thu, Apr 24, 2008 at 12:58:14PM -0300, Luis Machado wrote: > > The attached patch does this on "reread_symbols", though it seems a > > brute-force method. Is this OK? > > This is OK. Wow, this function is a wreck. Despite the comments it > really does need to be updated to share code with initial reading of > the symfile at some point. > Luis --=-VLZ/TO76wHLg8/joGr7a Content-Disposition: attachment; filename=entry_point.diff Content-Type: text/x-patch; name=entry_point.diff; charset=utf-8 Content-Transfer-Encoding: 7bit Content-length: 521 2008-05-05 Luis Machado * symfile.c (reread_symbols): Update objfile's entry point. Index: HEAD/gdb/symfile.c =================================================================== --- HEAD.orig/gdb/symfile.c 2008-05-05 05:27:16.000000000 -0700 +++ HEAD/gdb/symfile.c 2008-05-05 05:31:54.000000000 -0700 @@ -2474,6 +2474,7 @@ objfile->mtime = new_modtime; reread_one = 1; reread_separate_symbols (objfile); + init_entry_point_info (objfile); } } } --=-VLZ/TO76wHLg8/joGr7a--