This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: kgdb support for gdb
- From: Mark Kettenis <kettenis at gnu dot org>
- To: amitkale at linsyssoft dot com
- Cc: gdb-patches at sources dot redhat dot com
- Date: Sat, 2 Oct 2004 00:00:59 +0200 (CEST)
- Subject: Re: kgdb support for gdb
- References: <200410011314.33157.amitkale@linsyssoft.com>
From: "Amit S. Kale" <amitkale@linsyssoft.com>
Date: Fri, 1 Oct 2004 13:14:33 +0530
Hi,
Attached patches add kgdb support to gdb. They define two new
targets i386-lk and x86_64-lk. Because of the definition of these
targets, one can build a gdb with does not contain the linux
operating environment specific things which are inappropriate for
the kernel, like signal trampoline frame parsing.
I don't think you/we should add a new target triple for this stuff.
Instead you should add a special OS ABI variant for the kernel, and
use that to define your own kernel architecture vector. I suppose
there is a way to detect that a binary is a Linux kernel instead of a
normal ELF executable?
Oh, and if you want this code to be included in the official GDB
sources, you'll have to assign copyright to the FSF of course.
Mark