This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: kgdb support for gdb


   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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]