On Wed, 16 Aug 2006, Vidya Sakar N wrote: > I have a query on user-level watchpoints. How do I get mdb > to not stop when a watchpoint is hit? Basically I want to > get a complete list of stacks which write to a particular > memory location and obviously I do not want to do a ":c" > every time the watchpoint is hit.
Hmm I guess that's a call for DTrace RFE 5059507 (watchpoint provider) ? > > This is what I am attempting to do > > # mdb /usr/lib/fs/ufs/mkfs >> fscs::wp -w -c"$c" -n 1000 -L 175104 >> ::run -F ufs /dev/rdsk/c1t2d0s0 17672816 > ld.so.1`memcpy+0x194(ff3f00fc, ff3f3320, 0, 20204, c, c) > ld.so.1`relocate_lmc+0x8c(ff3f00fc, c, ff3f3320, ff3f00fc, 0, 1) > ld.so.1`setup+0x1308(fff00000, c10004, ff3f02e8, 602, ff3f0278, 0) > ld.so.1`_setup+0x3a4(10034, ffffffff, ffbffe34, ff3c0000, 0, ffffffff) > ld.so.1`_rt_boot+0x88(0, 0, 0, 0, 0, 0) > 0(0, 0, 0, 0, 0, 0) > mdb: stop on write of [mkfs`fscs, 0x1adfb0) > mdb: target stopped at: > ld.so.1`memcpy+0x194: stb %o4, [%o0] >> > > Though ::help of ::wp suggests that "-n" option is exactly for > this purpose, this does not seem to work. Am I missing something? > > This aside, is there a way to specify two actions for the -c option > itself? Basically, How can I acieve "$c,:c" for -c ? I think ... -c "$c;:c" will do, i.e. separate them with ; as you would on the command line. FrankH. > > Thanks, > Vidya Sakar > _______________________________________________ > mdb-discuss mailing list > mdb-discuss at opensolaris.org > ========================================================================== No good can come from selling your freedom, not for all gold of the world, for the value of this heavenly gift exceeds that of any fortune on earth. ==========================================================================