Hey Ryan, There isn't currently a pleasant way of doing that -- you're pretty much stuck poking through the output of ::dis. We keep talking about a project to extend CTF and to work better with cc -g stabs, but it's never been sufficiently high priority. We'll try to write up a description of the steps one would need to take in order to try to entice a member of the MDB community into picking it up.
Adam On Mon, Dec 12, 2005 at 02:13:02PM -0500, Matty wrote: > > Howdy, > > Given a function x with the following organization: > > int func(char *foo) > { > int a,b,c; > return 1; > } > > Is there an easy way to attach to a process and determine the address of > the variable b? I am aware that mdb is not a source level debugger, but I > thought I would ask in case there was a way to snag this info (I am > currently using visual inspection of the ::dis output to find the info I > need). > > Thanks for any insight, > - Ryan > -- > UNIX Administrator > http://daemons.net/~matty > _______________________________________________ > mdb-discuss mailing list > mdb-discuss at opensolaris.org -- Adam Leventhal, Solaris Kernel Development http://blogs.sun.com/ahl