From: David Daney <ddaney@avtrex.com>
To: Daniel Jacobowitz <drow@false.org>
Cc: Nick Roberts <nickrob@snap.net.nz>,
Vladimir Prus <ghost@cs.msu.su>,
gdb@sources.redhat.com
Subject: Re: MI: changing breakpoint location
Date: Thu, 16 Mar 2006 23:25:00 -0000 [thread overview]
Message-ID: <4419F35D.6000907@avtrex.com> (raw)
In-Reply-To: <20060316231215.GA25222@nevyn.them.org>
Daniel Jacobowitz wrote:
> On Fri, Mar 17, 2006 at 12:07:27PM +1300, Nick Roberts wrote:
>
>> > Now, I have to delete the old breakpoint and create the new one, which is
>> > workable, but not convenient.
>>
>>I don't find a problem with that, but it would be nice if when a program is
>>edited and recompiled that GDB could track the line number. So, for example
>>if the breakpoint is on line 10, say, and lines 4 and 5 are deleted, then
>>after recompiling and restarting, its on line 8. I think Visual Stuio has
>>this feature. I have no idea how easy/hard it would be to implement.
>
>
> Hard. RMS once asked for a simpler version of this, which is to track
> breakpoints by line number relative to the start of the function; but
> really we ought to be able to do this very well.
>
> I'm thinking something like "remember a couple lines of context, if you
> can find the same context, adjust the breakpoint and warn the user".
> But there's some risk of it landing in the wrong place; I don't know
> how to do it reliably but I bet a motivated developer would come up
> with something :-)
>
> Of course, then we'd have to let the MI interpreter know about the
> change too, so that the editor could refresh. I have no idea whether
> GUIs would want this behavior or not; wouldn't they want to track it
> themselves assuming you used the GUI's editor?
>
I can't see why you would want to do it anyplace *other* than the
editor. It would know for sure which lines had been added and deleted.
Anything else would just be guessing.
David Daney.
next prev parent reply other threads:[~2006-03-16 23:23 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-16 15:43 Vladimir Prus
2006-03-16 15:48 ` Bob Rossi
2006-03-16 16:05 ` Vladimir Prus
2006-03-16 16:12 ` Daniel Jacobowitz
2006-03-16 16:16 ` Vladimir Prus
2006-03-16 16:40 ` Daniel Jacobowitz
2006-03-16 16:46 ` Vladimir Prus
2006-03-16 17:11 ` Daniel Jacobowitz
2006-03-17 10:46 ` Vladimir Prus
2006-03-17 18:28 ` Daniel Jacobowitz
2006-03-17 17:43 ` Daniel Jacobowitz
2006-03-17 11:03 ` Eli Zaretskii
2006-03-17 10:57 ` Eli Zaretskii
2006-03-16 23:12 ` Nick Roberts
2006-03-16 23:23 ` Daniel Jacobowitz
2006-03-16 23:25 ` David Daney [this message]
2006-03-16 23:54 ` Daniel Jacobowitz
2006-03-17 13:20 ` Eli Zaretskii
2006-03-17 17:34 ` Daniel Jacobowitz
2006-03-18 18:46 ` Eli Zaretskii
2006-03-16 23:56 ` Nick Roberts
2006-03-17 10:55 ` Vladimir Prus
2006-03-17 11:42 ` Eli Zaretskii
2006-03-17 0:04 ` Daniel Jacobowitz
2006-03-17 0:23 ` Joel Brobecker
2006-03-17 3:57 ` Jim Ingham
2006-03-17 11:40 ` Eli Zaretskii
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=4419F35D.6000907@avtrex.com \
--to=ddaney@avtrex.com \
--cc=drow@false.org \
--cc=gdb@sources.redhat.com \
--cc=ghost@cs.msu.su \
--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