From: Vladimir Prus <vladimir@codesourcery.com>
To: Nick Roberts <nickrob@snap.net.nz>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [8/9] multiple locations
Date: Tue, 13 Nov 2007 08:45:00 -0000 [thread overview]
Message-ID: <200711131144.57024.vladimir@codesourcery.com> (raw)
In-Reply-To: <18233.24808.118388.797786@kahikatea.snap.net.nz>
On Tuesday 13 November 2007 11:31:36 Nick Roberts wrote:
> > No, because if you set breakpoint in a shared library, and that library is
> > unloaded, you have some number in 'address' field, but the breakpoint won't
> > actually fire, and the "(p)" indicates that fact.
>
> OK, but the column you've added this to is "Enb" which refers to whether
> the breakpoint is enabled or not. That is really a yes/no question and
> not related to whether the breakpoint is pending.
This is closely tied. "y" and "n" represents user's intended enable state
of the breakpoint. However, sometimes GDB's internal state does not
match user's request, in which case gdb adds "(p)" to say "sorry, you've
enabled this breakpoint but I can't honour your request at this time".
> > > If it's not needed can we please revert it to the old format? If it is
> > > needed can we find a format that doesn't break existing parsing?
> >
> > I personally don't think we should cater for clients that try to use CLI
> > despite that being known as bad idea.
>
> I think we should generally try to cater for _all_ users of GDB and not
> impose requirements on their use of GDB.
>
> > That said -- do you have any
> > suggestions for an alternative format?
>
> Yes I do. Instead of:
>
> (gdb) inf bre
> Num Type Disp Enb Address What
> 1 breakpoint keep y(p) 0xb7f4ce40
>
> for an unloaded breakpoint, how about:
>
> (gdb) inf bre
> Num Type Disp Enb Address What
> 1 pending breakpoint keep y 0xb7f4ce40
>
> which seems the right place to put it, and Emacs will parse this properly
> because that's where other breakpoint variants are described, e.g.,
>
>
> 3 hw breakpoint keep y 0x080485bc in main at myprog.c:75
I think this is wrong, because "pending" state is generally speaking
orthogonal to any breakpoint type -- in particular, "hw breakpoint" can
be pending just as well. Pending is not the natural type of breakpoint -- it's
just the state of breakpoint at the current time. Furthermore,
in current GDB, breakpoint type never changes, and changing breakpoint types
dynamically is rather strange.
- Volodya
next prev parent reply other threads:[~2007-11-13 8:45 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-13 7:15 Nick Roberts
2007-11-13 8:05 ` Vladimir Prus
2007-11-13 8:31 ` Nick Roberts
2007-11-13 8:45 ` Vladimir Prus [this message]
2007-11-13 12:38 ` Daniel Jacobowitz
2007-11-13 19:58 ` Vladimir Prus
2007-11-14 19:21 ` Jim Blandy
2007-11-13 22:20 ` Eli Zaretskii
2007-11-13 22:47 ` Joel Brobecker
2007-11-14 6:29 ` Vladimir Prus
2007-11-14 7:06 ` Nick Roberts
2007-11-14 11:58 ` Vladimir Prus
2007-11-14 19:18 ` Nick Roberts
2007-11-14 19:37 ` Joel Brobecker
2007-11-14 19:38 ` Vladimir Prus
2007-11-14 20:42 ` Nick Roberts
2007-11-14 21:17 ` Joel Brobecker
2007-11-15 20:39 ` Vladimir Prus
2007-11-16 20:37 ` Nick Roberts
2007-11-19 2:42 ` Nick Roberts
2007-11-14 18:56 ` Eli Zaretskii
-- strict thread matches above, loose matches on Subject: below --
2007-09-07 22:49 Vladimir Prus
2007-09-07 22:51 ` Vladimir Prus
2007-09-08 11:46 ` Eli Zaretskii
2007-09-08 11:55 ` Vladimir Prus
2007-09-08 12:28 ` Eli Zaretskii
2007-09-22 19:53 ` Vladimir Prus
2007-09-23 4:13 ` Eli Zaretskii
2007-09-08 13:17 ` Mark Kettenis
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=200711131144.57024.vladimir@codesourcery.com \
--to=vladimir@codesourcery.com \
--cc=gdb-patches@sources.redhat.com \
--cc=nickrob@snap.net.nz \
/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