From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by sourceware.org (Postfix) with ESMTPS id C3BD2394480A for ; Fri, 23 Apr 2021 08:38:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C3BD2394480A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=andrew.burgess@embecosm.com Received: by mail-wm1-x331.google.com with SMTP id u187so6048370wmb.0 for ; Fri, 23 Apr 2021 01:38:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gQf7XYbIhWTnYCQQltaBYuqhM7IrcpRrTt4pvepCdoo=; b=ccqXQN920rnf3sdXrlmYECSbBDh3ogmc07CKvyAXTjyPeQACgiD2eBWEPbQfkYn3lF Qu+d2s41cRa71oYISt5IxUbmq6QD+tfOLaNZWo5QPIIxjQFlD7HYRwzxo0sKJJ2qWqz0 hbElUt4pf09GuDeG98AQPxARBzB7p3xIKZeXmEuQjBRrm6HxsE7UaiTGGaUVrSxAjZLz AlCcxxYP1GTYEWuhL00mcxSS2NLf1Jog1+7+1nYk/0/Aw4JAE8dZits7aYLuofaNNGQs /zHPcwgX9bTKIyXeaynSnias9vSnBn1pr8D6dZu5NYj/0Y668pVsEoxhqqidIYPHWHin KjMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gQf7XYbIhWTnYCQQltaBYuqhM7IrcpRrTt4pvepCdoo=; b=jRzOY3/HwLQt+4ibjcAOdaj3MYKoe0+a/sVB2YGpHbZ1/ctFv4gmt4aKqTB53blD9R kHLVvg6KaI/q89o0oF9dhfZd1ixf/QC9w2e0Tdezg0PinJKg7opMITk7HSUgmLs9w45+ WsvO7AihKzKyOl/p0KN9DbeJkb/nPAX7q2ONjhmLWmtczDrqziaGI9E7/MFuTcJb9hBW C784UFdWftz94Qb9WalQtuJpM8iVyFsLnpxfsyyKnaqsK+tzUN3vmroI2WdIYRURIzpf VH10QWe5tAOTcUAPvM8gW77/Ula74sytg6bzlVgR4xMtVPSReZqkOlFy43m5Is3dXWpV HDsA== X-Gm-Message-State: AOAM530SeYdME3E1IZULd62LSxZsZAM+jJ8Tt+HOvdiI+qSWZH0AinOh sGHOF97WiVRqPIZHvyq73YiE8qd0KMj22A== X-Google-Smtp-Source: ABdhPJztnzvFqu0YXcHjohf1RIdelsBEvmw/HcOyuE+QtJIPzYayKFCVBuCMJFKrrxouHDMYBIAEhA== X-Received: by 2002:a1c:7315:: with SMTP id d21mr2983329wmb.155.1619167112717; Fri, 23 Apr 2021 01:38:32 -0700 (PDT) Received: from localhost (host109-151-46-70.range109-151.btcentralplus.com. [109.151.46.70]) by smtp.gmail.com with ESMTPSA id 66sm11619280wmb.36.2021.04.23.01.38.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Apr 2021 01:38:32 -0700 (PDT) From: Andrew Burgess To: gdb-patches@sourceware.org Subject: [PATCH 1/7] gdb: remove unused argument from gdb_init Date: Thu, 22 Apr 2021 22:02:42 +0100 Message-Id: <27451f97b68a4a06e7c9b20f13327591931431b0.1619125261.git.andrew.burgess@embecosm.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-10.9 required=5.0 tests=BAYES_00, DATE_IN_PAST_06_12, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Apr 2021 08:38:35 -0000 The argument to gdb_init is not used, remove it. There should be no user visible changes after this commit. gdb/ChangeLog: * main.c (captured_main_1): Don't pass argument to gdb_init. * top.c (gdb_init): Remove unused argument, and add header comment. * top.h (gdb_init): Remove argument. --- gdb/ChangeLog | 7 +++++++ gdb/main.c | 2 +- gdb/top.c | 4 +++- gdb/top.h | 2 +- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/gdb/main.c b/gdb/main.c index 60c08fb83dd..652e6f76fa0 100644 --- a/gdb/main.c +++ b/gdb/main.c @@ -1039,7 +1039,7 @@ captured_main_1 (struct captured_main_args *context) gdb::alternate_signal_stack signal_stack; /* Initialize all files. */ - gdb_init (gdb_program_name); + gdb_init (); /* Process early init files and early init options from the command line. */ if (!inhibit_gdbinit) diff --git a/gdb/top.c b/gdb/top.c index ecd90a1433a..b58cd4facfc 100644 --- a/gdb/top.c +++ b/gdb/top.c @@ -2360,8 +2360,10 @@ The second argument is the terminal the UI runs on."), &cmdlist); set_cmd_completer (c, interpreter_completer); } +/* See top.h. */ + void -gdb_init (char *argv0) +gdb_init () { saved_command_line = xstrdup (""); previous_saved_command_line = xstrdup (""); diff --git a/gdb/top.h b/gdb/top.h index 9438e52331b..56bd06c698b 100644 --- a/gdb/top.h +++ b/gdb/top.h @@ -271,7 +271,7 @@ extern void set_prompt (const char *s); extern int gdb_in_secondary_prompt_p (struct ui *ui); /* Perform _initialize initialization. */ -extern void gdb_init (char *); +extern void gdb_init (); /* For use by event-top.c. */ /* Variables from top.c. */ -- 2.25.4