Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Apr 2003 13:38:16 +0930
From:      Greg 'groggy' Lehey <grog@FreeBSD.org>
To:        Dmitry Sivachenko <demon@cavia.pp.ru>
Cc:        questions@FreeBSD.org
Subject:   Re: debugging kernel with remote gdb
Message-ID:  <20030421040816.GJ79922@wantadilla.lemis.com>
In-Reply-To: <20030419100736.GA62154@fling-wing.demos.su>
References:  <20030418144830.GA52968@fling-wing.demos.su> <20030419035249.GI61510@wantadilla.lemis.com> <20030419100736.GA62154@fling-wing.demos.su>

next in thread | previous in thread | raw e-mail | index | archive | help

--LQAwcd5tHl0Qlnzi
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Saturday, 19 April 2003 at 14:07:36 +0400, Dmitry Sivachenko wrote:
> On Sat, Apr 19, 2003 at 01:22:49PM +0930, Greg 'groggy' Lehey wrote:
>> On Friday, 18 April 2003 at 18:48:30 +0400, Dmitry Sivachenko wrote:
>>> Hello!
>>>
>>> I have two machines: one IA32 running FreeBSD and the other SPARC
>>> running Solaris.  I want to debug FreeBSD kernel using remote gdb.
>>> After reading developers handbook it is unclear whether it is
>>> possible to use my SPARC for that purpose?
>>
>> Theoretically, yes.  In practice, you'll need a version of gdb which
>> understands the ia32 instruction set, and I suspect you'll have to
>> build that yourself.  You might get a more accurate answer on the
>> sparc64 mailing list.
>>
>
> Well, I built gdb to understand i386-freebsd target (using --target
> option).  The problem is that it seems stock gdb does not
> understand '-k' option (for kernel debugging).
>
> May be I am missing something obvious?

I don't think you need the -k option for serial debugging.  It's only
needed for processor dumps, and it's a FreeBSD extension, so you'd
need to port the FreeBSD version of gdb.  Try it and see.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers

--LQAwcd5tHl0Qlnzi
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (FreeBSD)

iD8DBQE+o26wIubykFB6QiMRAnHSAJ44X05gEL/N7aGCYuJbcoxdZKVlcgCfUbKF
wrbPoOV8CQU7CbV8cmIpBzU=
=RgSy
-----END PGP SIGNATURE-----

--LQAwcd5tHl0Qlnzi--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030421040816.GJ79922>