Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Markus Metzger <markus.t.metzger@intel.com>
To: gdb-patches@sourceware.org
Subject: [PATCH v1 5/7] gdb, btrace: remove btrace_teardown()
Date: Tue, 10 Nov 2026 07:43:14 +0100	[thread overview]
Message-ID: <20261110064317.405487-6-markus.t.metzger@intel.com> (raw)
In-Reply-To: <20261110064317.405487-1-markus.t.metzger@intel.com>

The function is no longer used.  Remove it.
---
 gdb/btrace.c | 19 -------------------
 gdb/btrace.h |  5 -----
 2 files changed, 24 deletions(-)

diff --git a/gdb/btrace.c b/gdb/btrace.c
index db8177ffecc..1ac25444a03 100644
--- a/gdb/btrace.c
+++ b/gdb/btrace.c
@@ -2086,25 +2086,6 @@ btrace_disable (struct thread_info *tp)
 
 /* See btrace.h.  */
 
-void
-btrace_teardown (struct thread_info *tp)
-{
-  struct btrace_thread_info *btp = &tp->btrace;
-
-  if (btp->target == NULL)
-    return;
-
-  DEBUG ("teardown thread %s (%s)", print_thread_id (tp),
-	 tp->ptid.to_string ().c_str ());
-
-  target_teardown_btrace (btp->target);
-  btp->target = NULL;
-
-  btrace_clear (tp);
-}
-
-/* See btrace.h.  */
-
 void
 clear_btrace_resources (struct thread_info *tp)
 {
diff --git a/gdb/btrace.h b/gdb/btrace.h
index c93ec0f07c8..8fc51ab86a6 100644
--- a/gdb/btrace.h
+++ b/gdb/btrace.h
@@ -409,11 +409,6 @@ extern const struct btrace_config *
    This will also delete the current branch trace data.  */
 extern void btrace_disable (struct thread_info *);
 
-/* Disable branch tracing for a thread during teardown.
-   This is similar to btrace_disable, except that it will use
-   target_teardown_btrace instead of target_disable_btrace.  */
-extern void btrace_teardown (struct thread_info *);
-
 /* Clear branch tracing resources for a thread.  */
 extern void clear_btrace_resources (struct thread_info *);
 
-- 
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.


  parent reply	other threads:[~2026-11-10  6:44 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 ` Markus Metzger [this message]
2026-11-10  6:43 ` [PATCH v1 6/7] gdb, btrace: remove the teardown_btrace() target method Markus Metzger
2026-11-10  6:43 ` [PATCH v1 7/7] gdb, btrace: remove the disconnect() record-btrace " Markus Metzger

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-6-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