This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hello, This is a followup on: [RFA] new set/show multiple-choice-auto-select commands http://www.sourceware.org/ml/gdb-patches/2008-01/msg00007.html I posted a patch that introduced this new option for Ada, but saying that there was no reason to keep this option ada-specific. Users sometimes enter expressions that are ambiguous. For instance, printing the value of a variable that has homonyms. In that case, the debugger doesn't know which of the variables the user meant, and needs to ask the user by displaying a multiple-choice menu. This option allows the user to configure the behavior of the debugger so that, either: 1. The menu is still displayed as before (default behavior) and the debugger waits for the user to select the choice he wants; 2. The menu is not displayed, and the choice "all" is assumed (or an error is triggered if the choice "all" is not available); 3. The menu is not displayed and the choice "cancel" is always assumed (resulting in an error). The syntax is as follow: (gdb) set multiple-choice-auto-select (off|all|cancel) (gdb) show multiple-choice-auto-select Markus will also be using this option for another case where a multiple-choice menu might be useful. 2008-01-16 Joel Brobecker <brobecker@adacore.com> * symtab.c (auto_select_off, auto_select_all, auto_select_cancel): New constants. (auto_select_modes, auto_select_mode): New static globals. (multiple_choice_auto_select_mode): New function. (_initialize_symtab): Add new multiple-choice-auto-select command. * symtab.h (auto_select_off, auto_select_all, auto_select_cancel) (multiple_choice_auto_select_mode): Add declarations. * ada-lang.c (user_select_syms): Add handling of new multiple-choice-auto-select setting. Tested on x86-linux, no regression. Documentation and a testcase will be send when this patch is approved. OK to commit? Thanks, -- Joel
Attachment:
auto-select.diff
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |