This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Remote target behind console server


I start the gdb stub on the target by:
        gdbstart -s 38400 -t /dev/ttyS0
and start the gdb on the development box by:
        gdb vmlinux
        gdb)
        gdb) set remotebaud 38400
Just BTW, since it is TCP, setting the remote baud won't have any effect.

Suggest adding a:

(gdb) set debug remote 1

here. It will cause GDB to print all remote traffic and that will hopefully make it easier to see why things are going wrong. You should be able to compare it to a working direct connection.


gdb) target remote my-server-ipaddr:port #note, the port I put here is the serial port# on the server,
enjoy,
Andrew



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]