[Converted from Gnats 146] Make "target xxx" command interruptible. As things become async this becomes possible. A target would start the connect and then return control to the event loop. A cntrl-c would notify the target that the operation is to be abandoned and the target code could respond. Release: unknown
From: cagney@sources.redhat.com To: gdb-gnats@sources.redhat.com Cc: Subject: gdb/146 Date: 19 Mar 2002 02:19:18 -0000 CVSROOT: /cvs/src Module name: src Changes by: cagney@sources.redhat.com 2002-03-18 18:19:18 Modified files: gdb : ChangeLog command.h gdb/cli : cli-decode.c cli-decode.h Log message: * command.h (struct cmd_list_element): Add field context. (set_cmd_context, get_cmd_context): Declare. * cli/cli-decode.h: Ditto. * cli/cli-decode.c (get_cmd_context): New function. (set_cmd_context): New function. (add_cmd): Initialize context. Part of fixing PR gdb/145 and PR gdb/146. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.2328&r2=1.2329 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/command.h.diff?cvsroot=src&r1=1.27&r2=1.28 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/cli/cli-decode.c.diff?cvsroot=src&r1=1.16&r2=1.17 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/cli/cli-decode.h.diff?cvsroot=src&r1=1.9&r2=1.10
I wonder if we could also make "target ... &" work, to do the connecting in the background. Or if that's useful at all.