Hello, guest. We have noticed that you are not registered at this bug tracker. Your experience will be greatly enhanced if you log in. To do so, you first must register by clicking on the Register tab at the top. If you are already registered, you can login at the Login tab.
Syndicate Syndicate Listing Display Search Login/Register
Bug Id ?
Reporter ?
outis
Product/Version ?
MacGDBp / 1.5
Status ?
Unconfirmed
Severity ?
Minor
Duplicate Of ?
- none -
Fixed in Revision ?
Mstone ?
Summary ?
Breakpoints aren't displayed when file is opened via "+" (add breakpoint) button in Breakpoints window.
Report Time ?
June 22, 2019 08:29 PM
Assignment ?
Resolution ?
Open
Priority ?
Normal
Dependencies ?
- none -
Mstone (old) ?


Votes
For: 0 (0%)
Against: 0 (0%)
Total: 0

June 22, 2019 08:29 PM outis
When you click the "+" button in the Breakpoints window to open a file so as to add a breakpoint, the existing breakpoints for the file aren't displayed after the file is loaded.

This has another consequence: if you click on the line number for an existing breakpoint (which isn't displayed), thinking there isn't a breakpoint there, the breakpoint will get removed.

The cause is that `BreakpointController-addBreakpoint:` sets the file for the `BSSourceView`, but doesn't then load the markers for the file. By contrast, if the file is loaded by clicking on a breakpoint in the NSTableView listing breakpoints, `BreakpointController-tableViewSelectionDidChange:` both sets the file and loads the markers.