Community
Participate
Working Groups
Allow setting of additonal gdb-specific options in debug launch configuration such as: backtrace limit follow-fork-mode
*** Bug 82019 has been marked as a duplicate of this bug. ***
A property page is needed to change these options during debugging.
Mikhail, I've implemented setting folow-fork-mode in the debug launch config and it's working fine. I'm currently hardcoding backtrace limit but I don't see why that can't also be set in the debug launch config, which is what I'm planning to do.
On second thought, I agree that these settings should go into the a preference page so that the settings apply to all projects rather than the per-project debug launch config.
I am not saying that it shouldn't be in the launch configuration. The standard approach is preferences -> launch configurations -> properties. Preferences provide the default values, launch configurations set the initial values for the session and properties are used to cahnge the values during the session. BTW, why do you need to set backtrace limit. The number of requested stack frames is limited internally. And the backtrace limit affect some operations.
If you generate code dynamically gdb sometimes gets lost and gives you infinite backtraces. That would be one reason you might want to limit backtraces.
The problem with backtrace limit is if it's too small the "stack-info-depth" command returns error for valid number of frames.
In my case, I used backtrace limit to work around a bug in gdb and kgdb where where I was getting an infinite backtrace while debugging a kernel and DevRocket was hosed as a result. Even with a backtrace limit of 100 (a value suggested by Daniel Jacobowitz), DevRocket took a significantly long time to refresh and seemed to be hung for awhile. That was with CDT 2.1.x. I've not tried this with CDT 3.0.x. If backtrace limit is to be implemented as an option in CDT, the allowed values must be within a range that is neither too small nor too large.
I would also like to be able to customise /any/ of the gdb settings currently preset by Eclipse - surely sensible design in any case ? I am currently locked by circumstances into using an older version of gdb, that complains about option '-i'. If I could get at this canned setting it would make life much easier. >>> Error creating session /usr/bin/gdb: unrecognized option `-i' <<<