Bug 208520 - Adding breakpoints in background doesn't get reflected in UI.
Summary: Adding breakpoints in background doesn't get reflected in UI.
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 4.0.1   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-02 05:09 EDT by Boris Pruessmann CLA
Modified: 2020-09-04 15:22 EDT (History)
0 users

See Also:


Attachments
Patch for BreakpointManager (946 bytes, patch)
2007-11-02 05:09 EDT, Boris Pruessmann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Boris Pruessmann CLA 2007-11-02 05:09:42 EDT
Created attachment 81928 [details]
Patch for BreakpointManager

On MacOS, when CDT tries to add shared library breakpoints through the EventManager it fails to update the corresponding breakpoints in UI once it succeeds. Reason seems to be that BreakpointManager does not already have a list of breakpoints for the target. Please find a small patch attached that fixes the problem, though I am not sure whether this is the best solution for the problem.

To reproduce the problem:
Try to debug an executable that lazy loads a shared library due to some external event. On MacOS you could for example try to debug a Finder Context Menu. Setting breakpoints in the shared library will be displayer as not resolved, even if gdb is able to break.