On Mon, 4 Feb 2008 20:11:03 -0800 Phil Oester <kernel@linuxace.com> wrote:^^^^^^^ yup. I used kgdb continuously for 4-5 years until it broke. I don't think I ever used it much for "debugging" as such. I used it more for general observation of what's going on in the kernel. And for _confirmation_ of what's going on (ie: testing that the actual state matches the expected state). I'd end up doing my development with the assumption that kgdb was present. One example: rather than putting printks all over the place to ensure that the right thing was happening at the right time I'd instead add code like void foo(void) { } ... if (expr) foo(); then, when the testcase was up and running and in steady state, break in and put a breakpoint on foo(). Continue, wait for the breakpoint then go in and observe locals, globals, data structures, etc. It's hard to describe (and remember!). But the presence of the debugger as a development (not debugging) tool changes the way you do development a bit. --
| Jianjun Kong | [PATCH] Standard indentation of arguments |
| Trond Myklebust | Re: recent nfs change causes autofs regression |
| Andrew Morton | 2.6.23-rc8-mm2 |
| Mark Lord | Re: Linux 2.6.24-rc7 |
git: | |
| KOSAKI Motohiro | [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
| Winkler, Tomas | RE: iwlwifi: fix build bug in "iwlwifi: fix LED stall" |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| Marc Peters | v 0.11 boot disk problem |
| Dave `geek' Gymer | WARNING (was Re: New afio release) |
| David Gabrius | Re: NT vs Linux (was: Re: truth or dare) |
| David Fenyes | sigsetmask()? (LINUX) |
