public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "etesta at undo dot io" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug gdb/26225] set logging redirect works only from prompt
Date: Fri, 10 Jul 2020 08:55:35 +0000	[thread overview]
Message-ID: <bug-26225-4717-1odUN5Avin@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-26225-4717@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=26225

--- Comment #1 from Emiliano Testa <etesta at undo dot io> ---
The following doesn't seem to work:

python
gdb.execute('set logging off')
gdb.execute('set logging redirect on')
gdb.execute('set logging on')
gdb.execute('next')
gdb.execute('set logging off')
end

I would expect the "next" to be completely silent and "gdb.txt" to contain the
output... it doesn't work.
define snext
set logging off
set logging redirect on
set logging on
next
set logging off
end

snext

works as expected. Is this a bug?

(tried both on GDB-8.1 and GDB-9.2)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  reply	other threads:[~2020-07-10  8:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-10  8:54 [Bug gdb/26225] New: " etesta at undo dot io
2020-07-10  8:55 ` etesta at undo dot io [this message]
2022-08-10 17:27 ` [Bug gdb/26225] " tromey at sourceware dot org

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=bug-26225-4717-1odUN5Avin@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).