Subject: Re: KGDB and console on same port
To: Phil Quinton <pquinton@softhome.net>
From: Simon Burge <simonb@wasabisystems.com>
List: tech-kern
Date: 09/28/2005 00:54:54
Phil Quinton wrote:

>  I have two machines, a REMOTE and TARGET machine. I want to run a 
> serial console on the TARGET machine, so I can connect to it from say... 
> minicom on the REMOTE machine.
> 
>  I also want to run kgdb, so I can kernel debug the TARGET machine from 
> the REMOTE machine over the same serial port.
> 
>  Is this possible,

Allen Briggs added a "kgdb" command to ddb a couple of years back.
Here's part of the commit message:

  Add a rudimentary 'trap to kgdb' command if KGDB is defined.  This allows
  systems with only one serial port for console, etc., to have at least some
  basic access to remote-kgdb-over-serial, even if it is a bit awkward.

I haven't used this myself, but it should be possbile...

Simon.
--
Simon Burge                            <simonb@wasabisystems.com>
NetBSD Support and Service:         http://www.wasabisystems.com/