gdb設定のオーバーライドログはgdb.txtを上書きする必要がありますか?

gdb設定のオーバーライドログはgdb.txtを上書きする必要がありますか?

私が探していますログ出力この特定のコマンドを試してきました。

set logging overwrite on

AFAI わかりました。このコマンドはgdb.txtの内容を上書きしますが、そうではありません。エラーがあるか、意味/構文を正しく理解できませんでした。

私は走っています -

[$] gdb --version                                                                                                                  
GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".

これは Debian でテストされました。

報告:不安定なgdbパッケージのバグ(バージョン7.12-6)

多くのことを教えてくれませんが、私はgdbの専門家でもなく、中級ユーザーでもありません。上記の動作を引用するのにエラーがある人がいれば共有していただき、私が理解が不足した場合にも共有してください。

更新 -

正確なコマンドは -

$ gdb qbittorrent 
(gdb) set logging overwrite on 
(gdb) set pagination 0
(gdb) run

アプリケーション通過時 - 停止/衝突

QXcbConnection: XCB error: 3 (BadWindow), sequence: 16699, resource id: 14227177, major code: 40 (TranslateCoords), minor code: 0
pure virtual method called
terminate called without an active exception

Thread 1 "qbittorrent" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory. 

私は必要なことをしました -

(gdb) bt
(gdb) bt full
(gdb) thread apply all bt

overwrite ongdbコマンドを使用すると、現在のセッションのgdb.txtの内容が上書きされ、ファイルのタイムスタンプも上書きされることが予想されましたが、両方が発生しませんでした。幸い、セッションを閉じず、デバッグセッションの内容を管理者とアップストリームにコピーして、何が起こっているのかを詳しく調べることができました。

なぜ変わらないのか気になります/理解できないか間違って理解しています。

ベストアンサー1

実際のロギング()がありませんset logging on

(gdb) set logging overwrite on
(gdb) set logging on

おすすめ記事