From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6398 invoked by alias); 30 Apr 2009 20:55:17 -0000 Received: (qmail 6389 invoked by uid 22791); 30 Apr 2009 20:55:17 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 30 Apr 2009 20:55:06 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 4CB8E2BACF2; Thu, 30 Apr 2009 16:55:04 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ZCYKtC9PA2pB; Thu, 30 Apr 2009 16:55:04 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 2B7B02BAD04; Thu, 30 Apr 2009 16:55:02 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 42A65F58FF; Thu, 30 Apr 2009 13:54:55 -0700 (PDT) Date: Thu, 30 Apr 2009 21:37:00 -0000 From: Joel Brobecker To: Kai Tietz Cc: Kai Tietz , gdb , Roland Schwingel Subject: Re: gdb_assert when resetting breakpoints Message-ID: <20090430205455.GC10734@adacore.com> References: <49B67300.1020503@onevision.de> <90baa01f0903210926r1758a0a7m379ec93fc4b7d33a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <90baa01f0903210926r1758a0a7m379ec93fc4b7d33a@mail.gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-04/txt/msg00245.txt.bz2 > >> What has happenend: In breakpoint.c line 7417 you find: > >> sals = decode_line_1 (&s, 1, (struct symtab *) NULL, 0, (char ***) > >> NULL,not_found_ptr); > >> s points to "main" at that moment as found in the breakpoint structure > >> supplied to breakpoint_re_set_one(). > >> > >> sals (returned from decode_line_1) contains 2 entries. Sals entry > >> 0 points to the ObjectiveC METHOD main of the foundation base class > >> NSThread (written in ObjC notation -[NSThread main]). The problem, at this point, seems to be the fact that decode_line_1 should NOT be returning a match for this ObjC class method, since the breakpoint language was C. I think we need to find out why this method was selected as a match, and prevent it from happening. -- Joel