# RE: Debugging with no serial port

- From: Martin, Tim \<hidden\>
- Date: 2006-08-11 16:30:59 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2006/08/9409152

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

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
```
