public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* suppress the output of backtrace to screen
@ 2019-01-21  3:40 Peng Yu
  2019-01-21 22:54 ` Sergio Durigan Junior
  0 siblings, 1 reply; 2+ messages in thread
From: Peng Yu @ 2019-01-21  3:40 UTC (permalink / raw)
  To: gdb

Hi,

I have logging on. So I don't want bt (via commads for breakpoints) to
print the output to the screen. Is there a way to send it output only
to the log? Thanks.

https://sourceware.org/gdb/onlinedocs/gdb/Backtrace.html

-- 
Regards,
Peng

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: suppress the output of backtrace to screen
  2019-01-21  3:40 suppress the output of backtrace to screen Peng Yu
@ 2019-01-21 22:54 ` Sergio Durigan Junior
  0 siblings, 0 replies; 2+ messages in thread
From: Sergio Durigan Junior @ 2019-01-21 22:54 UTC (permalink / raw)
  To: Peng Yu; +Cc: gdb

On Sunday, January 20 2019, Peng Yu wrote:

> Hi,
>
> I have logging on. So I don't want bt (via commads for breakpoints) to
> print the output to the screen. Is there a way to send it output only
> to the log? Thanks.
>
> https://sourceware.org/gdb/onlinedocs/gdb/Backtrace.html

Hello,

I believe this is what you're looking for:

(gdb) help set logging redirect 
Set the logging output mode.
If redirect is off, output will go to both the screen and the log file.
If redirect is on, output will go only to the log file.

Thanks,

-- 
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF  31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
http://sergiodj.net/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-01-21 22:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-21  3:40 suppress the output of backtrace to screen Peng Yu
2019-01-21 22:54 ` Sergio Durigan Junior

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).