From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31863 invoked by alias); 13 Jan 2014 19:13:00 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 31652 invoked by uid 89); 13 Jan 2014 19:12:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 13 Jan 2014 19:12:59 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s0DJCvtr004040 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 13 Jan 2014 14:12:58 -0500 Received: from barimba.redhat.com (ovpn-113-85.phx2.redhat.com [10.3.113.85]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s0DJCptE016701; Mon, 13 Jan 2014 14:12:57 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [RFC 08/32] remove extended_remote_create_inferior_1 Date: Mon, 13 Jan 2014 19:13:00 -0000 Message-Id: <1389640367-5571-9-git-send-email-tromey@redhat.com> In-Reply-To: <1389640367-5571-1-git-send-email-tromey@redhat.com> References: <1389640367-5571-1-git-send-email-tromey@redhat.com> X-SW-Source: 2014-01/txt/msg00344.txt.bz2 I noticed that extended_remote_create_inferior_1 is called from a single spot. This patch unifies the callee and caller. It's just a simple cleanup that made the coming refactoring simpler. 2014-01-08 Tom Tromey * remote.c (extended_remote_create_inferior): Rename from extended_remote_create_inferior_1. Add "ops" argument. Remove old implementation. --- gdb/ChangeLog | 6 ++++++ gdb/remote.c | 13 +++---------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/gdb/remote.c b/gdb/remote.c index 9efb985..3ecab65 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -8079,8 +8079,9 @@ extended_remote_run (char *args) environment. */ static void -extended_remote_create_inferior_1 (char *exec_file, char *args, - char **env, int from_tty) +extended_remote_create_inferior (struct target_ops *ops, + char *exec_file, char *args, + char **env, int from_tty) { int run_worked; char *stop_reply; @@ -8126,14 +8127,6 @@ extended_remote_create_inferior_1 (char *exec_file, char *args, /* Get updated offsets, if the stub uses qOffsets. */ get_offsets (); } - -static void -extended_remote_create_inferior (struct target_ops *ops, - char *exec_file, char *args, - char **env, int from_tty) -{ - extended_remote_create_inferior_1 (exec_file, args, env, from_tty); -} /* Given a location's target info BP_TGT and the packet buffer BUF, output -- 1.8.1.4