Debugging with no serial port

Martin, Tim tim.martin at viasat.com
Fri Aug 11 06:12:47 EST 2006


Ben,

>	How about something a bit simpler like running gdb within a
'script' context,
> which will log your session to a file.  Get gdb to print the variables
to the screen
> (using 'print' or whatever), wrap your data with easily searchable
characters 
> (eg. ***data1 data2 data3***), then filter your data from the script
file with sed/awk
> or perl scripts?
	
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

The printf's don't complete before the cont happens.  Sounds like maybe
this is a GDB problem...

Tim
	




More information about the Linuxppc-embedded mailing list