Bug 472364 - [breakpoints] Temporary breakpoint should be removed from Breakpoint View upon debug session termination.
Summary: [breakpoints] Temporary breakpoint should be removed from Breakpoint View up...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf-gdb (show other bugs)
Version: 8.6.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-10 09:13 EDT by Stanislav Perepelitsa CLA
Modified: 2020-09-04 15:26 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stanislav Perepelitsa CLA 2015-07-10 09:13:42 EDT
It is common practice then temporary breakpoint used to stop on main(). Normally, it is installed by 'tbreak main' GDB command as scripted in startup session routine. During debug session it usually hit and removed from GDB, but not from Breakpoint View. So, on next session start Eclipse tries to restore this breakpoint, while GDB script tries to install it as well. As a result there are two breakpoints in GDB, and it is confusing.
My point, removing all temporary breakpoints upon session termination may helps.
Comment 1 Stanislav Perepelitsa CLA 2016-12-16 09:58:54 EST
A case how to reproduce this bug:
1. Create a C/C++ project with main() and foo() functions.
2. Build. Open debug configurations-> startup tab- see "set breakpoint at: main"
3. Debug. terminate
4. From Debug configurations set a BP to foo() function, debug again.
5. Open Breakpoint View and check

Observed behavior:
Has two temporary bp in breakpoint view
Expected behavior:
Temporary breakpoint at step 2 ("main") is removed