Guest User

how to write a loop in Windbg like this

a guest
Feb 19th, 2012
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. r @$t0=0;
  2.  
  3. $$ Loop to get all foo's
  4. .foreach (CurrentFoo {!dumpheap -type George.George2.Foo -short}){
  5. $$ Increment # of Foo's
  6. r @$t0 = @$t0+1
  7.  
  8. .printf "Length:t%dn", poi(${CurrentFoo}+0xc);
  9. }
  10. .printf "Number of Foo's: %dnnnnnnnnn", @$t0;
Add Comment
Please, Sign In to add comment