From: Markus Metzger <markus.t.metzger@intel.com>
To: gdb-patches@sourceware.org
Subject: [PATCH v1 7/7] gdb, btrace: remove the disconnect() record-btrace target method
Date: Tue, 10 Nov 2026 07:43:16 +0100 [thread overview]
Message-ID: <20261110064317.405487-8-markus.t.metzger@intel.com> (raw)
In-Reply-To: <20261110064317.405487-1-markus.t.metzger@intel.com>
There is no need to unpush the record-btrace target. The remote target
beneath will do that.
---
gdb/record-btrace.c | 17 -----------------
1 file changed, 17 deletions(-)
diff --git a/gdb/record-btrace.c b/gdb/record-btrace.c
index cbebb3dbee2..72228c0ee48 100644
--- a/gdb/record-btrace.c
+++ b/gdb/record-btrace.c
@@ -70,8 +70,6 @@ class record_btrace_target final : public target_ops
void detach (inferior *inf, int from_tty) override
{ record_detach (this, inf, from_tty); }
- void disconnect (const char *, int) override;
-
void mourn_inferior () override
{ record_mourn_inferior (this); }
@@ -427,21 +425,6 @@ record_btrace_target::stop_recording ()
return is_replaying;
}
-/* The disconnect method of target record-btrace. */
-
-void
-record_btrace_target::disconnect (const char *args,
- int from_tty)
-{
- struct target_ops *beneath = this->beneath ();
-
- /* Do not stop recording, just clean up GDB side. */
- current_inferior ()->unpush_target (this);
-
- /* Forward disconnect. */
- beneath->disconnect (args, from_tty);
-}
-
/* The close method of target record-btrace. */
void
--
2.53.0
________________________________________
Intel Deutschland GmbH
Registered Address: Dornacher Strasse 1, 85622 Feldkirchen, Germany
Tel: +49 (89) 99143-0
www.intel.de
Managing Directors: Candice Moore, Jeffrey Schneiderman, Ramachandran Sitaraman
Chairperson of the Supervisory Board: Sonja Pierer
Registered Seat: Munich Commercial Register B: Amtsgericht Munich HRB 186928
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
prev parent reply other threads:[~2026-11-10 6:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-10 6:43 [PATCH v1 0/7] gdb, btrace: fix unexpected core file Markus Metzger
2026-11-10 6:43 ` [PATCH v1 1/7] gdb, btrace: add clear_btrace_resources() Markus Metzger
2026-11-10 6:43 ` [PATCH v1 2/7] gdb, btrace: disable tracing in linux_btrace_target_info dtor Markus Metzger
2026-11-10 6:43 ` [PATCH v1 3/7] gdb, btrace: do not use btrace_teardown() for an exited thread Markus Metzger
2026-11-10 6:43 ` [PATCH v1 4/7] gdb, btrace: do not stop recording on close Markus Metzger
2026-11-10 6:43 ` [PATCH v1 5/7] gdb, btrace: remove btrace_teardown() Markus Metzger
2026-11-10 6:43 ` [PATCH v1 6/7] gdb, btrace: remove the teardown_btrace() target method Markus Metzger
2026-11-10 6:43 ` Markus Metzger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261110064317.405487-8-markus.t.metzger@intel.com \
--to=markus.t.metzger@intel.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox