summaryrefslogtreecommitdiff
path: root/hurd/debugging/gdb/noninvasive_debugging.mdwn
blob: b6beb9c5e48977e84fcb33f5b672168bfabf32b9 (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|translator]] 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 [[/gdb/backtrace]]s and values of
variables (and watch them change underneath you).