From: Elena Zannoni <ezannoni@redhat.com>
To: Michael Snyder <msnyder@redhat.com>
Cc: Andrew Cagney <ac131313@redhat.com>,
Daniel Jacobowitz <drow@mvista.com>,
gdb-patches@sources.redhat.com
Subject: Re: RFA: Breakpoint infrastructure cleanups [0/8]
Date: Wed, 15 Oct 2003 18:56:00 -0000 [thread overview]
Message-ID: <16269.39677.813094.890124@localhost.redhat.com> (raw)
In-Reply-To: <3F8D8FEB.8020305@redhat.com>
Michael Snyder writes:
> Andrew Cagney wrote:
> >
> >> If this is just an internals issue, then toss a coin, it
> >> doesn't matter. But for the picture that we present to the
> >> user, remember -- we always present a fictional picture that
> >> hides most of the underlying details. The unsophisticated
> >> user thinks he is debugging his code -- not the underlying
> >> machine. If possible, he doesn't want to know eg. that
> >> line seventeen has been broken into several locations and
> >> intermixed with code from 3 other lines. We're sometimes
> >> forced to tell him anyway, but we don't if we can avoid it.
> >
> >
> > Yes, it is user visible (which is why people are also looking for a
> > user-level command, different to "maint info break" and "info break",
> > that displays both the logical and physical breakpoint).
>
> Yep. Didn't mean to imply that it wasn't user visible.
>
> > With a GUI, I can see each logical breakpoint having an expand widget
> > (correct technical term is?) that lets the user see (modify?) the
> > underlying physical breakpoint list.
>
> Yep, pretty much what I had in mind. For the cli interface
> I would hope for something similar -- something that initially
> displayed only the "high level" breakpoints, but maybe with an
> asterisk or something to indicate that there was more to the
> picture if one wanted to know. And some syntax equivalent to
> clicking on the GUI expand widget, which could be a variation
> on an existing command, or a new command (I have no preference).
>
>
> > This is needed, as otherwize something apparently simple "break strcmp"
> > could result in the user unknowingly setting 1000's of breakpoints.
>
> That's true as it is -- I guess what we have now is that
> pop-up menu that says "Which one of these did you mean?"
> I presume that when that interface was implemented, we
> did not expect it to come up all that often. Now, with
> overloaded functions, templates, weird constructors and
> so forth, we anticipate that it will come up more often,
> so we need a less intrusive interface.
>
>
>
The CLI needs to provide information in at least 3 cases, that I can
think of.
1. insert the breakpoint, show confirmation to the user. If we have 20
'real' breakpoints inserted, what do we tell the user?
2. hit the breakpoint, show line info about where we stopped, and
breakpoint number. Do we just say the program hit the high level
breakpoint number, or also which low level breakpoint number? Hmm,
do low level breakpoints have numbers? (I can see that we kind of
need a pair of numbers now).
3. list the breakpoints (info break) Ok, this we kind of discussed.
And MI? what should we do there? the same 3 cases occur. I would
think that MI could just tell the gui everything every time, and then
the GUI could decide to display what it wants. However that's a lot
of information sent back and forth, maybe for no real advantage. So
maybe a two-tier command set is needed there too. Depending on which
'view' the gui is in (I can imagine a gui having 2 views, one which
shows all the hidden bps, and one that shows only the high level
ones), or in general depending on what it wants to display it would
send different commands to gdb/MI.
elena
next prev parent reply other threads:[~2003-10-15 18:56 UTC|newest]
Thread overview: 81+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-08 16:55 Daniel Jacobowitz
2003-10-08 17:33 ` Elena Zannoni
2003-10-08 19:04 ` Andrew Cagney
2003-10-08 19:07 ` Daniel Jacobowitz
2003-10-08 19:44 ` David Carlton
2003-10-08 20:36 ` Elena Zannoni
2003-10-08 19:49 ` Andrew Cagney
2003-10-08 18:07 ` Jim Blandy
2003-10-08 18:23 ` Joel Brobecker
2003-10-08 19:05 ` Daniel Jacobowitz
2003-10-08 19:52 ` Andrew Cagney
2003-10-08 20:30 ` Daniel Jacobowitz
2003-10-08 21:09 ` Andrew Cagney
2003-10-08 21:11 ` Daniel Jacobowitz
2003-10-08 21:40 ` Elena Zannoni
2003-10-08 22:28 ` Andrew Cagney
2003-10-09 19:19 ` Michael Snyder
2003-10-14 1:38 ` Daniel Jacobowitz
2003-10-14 15:40 ` Andrew Cagney
2003-10-14 15:46 ` David Carlton
2003-10-14 15:51 ` Daniel Jacobowitz
2003-10-14 16:27 ` Elena Zannoni
2003-10-14 20:45 ` Michael Snyder
2003-10-15 15:02 ` Andrew Cagney
2003-10-15 18:20 ` Michael Snyder
2003-10-15 18:30 ` Andrew Cagney
2003-10-15 22:19 ` Michael Snyder
2003-10-15 22:23 ` Andrew Cagney
2003-10-15 22:37 ` Michael Snyder
2003-10-15 18:56 ` Elena Zannoni [this message]
2003-10-16 6:59 ` Eli Zaretskii
2003-10-16 13:11 ` Daniel Jacobowitz
2003-10-16 14:08 ` Paul Koning
2003-10-16 14:21 ` Elena Zannoni
2003-10-16 15:54 ` Eli Zaretskii
2003-10-16 23:20 ` Michael Snyder
2003-10-16 23:18 ` Michael Snyder
2003-10-16 15:45 ` Eli Zaretskii
2003-10-16 23:14 ` Michael Snyder
2003-10-15 22:41 ` Daniel Jacobowitz
2003-10-16 6:55 ` Eli Zaretskii
2003-10-16 14:25 ` Andrew Cagney
2003-10-16 16:02 ` Eli Zaretskii
2003-10-16 23:24 ` Michael Snyder
2003-10-17 6:46 ` Eli Zaretskii
2003-10-17 21:38 ` Michael Snyder
2003-10-18 8:43 ` Eli Zaretskii
2003-10-20 18:48 ` Michael Snyder
2003-10-16 16:16 ` Daniel Jacobowitz
2003-10-16 18:20 ` Andrew Cagney
2003-10-16 23:26 ` Totally OT Michael Snyder
2003-10-16 16:03 ` RFA: Breakpoint infrastructure cleanups [0/8] David Carlton
2003-10-16 16:17 ` Daniel Jacobowitz
2003-10-08 20:55 ` Elena Zannoni
2003-10-08 20:59 ` Daniel Jacobowitz
2003-10-09 6:09 ` Eli Zaretskii
2003-10-09 14:08 ` Daniel Jacobowitz
2003-10-09 17:02 ` Eli Zaretskii
2003-10-09 19:41 ` Daniel Jacobowitz
2003-10-19 16:43 ` Andrew Cagney
2003-10-09 19:33 ` Michael Snyder
2003-10-08 19:38 ` David Carlton
2003-10-08 21:00 ` Daniel Jacobowitz
2003-10-09 6:07 ` Eli Zaretskii
2003-10-08 18:26 ` Eli Zaretskii
2003-10-08 19:09 ` Daniel Jacobowitz
2003-10-19 15:55 ` Andrew Cagney
2003-10-19 16:39 ` Eli Zaretskii
2003-10-30 5:49 ` Daniel Jacobowitz
2003-11-03 18:00 ` Daniel Jacobowitz
2003-11-04 19:57 ` Michael Snyder
[not found] <1065728983.12011.ezmlm@sources.redhat.com>
2003-10-09 20:01 ` Jim Ingham
2003-10-15 19:48 Michael Elizabeth Chastain
2003-10-15 22:00 ` Michael Snyder
2003-10-15 22:14 Michael Elizabeth Chastain
2003-10-15 22:36 ` Michael Snyder
[not found] <1066321046.18949.ezmlm@sources.redhat.com>
2003-10-16 18:58 ` Jim Ingham
2003-10-16 23:30 ` Michael Snyder
2003-10-16 19:02 ` Jim Ingham
2003-10-17 7:04 ` Eli Zaretskii
2003-10-17 16:55 ` Jim Ingham
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=16269.39677.813094.890124@localhost.redhat.com \
--to=ezannoni@redhat.com \
--cc=ac131313@redhat.com \
--cc=drow@mvista.com \
--cc=gdb-patches@sources.redhat.com \
--cc=msnyder@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