From fb277028813415efac5e017e86c5e00b332b11f6 Mon Sep 17 00:00:00 2001 From: Ernie Pasveer Date: Thu, 20 Apr 2023 19:01:14 -0500 Subject: [PATCH] Suppress annoying popup about threads terminating. --- src/SeerMainWindow.cpp | 4 ++++ tests/hellosegv/README.rr | 26 ++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 tests/hellosegv/README.rr diff --git a/src/SeerMainWindow.cpp b/src/SeerMainWindow.cpp index c7f34ad9..c5439b4d 100644 --- a/src/SeerMainWindow.cpp +++ b/src/SeerMainWindow.cpp @@ -759,6 +759,10 @@ void SeerMainWindow::handleText (const QString& text) { return; } + if (newtext == "^error,msg=\"The current thread has terminated\"") { + return; + } + // Display the error message. QString msg_text = Seer::parseFirst(text, "msg=", false); diff --git a/tests/hellosegv/README.rr b/tests/hellosegv/README.rr new file mode 100644 index 00000000..0f045288 --- /dev/null +++ b/tests/hellosegv/README.rr @@ -0,0 +1,26 @@ + +Record a RR session. + + https://github.com/rr-debugger/rr/wiki/Usage + + $ rr record -n hellosegv one two three + +Replay the RR session in gdb. + + $ rr replay + +Using RR in a gui debugger. Basically, attach to the rr server port. + + https://github.com/rr-debugger/rr/wiki/Using-rr-in-an-IDE + + $ rr replay -s 50505 -k + + $ rr replay -s 50505 -k + Launch gdb with + gdb '-l' '10000' '-ex' 'set sysroot /' '-ex' 'target extended-remote 127.0.0.1:50505' /nas/erniep/Development/seer/tests/hellosegv/hellosegv + +In a different terminal, use "Connect" method in Debug dialog and connect to "127.0.0.1:50505". + + $ seergdb --connect localhost:50505 + +