Debugging with no serial port

Martin, Tim tim.martin at viasat.com
Sat Aug 12 02:30:57 EST 2006


 
> > 	
> > I tried this as well and have the same GDB synchronization 
> problem e.g.
> > 
> > break log_stuff
> > commands
> >    silent
> >    if (variable_logging_enabled)
> >       printf "(%d,%d)\n",stuff1_variable,stuff2_variable
> >    end
> >    cont
> > end
> > 
> That's too bad.  I wonder if you could run gdb from expect or 
> some other auto-scripting language and have it issue the 
> 'cont' once all data is printed (Have your code spit out a 
> special 'end of data' delimiter). 
> 
> Just a thought - no idea if it would work.  
> 

What a brilliant idea!  I tried this and it works perfectly.  Having no
previous expect experience, I was able to generate and modify the expect
script with "autoexpect" in about 10 minutes.

Thanks!
Tim



More information about the Linuxppc-embedded mailing list