Bug 576507 - Debugger always stops at main(), option to disable this behavior is ignored
Summary: Debugger always stops at main(), option to disable this behavior is ignored
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: Next   Edit
Hardware: PC Linux
: 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: 2021-10-07 18:03 EDT by Szczepan Holyszewski CLA
Modified: 2021-10-07 18:20 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 Szczepan Holyszewski CLA 2021-10-07 18:03:59 EDT
With CDT 10.4.1 and GDB 11.1, the debugger always stops at main(), and disabling the option that is supposed to enable this behavior is ignored.

By restarting Eclipse, I verified that unchecking the option is successfully committed to persistent options storage.

Re-enabling the option and writing something foo-ish as the name of the entrypoint to stop at has no effect either - it still stops at main(), there's no warning from GDB about unknown symbol (or the warning doesn't make it to the GUI), as if no effort were even made to put the option into effect.
Comment 1 Jonah Graham CLA 2021-10-07 18:20:31 EDT
Hi, thanks for the bug report.

Is this something that appears to have regressed from a previous release?

Are you unchecking the stop at main in the preferences, or in the launch configuration dialog? The former sets the defaults when creating launch configurations, but won't change already created ones.

If the latter, please send your launch file and MI output. If you need instructions on how to get those let me know and when I am in front of a computer later I will provide those.

Thanks
Jonah