Trees | Indices | Help |
---|
|
1 ''' 2 A quick set of tools for doing stack doping. 3 ''' 4 import vtrace 57 curthread = trace.getCurrentThread() 8 try: 9 trace.selectThread(threadid) 10 sp = trace.getStackCounter() 11 map = trace.getMemoryMap(sp) 12 if map == None: 13 raise Exception('Thread %d has invalid stack pointer 0x%.8x' % (threadid, sp)) 14 15 mapva, mapsize, mperms, mfname = map 16 17 dopesize = sp - mapva 18 trace.writeMemory(mapva, 'V' * dopesize) 19 20 except Exception, e: 21 print 'dopeThreadStack Failed On %d' % threadid 22 trace.selectThread(curthread)2325 ''' 26 Apply stack doping to all thread stacks. 27 ''' 28 for threadid in trace.getThreads().keys(): 29 dopeThreadStack(trace, threadid)30 35 36 dopenotif = ThreadDopeNotifier() 37 40 43
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Nov 16 18:22:26 2012 | http://epydoc.sourceforge.net |