Thread (2 messages) flat view 2 messages, 2 authors, 2006-08-10

RE: Debugging with no serial port

From: Martin, Tim <hidden>
Date: 2006-08-10 20:12:50

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=20
(eg. ***data1 data2 data3***), then filter your data from the script
file with sed/awk
or perl scripts?
=09
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
=09
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help