summaryrefslogtreecommitdiff
path: root/hurd/debugging/gdb/noninvasive_debugging.mdwn
blob: a712cfa697f5e2d676cb75baf24d81b72e61def1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[[license text="""
Copyright © 2007 Free Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this document under the
terms of the GNU Free Documentation License, Version 1.2 or any later version
published by the Free Software Foundation; with no Invariant Sections, no
Front-Cover Texts, and no Back-Cover Texts.  A copy of the license is included
in the section entitled [[GNU_Free_Documentation_License|/fdl.txt]].
"""]]

Sometimes using [[GDB]] on a system server can result in a [[deadlock]].  You
can however still use GDB by using the [`set
noninvasive`](http://sourceware.org/gdb/current/onlinedocs/gdb_19.html#Hurd%20Native)
option.  This indicates to GDB to not stop the program but allows you to
nevertheless examine its state.  Thus, you can get back traces and value of
variables (and watch them change underneath you).