diff options
author | johannst <johannst@users.noreply.github.com> | 2023-06-26 19:23:26 +0000 |
---|---|---|
committer | johannst <johannst@users.noreply.github.com> | 2023-06-26 19:23:26 +0000 |
commit | 1b251a08f8c10ff292d1ca9b1c580e88df483b94 (patch) | |
tree | d208cdef5bb2029909f7f65dede1f20c25acc14e /tools/gdb.html | |
parent | a85e47072ff808846242da49295b4b73af23b840 (diff) | |
download | notes-1b251a08f8c10ff292d1ca9b1c580e88df483b94.tar.gz notes-1b251a08f8c10ff292d1ca9b1c580e88df483b94.zip |
deploy: e730452fd8bd6824d35f25f2e87b8ec788b626fd
Diffstat (limited to 'tools/gdb.html')
-rw-r--r-- | tools/gdb.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/gdb.html b/tools/gdb.html index 145fc62..d40e26d 100644 --- a/tools/gdb.html +++ b/tools/gdb.html @@ -341,6 +341,12 @@ instruction pointer (<code>$rip</code> x86) and format as instruction <code>/i</ # Make existing breakpoint conditional cond 2 if i == 7 </code></pre> +<h2 id="set-breakpoint-on-all-threads-except-one"><a class="header" href="#set-breakpoint-on-all-threads-except-one">Set breakpoint on all threads except one</a></h2> +<p>Create conditional breakpoint using the <code>$_thread</code> <a href="https://sourceware.org/gdb/onlinedocs/gdb/Convenience-Vars.html#Convenience-Vars">convenience +variable</a>.</p> +<pre><code class="language-markdown"> # Create conditional breakpoint on all threads except thread 12. + b foo if $_thread != 12 +</code></pre> <h2 id="catch-sigsegv-and-execute-commands"><a class="header" href="#catch-sigsegv-and-execute-commands">Catch SIGSEGV and execute commands</a></h2> <p>This creates a <code>catchpoint</code> for the <code>SIGSEGV</code> signal and attached the <code>command</code> to it.</p> |