From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 288733857C43 for ; Fri, 25 Aug 2023 15:35:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 288733857C43 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692977706; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+kDAPLXenfH6a4aTsk3lQ+Ap+f04hhkpzuUWXuduXQc=; b=ID0BHZW/QNfLWiczWJXi6H8yAtaHKWt9wSNA9Msn3xO98jCUO//YOGmv3QqPF52zn0xS1L HW5ir4uB3GWwzNyQiGgMW+T4y4BGB9tHNqy3hr1PZ3Qa4mWKOlIEs1aQ0unY7wj6+O7oE4 MIN8t0LhVSj/ci3x9keUkPwqGIjmZ6w= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-102-n-jEFO2fOkyxUQUh-Qkq5A-1; Fri, 25 Aug 2023 11:35:05 -0400 X-MC-Unique: n-jEFO2fOkyxUQUh-Qkq5A-1 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-4011f56165eso11686275e9.0 for ; Fri, 25 Aug 2023 08:35:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692977704; x=1693582504; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+kDAPLXenfH6a4aTsk3lQ+Ap+f04hhkpzuUWXuduXQc=; b=W1qg7nKvoVzOGlizld6yh7TKQKQR2a7JFf0EP/g/Qoe3ChKkfnveiA7HWdskW34aC5 uiFxnfGcAi8pUzAgHlGGeIUlT73KpNAoTb2/JwFw7yu7qQC+ODPIT4xfT3nHe9NfhYf1 jMVEbFClKqpjDiLt3uS64Wev4U9kk247uwmr91j+/1My3fyzglxBQknt09UpzTRDidxY GQFf/D36A+X5AiM+904XGX3xoVrI5Sw2TlLaiJaMJyWCeBchGEhI9dOpcaJmPAPMmuku pHjOeH7MqCMlCGn3etFndDtHvIIVc31FOQML5DoIpmI9NMeShIMpkCvsJo4BWLB4hKGf 2FHw== X-Gm-Message-State: AOJu0YxZZMvaVJYY4oDfYnM+E3nRH1B6SGG1mFt1J8rqLe2OnyUhw8vY q0/2FGHyXLOknDSAhMD97dwIqdM5MOXDCrB8uXmUqg/36EG8+GjWKgSyCLrt8QuBC3nEAH+/nbA kT/dHUxUsbLqxI1hAs0tjMR/KD6z4bXxammv/wDk8e9V+s80kT8d1VUjpjioLp27DXUAdQ+oIBL uNj5izLA== X-Received: by 2002:a05:600c:2046:b0:3fe:1587:fdf3 with SMTP id p6-20020a05600c204600b003fe1587fdf3mr15441486wmg.14.1692977704385; Fri, 25 Aug 2023 08:35:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFBBa3i8H3D6fzd0KC0B8/Dqkmy3OCpLB9CQTgLQ/o0pYK5YjAUXm7SeVzshw7fyd2cmrS21A== X-Received: by 2002:a05:600c:2046:b0:3fe:1587:fdf3 with SMTP id p6-20020a05600c204600b003fe1587fdf3mr15441477wmg.14.1692977704174; Fri, 25 Aug 2023 08:35:04 -0700 (PDT) Received: from localhost ([31.111.84.232]) by smtp.gmail.com with ESMTPSA id 19-20020a05600c235300b003fe4548188bsm5677177wmq.48.2023.08.25.08.35.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Aug 2023 08:35:03 -0700 (PDT) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Andrew Burgess , Mark Wielaard Subject: [PATCHv2 10/10] gdb: remove the get_remote_exec_file function Date: Fri, 25 Aug 2023 16:34:43 +0100 Message-Id: <03821787403b6fdbd41cbc6323747460dc4640d6.1692977354.git.aburgess@redhat.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: References: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: After the previous commit, the get_remote_exec_file function is only used in one place, so inline it and delete get_remote_exec_file. There should be no user visible changes after this commit. Reviewed-by: Mark Wielaard --- gdb/remote.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/gdb/remote.c b/gdb/remote.c index 87ec0562bfb..c483e060966 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -1864,16 +1864,6 @@ remote_target::get_remote_state () return &m_remote_state; } -/* Fetch the remote exec-file from the current program space. */ - -static const std::string & -get_remote_exec_file () -{ - const remote_exec_file_info &info - = get_remote_exec_file_info (current_program_space); - return info.first; -} - /* Set the remote exec file for PSPACE. */ static void @@ -1900,7 +1890,9 @@ set_remote_exec_file_cb (const std::string &filename) static const std::string & get_remote_exec_file_cb () { - return get_remote_exec_file (); + const remote_exec_file_info &info + = get_remote_exec_file_info (current_program_space); + return info.first; } /* Implement the "show remote exec-file" command. */ -- 2.25.4