diff options
author | johannst <johannst@users.noreply.github.com> | 2024-04-05 23:16:19 +0000 |
---|---|---|
committer | johannst <johannst@users.noreply.github.com> | 2024-04-05 23:16:19 +0000 |
commit | 63d71256f83e5da6479d90d1bbdaf17ad6d31f02 (patch) | |
tree | 764f346960e00afaf945673a365d0063f64f29ff /tools/gdb.html | |
parent | 1d01762f8b174573dd58e6da1630bd92bc193512 (diff) | |
download | notes-63d71256f83e5da6479d90d1bbdaf17ad6d31f02.tar.gz notes-63d71256f83e5da6479d90d1bbdaf17ad6d31f02.zip |
deploy: c660b71b9689af89bc09671e6a6de7f9943e2709
Diffstat (limited to 'tools/gdb.html')
-rw-r--r-- | tools/gdb.html | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/tools/gdb.html b/tools/gdb.html index 80e38dd..d4f7f24 100644 --- a/tools/gdb.html +++ b/tools/gdb.html @@ -188,10 +188,14 @@ --tty <tty> set I/O tty for debugee --batch run in batch mode, exit after processing options (eg used for scripting) + --batch-silent link --batch, but surpress gdb stdout </code></pre> <h1 id="interactive-usage"><a class="header" href="#interactive-usage">Interactive usage</a></h1> <h2 id="misc"><a class="header" href="#misc">Misc</a></h2> -<pre><code class="language-markdown"> tty <tty> +<pre><code class="language-markdown"> apropos <regex> + Search commands matching regex. + + tty <tty> Set <tty> as tty for debugee. Make sure nobody reads from target tty, easiest is to spawn a shell and run following in target tty: @@ -210,6 +214,9 @@ info display List display expressions. + + info sharedlibrary [<regex>] + List shared libraries loaded. Optionally use <regex> to filter. </code></pre> <h2 id="breakpoints"><a class="header" href="#breakpoints">Breakpoints</a></h2> <pre><code class="language-markdown"> break [-qualified] <sym> thread <tnum> @@ -341,6 +348,12 @@ thread name <name> inferior <id> Switch to inferior with <id>. </code></pre> +<h2 id="scheduling"><a class="header" href="#scheduling">Scheduling</a></h2> +<pre><code class="language-markdown"> set schedule-multiple <on | off> + on: Resume all threads of all processes (inferiors) when continuing + or stepping. + off: (default) Resume only threads of current process (inferior). +</code></pre> <h2 id="shell-commands"><a class="header" href="#shell-commands">Shell commands</a></h2> <pre><code class="language-markdown"> shell <shell_cmd> Run the shell_cmd and print the output, can also contain a pipeline. @@ -386,13 +399,19 @@ thread name <name> set logging file <fname> Change output log file to <fname> - set logging redirect <on/off> + set logging redirect <on | off> on: only log to file. off: log to file and tty. - set logging overwrite <on/off> + set logging overwrite <on | off> on: Truncate log file on each run. off: Append to logfile (default). + + set history filename <fname> + Change file where to save and restore command history to and from. + + set history <on | off> + Enable or disable saving of command history. </code></pre> <blockquote> <p>Logging options should be configured before logging is turned on.</p> |