Bug 264566 - [multi-process] [launch] Need a launch option to control global breakpoints
Summary: [multi-process] [launch] Need a launch option to control global breakpoints
Status: ASSIGNED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf-gdb (show other bugs)
Version: 6.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-11 13:47 EST by Marc Khouzam CLA
Modified: 2020-09-04 15:25 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Khouzam CLA 2009-02-11 13:47:17 EST
GDB will support breakpoints that can be global.  Such breakpoints will affect all processes, not just the ones GDB is currently attached to.  In that case, if a bp is hit, GDB will automatically attach to the affected process.

set breakpoint always-inserted on/off
can be used to turn on/off global bps.  This option should be made available to the user in the launch.

Before global breakpoints, the normal use case was
1- user manually attaches to process of interest
2- GDB stops that process
3- user sets a breakpoint in that process
4- user resumes the process
5- process hits the breakpoint

With global bps enabled, the usecase becomes much better
1- user sets a global breakpoint
2- process hits the breakpoint

There is no longer a need to stop a process simply to plant a breakpoint.  In fact, manually attaching to a process becomes unnecessary.  Therefore, it would be nice to disable the connect button when global breakpoints are enabled.

Even more important is that the launch should -not- prompt the user for a process to attach to upon startup, when global breakpoints are enabled.