On Mon, Mar 02, 2009 at 12:40:02PM -0800, Andrew Paprocki wrote: > Is it possible to write a mdb module which has programmatic access to > the current instruction at %pc? > > I'd like to write an mdb module which ::step's a process and > looks at each instruction to determine if it is reading/writing > an address which resolves to a 'common' linkage variable (using > mdb_lookup_by_addr()).
Well, mdb_eval("<rip") will put the register "rip" into dot, which you can get using mdb_get_dot(). Cheers, - jonathan