From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12376 invoked by alias); 12 Apr 2002 00:04:16 -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 12369 invoked from network); 12 Apr 2002 00:04:15 -0000 Received: from unknown (HELO bothner.com) (216.102.199.253) by sources.redhat.com with SMTP; 12 Apr 2002 00:04:15 -0000 Received: from bothner.com (eureka.bothner.com [192.168.1.9]) by bothner.com (8.11.6/8.11.6) with ESMTP id g3C0DKR06389 for ; Thu, 11 Apr 2002 17:13:20 -0700 Message-ID: <3CB62486.1030104@bothner.com> Date: Thu, 11 Apr 2002 17:04:00 -0000 From: Per Bothner User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9+) Gecko/20020328 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: PATH: reset innermost_block on 'run' Content-Type: multipart/mixed; boundary="------------070904060807080408080500" X-SW-Source: 2002-04/txt/msg00436.txt.bz2 This is a multi-part message in MIME format. --------------070904060807080408080500 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 448 It's been a while since I made this change, but as I recall without it gdb will tend to crash when you re-start the inferior using a 'run' command. Now I don't know exactly the best place to reset the innermost_block variable, but it *is* a cache variable that must be reset whenever execution continues, including on each 'run'. * infcmd.c (run_command): Reset innermost_block. -- --Per Bothner per@bothner.com http://www.bothner.com/per/ --------------070904060807080408080500 Content-Type: text/plain; name="innermost.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="innermost.patch" Content-length: 456 Index: infcmd.c =================================================================== RCS file: /cvs/src/src/gdb/infcmd.c,v retrieving revision 1.43 diff -u -p -r1.43 infcmd.c --- infcmd.c 28 Mar 2002 01:35:55 -0000 1.43 +++ infcmd.c 11 Apr 2002 23:57:47 -0000 @@ -387,6 +387,8 @@ Start it from the beginning? ")) init_wait_for_inferior (); } + innermost_block = NULL; + clear_breakpoint_hit_counts (); /* Purge old solib objfiles. */ --------------070904060807080408080500--