From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21997 invoked by alias); 21 Dec 2011 23:39:20 -0000 Received: (qmail 21986 invoked by uid 22791); 21 Dec 2011 23:39:19 -0000 X-SWARE-Spam-Status: No, hits=-3.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from elasmtp-dupuy.atl.sa.earthlink.net (HELO elasmtp-dupuy.atl.sa.earthlink.net) (209.86.89.62) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 21 Dec 2011 23:39:05 +0000 Received: from [70.170.59.51] (helo=macbook2.local) by elasmtp-dupuy.atl.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from ) id 1RdVkX-0002OQ-3R for gdb-patches@sourceware.org; Wed, 21 Dec 2011 18:39:05 -0500 Message-ID: <4EF26E18.3030401@earthlink.net> Date: Thu, 22 Dec 2011 02:34:00 -0000 From: Stan Shebs User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: gdb-patches@sourceware.org Subject: Re: [PATCH] PIE support for OpenBSD References: <201112172108.pBHL8Th2032226@glazunov.sibelius.xs4all.nl> <20111221171315.GA18194@host2.jankratochvil.net> <201112212126.pBLLQ2Fl013069@glazunov.sibelius.xs4all.nl> In-Reply-To: <201112212126.pBLLQ2Fl013069@glazunov.sibelius.xs4all.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ELNK-Trace: ae6f8838ff913eba0cc1426638a40ef67e972de0d01da940c9840feed57ca2ca36a15177c93d1154350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c 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: 2011-12/txt/msg00758.txt.bz2 On 12/21/11 1:26 PM, Mark Kettenis wrote: >> Date: Wed, 21 Dec 2011 18:13:15 +0100 >> From: Jan Kratochvil >> >> On Sat, 17 Dec 2011 22:08:29 +0100, Mark Kettenis wrote: >>> For now this is OpenBSD-specific, but FreeBSD and NetBSD might >>> implement the PIOD_READ_AUXV request at some point too. >> [...] >>> * inf-ptrace.c [PT_IO&& PIOD_READ_AUXV] >> So why didn't you put it into *bsd*-nat.c files? > There is already PT_IO support code in inf-ptrace.c. It makes sense > to keep it all together. I guess I could move all that code into a > seperate bsd-nat.c file, but that's quite a big undertaking. And > inf-ptrace.c *BSD really is the primary user of inf-ptrace.c anyway. > The various Linux targets only need it to support ancient versions of > the Linux kernels; linux-nat.c ovverrides everything except for > to_fetch_registers and to_store_registers. And those are overridden > by most, if not all, *-linux-nat.c files. > I wonder if inf-ptrace.c could be retired altogether. It was always based on a weak assumption, that Unix variants would tend to have the same syntax and semantics for the various ptrace commands, and I suspect that more of its code is unreachable than is obvious from inspection, what with configs overriding or on the verge of being retired themselves. Stan