> Why not use watchpoints (::wp)?
> max

Watchpoints assume you know the address you want to watch. I want to 
dynamically print out any 'common' variable that any of the executing code 
reads/writes. This requires looking at the current instruction, decoding any 
memory address it is reading/writing, and looking up the symbol at that address 
to determine if it is a 'common' linkage symbol.

I guess I'm wondering if mdb_readsym() or mdb_readvar() can be used to read 
registers, or if mdb is lacking this functionality and needs a mdb_readreg() 
function added to its API to programmatically get the ::regs values.
-- 
This message posted from opensolaris.org

Reply via email to