On Fri, 2004-08-27 at 15:24, Timur Tabi wrote: > I'm new to kdb, so I'm sure this is a FAQ, but I haven't found the > answer anywhere. > > Is it possible to display local variables? I'm debugging my driver on > the 2.6 Linux kernel, and I've hit a breakpoint inside a function. > There are a number of local variables and parameters that I'd like to > display, but the md command doesn't recognize any of the variable names. > When I do something like "md arg", I just get an error. Is this > supposed to work, or am I going to have to manually figure out where my > variables are on the stack?
Hi, Kdb only knows about global variables. Gdb and the appropriate kgdb stub will let you look at local variables and arguments. Andrew Morton's mm series kernels are a good place to look for the kgdb stubs (for i386 and x86_64). Other wise you need to get used to debugging at the assembly language level. Good luck. Jim Houston - Concurrent Computer --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.
