[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to jump into ddb console from a serial terminal ?
On Wed, Aug 01, 2001 at 03:40:18PM +0200, Thierry Deval wrote:
>
> I would have sworn I did try that break sequence to no avail before...
> To be sure, I tried this again, same result : the sequence '\n~#' gives
> me a ~ and a "break", that is canceling the previous input and offers me
> a new input line, whether it's in a shell or at the login prompt.
>
> BTW I have
> ddb.panic=0
> ddb.console=1
>
> Did anyone manage to do it ?
> Do the serial ports need to be configured in a specific way ?
>
Just to caution, the sequence "\n~#" is intended to read:
"hit the enter key, hit the tilde key, hit the octothorpe key"
The newline is needed so you can type tilde elsewhere without tip
getting in your way all the time.
You do have ddb.console set, and your dmesg (thanks) shows that you
have indeed booted with com0 as serial console.
The relevant code in pccom.c is:
if (ISSET(lsr, LSR_BI)) {
#ifdef DDB
if (ISSET(sc->sc_hwflags, COM_HW_CONSOLE)) {
if (db_console)
Debugger();
The "break indicator" is actually a hardware condition, and everything
else you describe seems to pass the tests shown here. It should work!
Perhaps try cu?
/Hugh