Date: Sun, 28 Dec 1997 13:04:14 +1100 From: Bruce Evans <bde@zeta.org.au> To: grog@lemis.com, skynyrd@opus.cts.cwu.edu Cc: bde@zeta.org.au, freebsd-current@FreeBSD.ORG Subject: Re: Remote gdb (was: no boot: config -g and options DDB) Message-ID: <199712280204.NAA01965@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>On the subject of remote debugging: the handbook entry is missing some >other important information. I still haven't been able to get the >link to work. After considerable digging in the sources, I found that >3. At some point, on the debugged machine, I re-enter the debugger. > It hangs after the message > > Debugger("manual escape to debugger") > > and (presumably) waits for communication from the debugging > machine. > >4. On the debugging machine, I enter > > target remote /dev/cuaa0 > > I get the messages: > > Remote debugging using /dev/cuaa0 > Ignoring packet error, continuing... > Ignoring packet error, continuing... > Couldn't establish connection to remote target > Malformed response to offset query, timeout Possibly a speed mismatch. 16550s may be required on the debugged machine. It may work better to do step 3) before 4). >So what gives? Do I have my serial config wrong? I've done >everything according to the book, and there is no indication, neither >in the documentation nor in the sources, about how to set up the bit >rate, character size and such. I assume somebody has got this to >work, but I can't work out how. Speed setting is fully doc^H^H^Hcoded in the sources. It may work better to use a serial console or boot with -D. The speed will then be set by the boot blocks, and the kernel will use the same speed (if it agrees with the boot blocks about the port), and the h/w speed will be initialized (-current neglects to initialize when the speed registers wouldn't change, but this may leave the h/w behind the registers uninitialized after reset). Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712280204.NAA01965>