From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13172 invoked by alias); 1 Oct 2004 22:01:06 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 13161 invoked from network); 1 Oct 2004 22:01:05 -0000 Received: from unknown (HELO walton.sibelius.xs4all.nl) (82.92.89.47) by sourceware.org with SMTP; 1 Oct 2004 22:01:05 -0000 Received: from elgar.sibelius.xs4all.nl (elgar.sibelius.xs4all.nl [192.168.0.2]) by walton.sibelius.xs4all.nl (8.13.0/8.13.0) with ESMTP id i91M10xv017419; Sat, 2 Oct 2004 00:01:00 +0200 (CEST) Received: from elgar.sibelius.xs4all.nl (localhost [127.0.0.1]) by elgar.sibelius.xs4all.nl (8.12.6p3/8.12.6) with ESMTP id i91M0xKV001382; Sat, 2 Oct 2004 00:00:59 +0200 (CEST) (envelope-from kettenis@elgar.sibelius.xs4all.nl) Received: (from kettenis@localhost) by elgar.sibelius.xs4all.nl (8.12.6p3/8.12.6/Submit) id i91M0x8m001379; Sat, 2 Oct 2004 00:00:59 +0200 (CEST) Date: Fri, 01 Oct 2004 22:01:00 -0000 Message-Id: <200410012200.i91M0x8m001379@elgar.sibelius.xs4all.nl> From: Mark Kettenis To: amitkale@linsyssoft.com CC: gdb-patches@sources.redhat.com In-reply-to: <200410011314.33157.amitkale@linsyssoft.com> Subject: Re: kgdb support for gdb References: <200410011314.33157.amitkale@linsyssoft.com> X-SW-Source: 2004-10/txt/msg00027.txt.bz2 From: "Amit S. Kale" 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