This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: MI: changing breakpoint location
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.
BTW, this does make me think about the original request differently; it
does seem a bit awkward to have to delete and recreate breakpoints
every time the user edits a source file. Maybe it isn't. I don't
know...
--
Daniel Jacobowitz
CodeSourcery