From patchwork Sat Mar 22 11:53:39 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Evans X-Patchwork-Id: 236 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx22.g.dreamhost.com (caibbdcaabij.dreamhost.com [208.113.200.189]) by wilcox.dreamhost.com (Postfix) with ESMTP id CC669360090 for ; Sat, 22 Mar 2014 22:10:50 -0700 (PDT) Received: by homiemail-mx22.g.dreamhost.com (Postfix, from userid 14314964) id 7A4584FB665A; Sat, 22 Mar 2014 22:10:50 -0700 (PDT) X-Original-To: gdb@patchwork.siddhesh.in Delivered-To: x14314964@homiemail-mx22.g.dreamhost.com Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by homiemail-mx22.g.dreamhost.com (Postfix) with ESMTPS id 394804FB2420 for ; Sat, 22 Mar 2014 22:10:50 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type; q=dns; s=default; b=jRnspG1DIXfzqSl+vr5fAdBKwzAdM 30dUnysv4PTYpGG4siHzhaXvn7HE3TKJ5Dkm8JandkY1todgRJrZWt5/rV5ZXw/Y WNmHtUYFneC2oTc5mFMr/Ff3p7aTKbd3rHz4dRrjPnlzh5Acfxx7LgxZnUin9r40 zSuBcdKHTv8U8o= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type; s=default; bh=QypiDQG0mTyA52lvHPRV9oYPneA=; b=WlW JdKapbM9guv6unlOTGJCImnV5lZve06d7E9+RLI0SdJWKvCsvnAhHSB2BtF0BO78 ZwiDFs2RvfpC7Cvzw3DqTN6/saDWSUjR41dBjWY1hs3mmRk5xtyF8c4NRp76/COS Uikqw1C9Zl4VLIZd+/Tguij58UIx/wUbm1X2O82Q= Received: (qmail 13743 invoked by alias); 23 Mar 2014 05:10:47 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 13731 invoked by uid 89); 23 Mar 2014 05:10:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL, BAYES_00, DATE_IN_PAST_12_24, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-pd0-f170.google.com Received: from mail-pd0-f170.google.com (HELO mail-pd0-f170.google.com) (209.85.192.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sun, 23 Mar 2014 05:10:42 +0000 Received: by mail-pd0-f170.google.com with SMTP id v10so3975161pde.15 for ; Sat, 22 Mar 2014 22:10:40 -0700 (PDT) X-Received: by 10.68.171.193 with SMTP id aw1mr63136205pbc.117.1395551440399; Sat, 22 Mar 2014 22:10:40 -0700 (PDT) Received: from ruffy-vm.sspiff.org.gmail.com (173-13-178-50-sfba.hfc.comcastbusiness.net. [173.13.178.50]) by mx.google.com with ESMTPSA id hr5sm51723954pac.18.2014.03.22.22.10.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 22 Mar 2014 22:10:39 -0700 (PDT) From: Doug Evans To: gdb-patches@sourceware.org Subject: [commit] infcmd.c (interrupt_command): Renamed from interrupt_target_command. Date: Sat, 22 Mar 2014 07:53:39 -0400 Message-ID: MIME-Version: 1.0 X-IsSubscribed: yes X-DH-Original-To: gdb@patchwork.siddhesh.in 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 * 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\