summaryrefslogtreecommitdiff
path: root/hurd/debugging/gdb/noninvasive_debugging.mdwn
blob: 18355c8cbb9c870768181e7efd4d8233030c170b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[[meta copyright="Copyright © 2007 Free Software Foundation, Inc."]]
[[meta license="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]]."]]

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).