Bug 415510 - Inserting breakpoint fails because Eclipse didn't wait for the thread to stop before setting the breakpoint
Summary: Inserting breakpoint fails because Eclipse didn't wait for the thread to stop...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf-gdb (show other bugs)
Version: 8.2   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: 2013-08-20 13:50 EDT by Sergey Prigogin CLA
Modified: 2020-09-04 15:20 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Prigogin CLA 2013-08-20 13:50:09 EDT
The following GDB trace shows a stopped notification *after* Eclipse has tried to set a breakpoint. Setting the breakpoint failed because the thread was still running.

605,309 64-exec-interrupt --thread 86
605,309 64^done
605,310 (gdb)
605,311 65-break-insert --thread-group i1 -f myclass.cc:112
605,404 65^error,msg="Cannot access memory at address 0x1aee158"
605,404 =thread-selected,id="1"
605,404 (gdb)
605,405 66-exec-continue --thread 86
605,405 66^error,msg="Cannot execute this command while the selected thread is running."
605,405 (gdb)
605,406 67-exec-continue --thread 86
605,406 67^error,msg="Cannot execute this command while the selected thread is running."
605,406 (gdb)
792,738 *stopped,reason="signal-received",signal-name="SIGINT",signal-meaning="Interrupt",frame={add\
r="0x00007f8093ff8a93",func="epoll_wait",args=[],from="/usr/grte/v3/lib64/libc.so.6"},thread-id="1",\
stopped-threads=["1"],core="8"
Comment 1 Richard Brown CLA 2018-05-24 09:01:38 EDT
I am experiencing this problem now using Eclipse IDE for C/C++ Developers Oxygen.3a Release (4.7.3a).  Is there a workaround?
Comment 2 Richard Brown CLA 2018-06-13 08:58:13 EDT
I found a workaround/fix.  In the Debug configuration, source tab, I was using a File System Directory.  Using a Project solved the issue.