From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19783 invoked by alias); 15 Apr 2009 18:55:13 -0000 Received: (qmail 19769 invoked by uid 22791); 15 Apr 2009 18:55:12 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_22,MSGID_FROM_MTA_HEADER,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtagate4.de.ibm.com (HELO mtagate4.de.ibm.com) (195.212.29.153) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 15 Apr 2009 18:55:07 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate4.de.ibm.com (8.14.3/8.13.8) with ESMTP id n3FIt4Lq044782; Wed, 15 Apr 2009 18:55:04 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n3FIt4rh3788816; Wed, 15 Apr 2009 20:55:04 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n3FIt4mK011326; Wed, 15 Apr 2009 20:55:04 +0200 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with SMTP id n3FIt3m2011311; Wed, 15 Apr 2009 20:55:03 +0200 Message-Id: <200904151855.n3FIt3m2011311@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Wed, 15 Apr 2009 20:55:03 +0200 Subject: Re: [RFC] GDB ARIndex Linux rule cleanup To: eliz@gnu.org Date: Wed, 15 Apr 2009 18:55:00 -0000 From: "Ulrich Weigand" Cc: muller@ics.u-strasbg.fr, brobecker@adacore.com, gdb-patches@sourceware.org, gdb@sourceware.org In-Reply-To: <83r5ztlrj9.fsf@gnu.org> from "Eli Zaretskii" at Apr 15, 2009 09:07:22 PM MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-04/txt/msg00339.txt.bz2 Eli Zaretskii wrote: > > Date: Wed, 15 Apr 2009 19:34:08 +0200 (CEST) > > From: "Ulrich Weigand" > > Cc: muller@ics.u-strasbg.fr, brobecker@adacore.com, gdb-patches@sourceware.org, > > gdb@sourceware.org > > > > Yes, the ppc-linux-tdep.c file, which defines the gdbarch struct to be used > > when debugging an application built for GNU/Linux on the PowerPC platform, > > in either native, remote, or core file debugging mode. > > > > In fact, in this specific file, some elements of the gdbarch struct are > > clearly kernel-related (e.g. the ppc_linux_write_pc method to properly > > restart interrupted system calls, or the signal trampoline unwinders), some > > elements have nothing whatsoever to do with the kernel (e.g. the > > ppc_linux_memory_remove_breakpoint method that deals with the fact that > > ld.so on powerpc modifies code, or the ppc64_skip_trampoline_code method > > which recognizes linker-generated stubs, or the > > ppc64_linux_convert_from_func_ptr_addr method that interprets the function > > pointer ABI), and some could be considered either way (e.g. the core file > > register set definitions -- a core file may be generated by the kernel, > > but also other tools, including GDB itself). > > The point is that the elements that are unrelated to the Linux kernel > are also unrelated to GNU. I was replying to your statement that I think GDB's "target" is always the OS kernel, not the OS itself. with the point that all those elements are related to, and in fact defined by, the *target operating system*; the OS defines the ABI applications need to use, and in the GNU/Linux case, even provides the toolchain and system libraries that implement those elements. Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com