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

[[meta license="""[[toggle id="license" text="GFDL 1.2+"]][[toggleable
id="license" text="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).