Menu

#862 gdbplugin - Breakpoints move when lines added or deleted

open
nobody
None
5
2011-12-08
2007-06-17
blokeley
No

Try:

1. Set a breakpoint in code (say line 10).

2. Add a line of code above that breakpoint.

3. The breakpoint should be incremented to line 11, but is not.

This means that every time a line (even comment) is added or removed, all breakpoints are in the wrong place.

(Great work so far on gdbplugin. Let me know if I can help.)

Discussion

  • Anonymous

    Anonymous - 2007-06-17

    Logged In: YES
    user_id=1477607
    Originator: NO

    Right. I think the right solution to this is to react to buffer modifications the same way that markers do.

    Regarding help: GdbPlugin is open source; if you want to contribute (e.g. by fixing this yourself) - you're more than welcome to do it. My development time of GdbPlugin is over. I only have time to support it, about 1-2 hours a week. And there's quite a lot to add to it, many little features as well as several large ones. (See TODO.txt in the root directory of the source tree for a start...)

    Shlomy

     
  • Anonymous

    Anonymous - 2007-06-17
    • assigned_to: nobody --> shlomy
     
  • Anonymous

    Anonymous - 2007-06-17

    Updated GdbPlugin

     
  • Anonymous

    Anonymous - 2007-06-17

    Logged In: YES
    user_id=1477607
    Originator: NO

    Should be fixed in SVN revision 9819. I've attached the updated GdbPlugin.jar, can you verify?
    Thanks.
    File Added: GdbPlugin.jar

     
  • blokeley

    blokeley - 2007-06-18

    Logged In: YES
    user_id=1743859
    Originator: YES

    After I removed the extra directories in the GdbPlugin.jar file (see bug 1739342) the jar loads.

    The breakpoint marker in the jEdit gutter moves correctly and gdb gets the new breakpoint line.

    The line number in the breakpoints dockable is NOT updated.

     
  • Anonymous

    Anonymous - 2007-06-19

    Logged In: YES
    user_id=1477607
    Originator: NO

    I think the breakpoints dockable should be replaced by a modal breakpoint dialog. What do you say? I don't think it makes sense for a dockable window like the breakpoints dockable to be updated whenever the line number of a breakpoint changes as result of line insertion/deletion. Would it be okay to replace the dockable with a dialog?

     
  • blokeley

    blokeley - 2007-07-11

    Logged In: YES
    user_id=1743859
    Originator: YES

    My humble opinion: keep the breakpoints view dockable, but only update it then the user saves the file.

    Logic: the file must be saved to be compiled before debugging anyway.

     
  • Anonymous

    Anonymous - 2010-06-15

    Unassigning myself, as I no longer maintain the plugin.

     
  • Anonymous

    Anonymous - 2010-06-15
    • assigned_to: shlomy --> nobody
     
  • Alan Ezust

    Alan Ezust - 2011-12-05
    • assigned_to: nobody --> shlomy
     
  • Anonymous

    Anonymous - 2011-12-08

    Unassigning myself since I no longer maintain the plugin.

     
  • Anonymous

    Anonymous - 2011-12-08
    • assigned_to: shlomy --> nobody
     

Log in to post a comment.