Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 350502

Summary: Change defaults for "Stop on startup at main" and "Non-stop mode"
Product: [Tools] CDT Reporter: Sergey Prigogin <eclipse.sprigogin>
Component: cdt-debug-dsf-gdbAssignee: Sergey Prigogin <eclipse.sprigogin>
Status: CLOSED WONTFIX QA Contact: Marc Khouzam <marc.khouzam>
Severity: normal    
Priority: P3 CC: cdtdoug, elaskavaia.cdt, malaperle, overholt, pawel.1.piech
Version: 8.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 348091    
Bug Blocks:    
Attachments:
Description Flags
Proposed change eclipse.sprigogin: iplog-

Description Sergey Prigogin CLA 2011-06-27 17:41:32 EDT
Since users can now configure global defaults for "Stop on startup at main" and "Non-stop mode" (bug 347245), it makes sense to change the out-of-the-box defaults so that they satisfy the majority of users. "Stop on startup at main" should default to false and "Non-stop mode" should default to true.
Comment 1 Sergey Prigogin CLA 2011-06-27 17:43:34 EDT
Created attachment 198691 [details]
Proposed change
Comment 2 Marc Khouzam CLA 2011-06-27 22:20:12 EDT
I think this is a good idea, especially for non-stop. However, we suggest fixing Bug 348091 before.

Since this was already proposed on the mailing list and created some discussions, can you post your intention to the list for transparency?  I'll second your proposal.
Comment 3 Marc-André Laperle CLA 2011-06-27 23:19:43 EDT
Non-stop doesn't work on Windows and Mac though, so I would not agree with that. Maybe we can find a way to make it the default only on Linux or ignore the non-stop option on Windows and Mac. Right now, I get errors "Error in final launch sequence" on Windows and "Non-stop mode is only supported starting with GDB 6.8.50" on Mac.
Comment 4 Marc-André Laperle CLA 2011-06-27 23:20:40 EDT
(In reply to comment #3)
> Non-stop doesn't work on Windows and Mac though, so I would not agree with
> that. Maybe we can find a way to make it the default only on Linux or ignore
> the non-stop option on Windows and Mac. Right now, I get errors "Error in final
> launch sequence" on Windows and "Non-stop mode is only supported starting with
> GDB 6.8.50" on Mac.

Forgot to add "The target does not support running in non-stop mode" for Windows.
Comment 5 Marc Khouzam CLA 2011-06-27 23:21:46 EDT
(In reply to comment #3)
> Non-stop doesn't work on Windows and Mac though, so I would not agree with
> that. Maybe we can find a way to make it the default only on Linux or ignore
> the non-stop option on Windows and Mac. Right now, I get errors "Error in final
> launch sequence" on Windows and "Non-stop mode is only supported starting with
> GDB 6.8.50" on Mac.

Woops, that is a very good point.  Thanks for mentioning it.

I like the idea of having the default for Linux only.
Comment 6 Elena Laskavaia CLA 2011-06-28 11:43:33 EDT
-1 for changing defaults for main
Comment 7 Marc-André Laperle CLA 2012-04-30 01:13:16 EDT
So...should we mark this as WONTFIX? At least we have preferences now.
Comment 8 Sergey Prigogin CLA 2012-04-30 01:35:47 EDT
(In reply to comment #7)
> So...should we mark this as WONTFIX? At least we have preferences now.

Agree.