Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <cagney@gnu.org>
To: Jim Ingham <jingham@apple.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: pending breakpoints change breakpoint number
Date: Wed, 05 May 2004 14:52:00 -0000	[thread overview]
Message-ID: <4098FFA7.90803@gnu.org> (raw)
In-Reply-To: <6F7D1639-8F41-11D8-8CF3-000A958F4C44@apple.com>

> Hi, all...
> 
> I have been looking at the pending breakpoint changes (to merge them into the Apple gdb).  Overall it is nicer than the future-break version that we had, so that is great.
> 
> However, one thing really bugs me about it.  That is that it changes the breakpoint number out from under me when it manages to resolve the breakpoint.
> 
> This is pretty annoying to a human user, since if I want to do anything to the breakpoint, I have to go find it's number again from info break.  But it is very bad for a gui that is trying to run gdb from, say, the MI.  The GUI has to use the breakpoint number to do things like disable the breakpoint, delete it, etc.  So if the number switches out from under it, the gui can no longer operate on the breakpoint.  Very bad...
> 
> So there are two things that need to be addressed here.
> 
> First off, if we are going to change the breakpoint number, clearly need a breakpoint_resolved event/hook/observer thingie that we can use to tell the GUI that breakpoint 2 resolved to breakpoint 5, and the GUI needs to change accordingly.  This is pretty easy.  If it were a gdb_event, the addition to gdb-events.sh would look like:

The breakpoint number changing is a known bug in the current 
implementation.  It was concluded that fixing it (a non-trivial task) 
was closely tied to fixing things like M:N breakpoints (one breakpoint 
with multiple locations) and hence should be made part of that task 
(painful but working pending breakpoints were considered better than no 
pending breakpoints).

Seems that the N:M breakpoints have fallen by the wayside.  Interested 
in working on that?  Daniel can give you a status report of where things 
are at.

Andrew



  reply	other threads:[~2004-05-05 14:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-16  0:59 Jim Ingham
2004-05-05 14:52 ` Andrew Cagney [this message]
2004-05-05 16:31   ` 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=4098FFA7.90803@gnu.org \
    --to=cagney@gnu.org \
    --cc=gdb-patches@sources.redhat.com \
    --cc=jingham@apple.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