From: Tom Tromey <tromey@redhat.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFC/RFA] Add handling for unqualified Ada operators in linespecs
Date: Fri, 16 Dec 2011 19:32:00 -0000 [thread overview]
Message-ID: <m3liqc1fk2.fsf@fleche.redhat.com> (raw)
In-Reply-To: <1323810763-5563-1-git-send-email-brobecker@adacore.com> (Joel Brobecker's message of "Tue, 13 Dec 2011 16:12:43 -0500")
>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:
Joel> This patch enhances the linespec parser to recognize unqualified
Joel> operator names in linespecs. This allows the user to insert a breakpoint
Joel> on operator "+" as follow, for instance:
Joel> (gdb) break "+"
I think it is fine to allow this.
I wonder whether this requires a documentation change.
Joel> Not the most elegant solution, but relatively self contained. So
Joel> I thought I'd submit it, after all. It's still not completely
Joel> functional because, for it to work, it needs the symtabs to be
Joel> already read-in (or, in other words, the partial symbol search is
Joel> still not working). But that's actually another, much more general
Joel> problem, which is related to breakpoints using unqualified function
Joel> names in general. I will try to think about that on its own.
I think we should continue trying to look at solutions to linespec and
symbol table problems in as language-independent a way as possible.
And, if we can't be language-independent, we should endeavor to have
clean code; the current stuff is still a big mess.
I think Keith's changes will help some here...
Joel> + p = *argptr;
Joel> + if (p[0] == '"'
Why only double quotes?
I don't even mind that as a temporary measure. But I think (or hope)
Keith's plan is for single- and double-quotes to be considered
identically, and uniformly, throughout linespec.
Tom
next prev parent reply other threads:[~2011-12-16 19:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-13 21:24 Joel Brobecker
2011-12-16 19:32 ` Tom Tromey [this message]
2011-12-16 19:33 ` Doug Evans
2011-12-16 20:09 ` Keith Seitz
2011-12-16 20:35 ` Tom Tromey
2011-12-17 14:55 ` Joel Brobecker
2011-12-20 15:30 ` Tom Tromey
2011-12-21 6:52 ` Joel Brobecker
2011-12-21 7:41 ` Joel Brobecker
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=m3liqc1fk2.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
/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