Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Variable locations in a loaded kernel (bsd.gdb)
@ 2001-08-27  9:14 Joshua Lamorie
  2001-08-27  9:24 ` Eli Zaretskii
  2001-08-27 10:48 ` Andrew Cagney
  0 siblings, 2 replies; 4+ messages in thread
From: Joshua Lamorie @ 2001-08-27  9:14 UTC (permalink / raw)
  To: gdb

Gidday there,

	I'm trying to find how a specific variable is referenced in an
OpenBSD 2.8 kernel.  I build a kernel with symbols, and load it into gdb,
however I can't find a way to see where a specific variable is stored
(stack, memory, register etc...).  I can't run the kernel, and when I type
'p function::variable' it responds with...

No frame is currently executing in block scpshc_decompress.

	Once I have the offset, or address or whatever about the variable,
then I can examine its value in 'ddb' after the kernel crashes.

	Thanks in advance.  I'm running GDB 4.16.1.  The 'configure'
script doesn't let me compile version 5 on OBSD2.8.

Joshua

-- 
Joshua Lamorie                           ph. 514-848-9640
Designer, Space Systems                  fx. 514-848-9644
Xiphos Technologies Inc.                 web http://www.xiphos.ca/


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-08-27 10:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-27  9:14 Variable locations in a loaded kernel (bsd.gdb) Joshua Lamorie
2001-08-27  9:24 ` Eli Zaretskii
2001-08-27 10:06   ` Joshua Lamorie
2001-08-27 10:48 ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox