From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31580 invoked by alias); 15 Apr 2009 18:07:26 -0000 Received: (qmail 31523 invoked by uid 22791); 15 Apr 2009 18:07:25 -0000 X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_22,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout2.012.net.il (HELO mtaout2.012.net.il) (84.95.2.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 15 Apr 2009 18:07:16 +0000 Received: from conversion-daemon.i_mtaout2.012.net.il by i_mtaout2.012.net.il (HyperSendmail v2004.12) id <0KI500J00MBI4W00@i_mtaout2.012.net.il>; Wed, 15 Apr 2009 21:07:13 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.229.34.97]) by i_mtaout2.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KI500320MC0IZA0@i_mtaout2.012.net.il>; Wed, 15 Apr 2009 21:07:13 +0300 (IDT) Date: Wed, 15 Apr 2009 18:07:00 -0000 From: Eli Zaretskii Subject: Re: [RFC] GDB ARIndex Linux rule cleanup In-reply-to: <200904151734.n3FHY8Fv015852@d12av02.megacenter.de.ibm.com> To: Ulrich Weigand Cc: muller@ics.u-strasbg.fr, brobecker@adacore.com, gdb-patches@sourceware.org, gdb@sourceware.org Reply-to: Eli Zaretskii Message-id: <83r5ztlrj9.fsf@gnu.org> References: <200904151734.n3FHY8Fv015852@d12av02.megacenter.de.ibm.com> X-IsSubscribed: yes 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/msg00334.txt.bz2 > 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.