Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom de Vries <tdevries@suse.de>
To: gdb-patches@sourceware.org
Subject: [PATCH 0/3] [gdb] Fix backtrace in log file
Date: Fri, 23 Oct 2026 09:38:10 +0200	[thread overview]
Message-ID: <20261023073813.2224939-1-tdevries@suse.de> (raw)

This series contains three patches.

The first and last fix a problem with the backtrace not showing up in log
files, one for libbacktrace and one for execinfo.

The second drops an unnecessary flush.

An earlier attempt was submitted here [1], which tried to fix the problem by
adding a logging_file::fd.  This series tries to follow up on review comments.

Tested on x86_64-linux.

Also tested the added test-case with --disable-libbacktrace.

[1] https://sourceware.org/pipermail/gdb-patches/2026-October/231239.html

Tom de Vries (3):
  [gdb] Fix backtrace in log file (libbacktrace case)
  [gdb] Don't flush in handle_fatal_signal
  [gdb] Fix backtrace in log file (execinfo case)

 gdb/bt-utils.c                                | 21 ++++--
 gdb/cli/cli-logging.c                         | 22 +++++-
 gdb/event-top.c                               |  8 --
 gdb/logging-file.h                            |  3 +-
 gdb/mi/mi-console.c                           |  7 +-
 gdb/mi/mi-console.h                           |  2 +-
 .../gdb.base/logging-internal-error.exp       | 75 +++++++++++++++++++
 gdb/ui-file.c                                 | 17 +----
 gdb/ui-file.h                                 | 36 +++++++--
 9 files changed, 147 insertions(+), 44 deletions(-)
 create mode 100644 gdb/testsuite/gdb.base/logging-internal-error.exp


base-commit: 21cffe7c0955c6bdb0c14ded96939d409f3c21f0
-- 
2.51.0


             reply	other threads:[~2026-10-23  7:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-23  7:38 Tom de Vries [this message]
2026-10-23  7:38 ` [PATCH 1/3] [gdb] Fix backtrace in log file (libbacktrace case) Tom de Vries
2026-10-23  7:38 ` [PATCH 2/3] [gdb] Don't flush in handle_fatal_signal Tom de Vries
2026-10-23  7:38 ` [PATCH 3/3] [gdb] Fix backtrace in log file (execinfo case) Tom de Vries

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=20261023073813.2224939-1-tdevries@suse.de \
    --to=tdevries@suse.de \
    --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