Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Dec 2002 16:16:15 -0800 (PST)
From:      Nate Lawson <nate@root.org>
To:        Alfred Perlstein <bright@mu.org>
Cc:        hackers@freebsd.org
Subject:   Re: cvs commit: src/sys/i386/i386 i386-gdbstub.c
Message-ID:  <Pine.BSF.4.21.0212181557400.54028-100000@root.org>
In-Reply-To: <20021218001104.GC23663@elvis.mu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Followups to hackers@.  For those just tuning in, the patch under
discussion is gdb.diff at:
   http://www.root.org/~nate/freebsd/

On Tue, 17 Dec 2002, Alfred Perlstein wrote:
> I'd appreciate the default being such that when one quits gdb the kernel
> begins running again instead of hanging for what seems like forever.

The procedure now to get back to kernel running with a shared serial
console/gdb line is gdb detach, quit, fire up terminal emulator on the
serial port, and type "c" to ddb.

I'm thinking of combining my patch such that if you enter gdb directly
(via the new auto enter mechanism or a kernel option that defaults to GDB
on break), doing a detach in gdb detaches and continues.

States:

          "continue"        "detach"
         ------------- DDB -----------
        / (break)           "gdb"     \
running                               |
        \ "detach"                    /
         `------------ GDB ----------'
    (break/GDB_DEFAULT)

Note that the transitions between GDB and DDB are not available if GDB is
entered through the lower half of the loop.  I'm open to suggestions on
how to implement the lower half from a user's perspective.

-Nate


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0212181557400.54028-100000>