Bug 396392 - Attach to process: Eclipse does not continue if breakpoints are active
Summary: Attach to process: Eclipse does not continue if breakpoints are active
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 8.0.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: cdt-debug-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-12 06:12 EST by Sebastian Wirkert CLA
Modified: 2020-09-04 15:20 EDT (History)
3 users (show)

See Also:


Attachments
failureMessageWhenAttachingInNonstopMode (10.66 KB, image/png)
2012-12-13 10:54 EST, Sebastian Wirkert CLA
no flags Details
attach behavior with no breakpoints (248.78 KB, image/png)
2012-12-18 08:26 EST, Sebastian Wirkert CLA
no flags Details
attach behavior with breakpoints (324.68 KB, image/png)
2012-12-18 08:29 EST, Sebastian Wirkert CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Wirkert CLA 2012-12-12 06:12:29 EST
The attach to process debug does not work in helios if there are activated breakpoints present. One needs to deactivate them, start debugging and only then is able to activate them again.
Comment 1 Marc Khouzam CLA 2012-12-12 09:06:32 EST
I'm not sure I understand the problem exactly, but it sounds like you should be running non-stop mode:

http://wiki.eclipse.org/CDT/User/NewIn80#Non-stop_attach_does_not_interrupt_the_process

http://wiki.eclipse.org/CDT/User/FAQ#What_is_the_difference_between_Non-stop_and_All-stop_multi-threaded_debugging.3F

Please confirm if this fixes your issue.
Comment 2 Sebastian Wirkert CLA 2012-12-13 10:54:06 EST
Created attachment 224670 [details]
failureMessageWhenAttachingInNonstopMode

Unfortunately it doesn't let me debug when the non-stop mode flag is set. My gdb version is 7.3.1..

Also, we run normal C code with one thread. Unfortunately I found no easy way to reproduce this bug.
Comment 3 Marc Khouzam CLA 2012-12-14 11:44:53 EST
So your target does not support non-stop.  Let's stick to all-stop.

(In reply to comment #0)
> The attach to process debug does not work in helios if there are activated
> breakpoints present. One needs to deactivate them, start debugging and only
> then is able to activate them again.

Please explain what you mean by "does not work".
Comment 4 Sebastian Wirkert CLA 2012-12-18 08:26:41 EST
Created attachment 224864 [details]
attach behavior with no breakpoints

This is the what happens when attaching with no active breakpoints, I can click on "play" and when debug normally. As next attachment I will upload the behavior when a breakpoint is active before attaching.
Comment 5 Sebastian Wirkert CLA 2012-12-18 08:29:37 EST
Created attachment 224865 [details]
attach behavior with breakpoints

This is the behavior when a breakpoint is set. I just noticed that where is an error message at the breakpoints position: installation failed. I can not push the play button nor can I continue my program.