nakst / gf

A GDB frontend for Linux.
MIT License
1.82k stars 61 forks source link

fix: handle conditional breakpoints correctly. #125

Closed s4my closed 1 year ago

s4my commented 1 year ago

As of right now we don't display conditional breakpoints in the Breakpoints window if there's already a breakpoint at the same line (ex: b 34 followed by b 34 if i > 19 will only show the 1st breakpoint in the Breakpoints window). This PR adds the ability to have multiple breakpoints at the same line if they have different conditions. To distinguish between them we have added a new column in the Breakpoints window to display the condition for each breakpoint.

Deleting, Disabling or Enabling a breakpoint from the marker on the left margin of the code view, will Delete, Disable or Enable all the breakpoints at that line respectively.

The breakpoint marker in the left margin of the code view will only showed in a disabled state if all the breakpoints points at that given line are disabled.

nakst commented 1 year ago

Thank you for your work on this feature!