[M3devel] gdb help -- looping until crash?

Jay K jay.krell at cornell.edu
Mon Oct 26 08:02:10 CET 2009


On Windows I use:

 

type \cm3\bin\j.cmd
@echo off
setlocal
set a=1
:loop
echo %a%
\bin\x86\cdb -g -G Juno.exe @M3no-trestle-await-delete @M3paranoidgc
set /a a=a + 1
goto :loop

 

this runs Juno in a loop, in a debugger, until it hits an access violation.

It prints how many times it has run before each run.

 -g means go right away at the start of the process 

 -G means go past the end of the process 

 set /a is for "arithmetic" (expression evaluation) 

 

What is the equivalent with gdb/sh?

 

I've search the web some but haven't found it yet.

 

Thanks,

 - Jay
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20091026/bdacedd1/attachment-0001.html>


More information about the M3devel mailing list