Serial Console / GDB Port
From: Ryan Sommers (ryans_at_gamersimpact.com)
Date: 09/29/04
- Previous message: Brenden Grace: "Re: Device probe issue with an em(4) compatible device"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 29 Sep 2004 13:57:39 -0600 (MDT) To: hackers@freebsd.org
Is it possible to use the same serial line as the console and GDB port? I
currently have console=comconsole in my loader.conf and am able to break
to the debugger in tip. (I'm Ssh'ing into a box connected via serial line
to the dev box.) I tried setting up gdb on that serial link. Broke into
the debugger in one screen, opened gdb -k kernel.debug in another screen,
when I typed in the target remote /dev/cuaa0 line in gdb though the
garbage printed onto the serial line (beginning of the gdb protocol
session I'm assuming) ended up crashing ddb and panicing the kernel and
I'm unable to access the box over the serial line (and currently don't
have physical access to the box).
Now, I don't think I added the 0x80 flag onto the serial port. Will adding
that flag fix this? Or is there something more I need to do to be able to
enable gdb and a console on the same serial line?
-- Ryan Sommers ryans@gamersimpact.com _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
- Previous message: Brenden Grace: "Re: Device probe issue with an em(4) compatible device"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: [Kgdb-bugreport] [KGDB PATCH][2/7] Serial updates, take 2
... With this fix I can kill or detach gdb with pending console messages and then
... >> console code and, if so, set a flag for the console code that a kgdb ...
>> The problem is that you are now doing a breakpoint from inside kgdb while ...
(Linux-Kernel) - kernel debugging, console and GDB_REMOTE_CHAT option
... for console and remote gdb. ... Rename WITNESS_DDB to WITNESS_KDB. ...
to enable the DDB debugger backend only. ... The GDB protocol hacks to allow this
are ... (freebsd-hackers) - Re: error with pthreads
... segment" line print out to console (so basically I feel the thread is ...
But when I run in gdb, put a break point at line ... that the main thread does not get
out of the while loop, or exit, ... (comp.programming.threads) - Re: Serial console only works after reboot?
... use or set a serial console. ... or if you switch to a serial console
using ... if the "serial console" is actually just a gdb port, ... state (mainly
speeds for other uses of the port). ... (freebsd-current) - Re: [git pull] kgdb-light -v10
... instead I use linux serial console, gdb messes with getty and things ... gdb
connection is established from another box ... (Linux-Kernel)