aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2019-07-10 22:52:38 +0100
committerAndrew Burgess <andrew.burgess@embecosm.com>2019-07-11 20:18:17 +0100
commitb16507e0917169555f8bbfcb1d6c9685813ccf6c (patch)
tree192bf877c552f553987b353e04f15dc710962b46 /gdb/ChangeLog
parent021d8588f6ca843a2aada955d00851fbb62f8a62 (diff)
downloadgdb-b16507e0917169555f8bbfcb1d6c9685813ccf6c.zip
gdb-b16507e0917169555f8bbfcb1d6c9685813ccf6c.tar.gz
gdb-b16507e0917169555f8bbfcb1d6c9685813ccf6c.tar.bz2
gdb: Make use of gdb::option framework for some info commands
Update the 'info variables', 'info functions', 'info locals', and 'info args' commands to make use of the gdb::options framework. There should be no user visible changes after this commit as I have left the help text generation using the existing mechanism, which already tries to customise the text for each of the commands. gdb/ChangeLog: * cli/cli-utils.c (extract_info_print_args): Delete. (extract_arg_maybe_quoted): Delete. (info_print_options_defs): New variable. (make_info_print_options_def_group): New function. (extract_info_print_options): Define new function. * cli/cli-utils.h (extract_info_print_args): Delete. (struct info_print_options): New structure. (extract_info_print_options): Declare new function. * stack.c (info_locals_command): Update to use new extract_info_print_options, also add a header comment. (info_args_command): Likewise. * symtab.c (info_variables_command): Likewise. (info_functions_command): Likewise.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog16
1 files changed, 16 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5f9872b..f330fb5 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,21 @@
2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
+ * cli/cli-utils.c (extract_info_print_args): Delete.
+ (extract_arg_maybe_quoted): Delete.
+ (info_print_options_defs): New variable.
+ (make_info_print_options_def_group): New function.
+ (extract_info_print_options): Define new function.
+ * cli/cli-utils.h (extract_info_print_args): Delete.
+ (struct info_print_options): New structure.
+ (extract_info_print_options): Declare new function.
+ * stack.c (info_locals_command): Update to use new
+ extract_info_print_options, also add a header comment.
+ (info_args_command): Likewise.
+ * symtab.c (info_variables_command): Likewise.
+ (info_functions_command): Likewise.
+
+2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
+
* cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
to extract string arguments.
* common/common-utils.c (extract_string_maybe_quoted): New function.