From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 84651 invoked by alias); 9 Apr 2019 22:02:20 -0000 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 Received: (qmail 84637 invoked by uid 89); 9 Apr 2019 22:02:19 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy=H*u:1.3.6, H*UA:1.3.6, HX-Languages-Length:1324, H*F:D*ca X-HELO: smtp.polymtl.ca Received: from smtp.polymtl.ca (HELO smtp.polymtl.ca) (132.207.4.11) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 09 Apr 2019 22:02:18 +0000 Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id x39M2BZ0000579 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 9 Apr 2019 18:02:16 -0400 Received: by simark.ca (Postfix, from userid 112) id 09F621E77D; Tue, 9 Apr 2019 18:02:11 -0400 (EDT) Received: from simark.ca (localhost [127.0.0.1]) by simark.ca (Postfix) with ESMTP id 04B381E4A2; Tue, 9 Apr 2019 18:02:10 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Tue, 09 Apr 2019 22:02:00 -0000 From: Simon Marchi To: =?UTF-8?Q?Andr=C3=A9_P=C3=B6nitz?= Cc: gdb-patches@sourceware.org, Simon Marchi Subject: Re: [PP?] Re: [PATCH] Use -qualified flag when setting temporary breakpoint in start command In-Reply-To: <20190409171256.GA5702@klara.mpi.htwm.de> References: <20190409025557.28846-1-simon.marchi@polymtl.ca> <20190409171256.GA5702@klara.mpi.htwm.de> Message-ID: <4683d41dae3702a9f2b754f64a3e4bc2@polymtl.ca> X-Sender: simon.marchi@polymtl.ca User-Agent: Roundcube Webmail/1.3.6 X-IsSubscribed: yes X-SW-Source: 2019-04/txt/msg00169.txt.bz2 On 2019-04-09 13:12, André Pönitz wrote: > I wonder whether there's still a chance to have a(n additional) way > to specify the effect of -qualified using a syntax that is the same > across GDB versions. > > I have pretty much the same effect like Simon for 'start' for a feature > 'Break on abort()' in 'my' IDE, that post-8.1 triggers on any function > called 'abort'. > > Even with the Python interface there seems to be no way to have > a single way to set the breakpoint short of having Pre/Post81Breakpoint > classes using different base constructors and try:/except...: > to find the matching version. > > To be honest, I am tempted to call the whole pattern matching on > function names a mis-feature. C++ name resolution is not really > compatible with regexps, so at the very least when naming the > global explicitly ('b ::abort') there should be no match on > 'struct Foo { void abort() {} };' There is no pattern matching/regexp happening here. The wild matching introduced in 8.1 just means that the identifier that you look up may be at any level, under some namespace or class. Unless I am missing something, I believe that 'b ::abort' should do what you want, and the current behavior is simply buggy. Simon