This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] infcmd.c (interrupt_command): Renamed from interrupt_target_command.
- From: Doug Evans <xdje42 at gmail dot com>
- To: gdb-patches at sourceware dot org
- Date: Sat, 22 Mar 2014 07:53:39 -0400
- Subject: [commit] infcmd.c (interrupt_command): Renamed from interrupt_target_command.
- Authentication-results: sourceware.org; auth=none
Hi.
It's convention to name functions that implement gdb commands
foo_command. This patch is a simple cleanup to maintain consistency.
Committed.
2014-03-22 Doug Evans <xdje42@gmail.com>
* infcmd.c (interrupt_command): Renamed from interrupt_target_command.
All uses updated.
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 2e70b47..16a1d54 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -2700,7 +2700,7 @@ interrupt_target_1 (int all_threads)
/* interrupt [-a] */
static void
-interrupt_target_command (char *args, int from_tty)
+interrupt_command (char *args, int from_tty)
{
if (target_can_async_p ())
{
@@ -3067,7 +3067,7 @@ You may specify arguments to give to your program, just as with the\n\
\"run\" command."));
set_cmd_completer (c, filename_completer);
- add_com ("interrupt", class_run, interrupt_target_command,
+ add_com ("interrupt", class_run, interrupt_command,
_("Interrupt the execution of the debugged program.\n\
If non-stop mode is enabled, interrupt only the current thread,\n\
otherwise all the threads in the program are stopped. To \n\