Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Reading a static variable in Python
@ 2010-03-10  3:38 Chris Johns
  2010-03-10 17:05 ` Tom Tromey
  0 siblings, 1 reply; 7+ messages in thread
From: Chris Johns @ 2010-03-10  3:38 UTC (permalink / raw)
  To: gdb

Hello,

I am adding pretty printers for RTEMS to gdb. In the RTEMS operating 
system elements such as a semaphore are given an id. I would like to 
print the actual semaphore data given a semaphore id. To do this I need 
to read a kernel structure from a table indexed via a bit field in the 
id. As an example the semaphore's table is declared in RTEMS as:

RTEMS_SEM_EXTERN Objects_Information  _Semaphore_Information;

How would I read the 10 element of the _Semaphore_Information in Python ?

I am stuck on how to create a new gdb.Value variable in Python.

Thanks
Chris


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

end of thread, other threads:[~2010-03-11 23:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-10  3:38 Reading a static variable in Python Chris Johns
2010-03-10 17:05 ` Tom Tromey
2010-03-11  1:49   ` Chris Johns
2010-03-11 16:53     ` Tom Tromey
2010-03-11 17:15       ` Phil Muldoon
2010-03-11 17:58         ` Tom Tromey
2010-03-11 23:40       ` Chris Johns

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