From: Daniel Jacobowitz <drow@mvista.com>
To: gdb@sources.redhat.com
Subject: Re: Unambiguously specifying source locations
Date: Mon, 13 Oct 2003 17:32:00 -0000 [thread overview]
Message-ID: <20031013173238.GA10842@nevyn.them.org> (raw)
In-Reply-To: <38B36630-FDA2-11D7-BB88-000A958F4C44@apple.com>
On Mon, Oct 13, 2003 at 10:25:20AM -0700, Jim Ingham wrote:
> I think the intent here is great!
>
> I have a heartfelt plea, however, from one who while not as
> battle-scarred as some others, have waded my way through plenty of
> decode_line_1 bugs...
>
> Is there any way we can not have to keep overloading the expression
> parser with more specifications? It seems to me this is just a way to
> obfuscate the user's intent so that we can get it wrong trying to
> decode it later. Daniel's proposed syntax - no offense intended - is
> sufficiently awful that it should give us pause. Would:
>
> break -shlib foo.dylib -file foo.c MyStaticFunction
>
> be all that awful? This is unambiguous, represents the user's intent
> exactly, is not too hard to type, and trivial to parse. Then
> internally, the breakpoint could actually hold all these separate bits
> separately, rather than munging them into a canonical form which we can
> trip over later on...
>
> We will probably have to support the specifications that we do now for
> ever - though adding switches for them would allow unambiguous entry
> and would probably be taken up by a good number of users cause it is
> almost impossible to get wrong...
Feel free to propose a better canonical form :) You basically just
did, above. We need a canonical representation, for instance:
- We use it internally to re-place breakpoints after rereading an
objfile.
- We would like to be able to display it so that breakpoints can be
saved and reloaded.
I guess the question is whether these are useful for anything other
than specifying breakpoint (or tracepoint) locations. If not then
flags to break might be canonical enough.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
next prev parent reply other threads:[~2003-10-13 17:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1065875539.13549.ezmlm@sources.redhat.com>
2003-10-13 17:24 ` Jim Ingham
2003-10-13 17:32 ` Daniel Jacobowitz [this message]
[not found] <1066172792.26963.ezmlm@sources.redhat.com>
2003-10-14 23:47 ` Jim Ingham
[not found] <drow@mvista.com>
2003-10-10 15:30 ` Daniel Jacobowitz
2003-10-10 15:44 ` David Ayers
2003-10-10 15:46 ` Daniel Jacobowitz
2003-10-11 2:21 ` Felix Lee
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=20031013173238.GA10842@nevyn.them.org \
--to=drow@mvista.com \
--cc=gdb@sources.redhat.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