From: Simon Marchi <simon.marchi@polymtl.ca>
To: "André Pönitz" <apoenitz@t-online.de>
Cc: gdb-patches@sourceware.org, Simon Marchi <simon.marchi@efficios.com>
Subject: Re: [PP?] Re: [PATCH] Use -qualified flag when setting temporary breakpoint in start command
Date: Tue, 09 Apr 2019 22:02:00 -0000 [thread overview]
Message-ID: <4683d41dae3702a9f2b754f64a3e4bc2@polymtl.ca> (raw)
In-Reply-To: <20190409171256.GA5702@klara.mpi.htwm.de>
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
next prev parent reply other threads:[~2019-04-09 22:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-09 2:56 Simon Marchi
2019-04-09 15:27 ` Pedro Alves
2019-04-09 16:19 ` Simon Marchi
2019-04-09 16:30 ` Pedro Alves
2019-04-09 16:37 ` Simon Marchi
2019-04-09 18:09 ` André Pönitz
2019-04-09 22:02 ` Simon Marchi [this message]
2019-04-10 18:22 ` [PP?] " André Pönitz
2019-04-25 14:10 ` Tom Tromey
[not found] ` <96f5e735-0cdd-8bcb-58cf-e3986a5e3d5d@efficios.com>
2019-04-25 15:52 ` Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4683d41dae3702a9f2b754f64a3e4bc2@polymtl.ca \
--to=simon.marchi@polymtl.ca \
--cc=apoenitz@t-online.de \
--cc=gdb-patches@sourceware.org \
--cc=simon.marchi@efficios.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox