From de0bea007c446f40ecec90a2672e0a806d397e1a Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 10 Aug 2012 05:03:13 +0000 Subject: gdb: add completion handler for "handle" and "signal" The command line completion has spoiled me. Thus the lack of completion with the "handle" command annoys me. Patch! This does a few things: - adds a VEC_merge helper - adds a generic signal completer - adds a completion handler for the "handle" command - sets the completion handler for the "signal" command URL: http://sourceware.org/bugzilla/show_bug.cgi?id=10436 Signed-off-by: Mike Frysinger --- gdb/infcmd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/infcmd.c') diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 635e577..d56503c 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -3016,9 +3016,10 @@ Disconnect from a target.\n\ The target will wait for another debugger to connect. Not available for\n\ all targets.")); - add_com ("signal", class_run, signal_command, _("\ + c = add_com ("signal", class_run, signal_command, _("\ Continue program giving it signal specified by the argument.\n\ An argument of \"0\" means continue program without giving it a signal.")); + set_cmd_completer (c, signal_completer); add_com ("stepi", class_run, stepi_command, _("\ Step one instruction exactly.\n\ -- cgit v1.1