This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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\


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]