Tim,
Are you asking the gdb command to necessary to connect across a serial
line? If so, the answer is "target". You are right in that I only documented
the kernel side of things, and not what needed to be done on gdb. I will add
that to the FAQ. Are you using a 2.2 series kernel, or 2.3? I believe the
2.3 patch has some documentation of this nature.
I have this in my .gdbinit:
define rmt
set remotebaud 38400
target remote /dev/ttyd2
end
Basically, you need to do the "set remotebaud <your baud rate>", and then
"target remote <the local serial port name>".
Let me know if you still have problems.
Scott
On Apr 7, 3:07pm, Tim Gardner wrote:
> Subject: Boot time attach
> What's the secret to attaching at boot time? I'm using ddd as the gdb
> frontend. I've set the baud rate, the serial device, etc. When I set
> 'Debugging of remote protocol' I can see serial traffic with
> acknowledgements. So, I think I have the physical stuff working. It must
> be obvious by now that I'm not (yet) a gdb expert. I've tried run, attach,
> etc. No joy. Any help would be appreciated. Maybe this is something that
> should be added to the FAQ. I see from the April00 archive that this is
> not the first time this question has been asked.
--
Scott Foehner SGI
sfoehner@xxxxxxxxxxxx Computer Systems Business Unit
650-933-3473 Core OS
|