Michael Shapiro wrote: >>John Levon wrote: >>>mdb can be quite unfriendly until you get used to it. What might help most of >>>all, perhaps, is more documentation: hints and tips, etc. >>>
I think any blog entries/tutorials/white papers showing examples of the use of mdb are very useful but there are not that many. More would be great. I have been using mdb with libumem and an article like this: http://access1.sun.com/techarticles/libumem.html really jumpstarted me with mdb and showed how powerful it can be. I did find that the manual and mdb guide and everything else covered _everything_ but missed out something that pulled it together. I really struggled with some simple aspects of the command-line/pipelines and I'm not one to be scared of such things. This list helped sort out some of those so thanks! :) So I vote for some more docs :) tutorial/blog style? I've the mdb cheat-sheet in front of me and there are scribbles all over it. :) Maybe there should be a cheat-cheet for beginners? Like this quick gdb to mdb list: http://blogs.sun.com/roller/page/eschrock/20050510 One section which it occurs to be which would be good to squeeze in somewhere is on run control: e.g. run control :A / [pid]::attach [core|pid] :R / ::release -a :r / ::run args :c / ::cont [sig] :e / ::next [sig] :s :u / ::step [over|out] [sig] $c / [addr]::stack [count] watch/break-points (events) :b / [addr]::bp .. stuff .. [cmd] [-n count] sym :a :p :w / addr[,len]::wp :t / [signal]::sigbp :d / [addr]::delete [id|all] $b / ::events [-av] A little tutorial based on this (and using symbol tables) would be a good start if none exists? James.