Commit a4915e8d authored by Tom Tromey's avatar Tom Tromey
Browse files

Use expression completer for "maint print type"

I happened to notice that expression completion did not work correctly
for "maint print type".  This patch adds the appropriate completer
there.

gdb/ChangeLog
2020-12-07  Tom Tromey  <tromey@adacore.com>

	* maint.c (_initialize_maint_cmds): Use expression command
	completer for "maint print type".
parent cd8d2039
2020-12-07 Tom Tromey <tromey@adacore.com>
* maint.c (_initialize_maint_cmds): Use expression command
completer for "maint print type".
2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
 
* completer.c (complete_explicit_location): Also add keywords
......
......@@ -1193,11 +1193,12 @@ If nonzero, will cause the execution space for each command to be\n\
displayed, following the command's output."),
&maintenancelist);
add_cmd ("type", class_maintenance, maintenance_print_type, _("\
cmd = add_cmd ("type", class_maintenance, maintenance_print_type, _("\
Print a type chain for a given symbol.\n\
For each node in a type chain, print the raw data for each member of\n\
the type structure, and the interpretation of the data."),
&maintenanceprintlist);
set_cmd_completer (cmd, expression_completer);
add_cmd ("statistics", class_maintenance, maintenance_print_statistics,
_("Print statistics about internal gdb state."),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment