[commit] infcmd.c (interrupt_command): Renamed from interrupt_target_command.

Message ID wrbk3bm8n5o.fsf@sspiff.org
State Committed
Headers

Commit Message

Doug Evans March 22, 2014, 11:53 a.m. UTC
  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.
  

Patch

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\