From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23152 invoked by alias); 20 Mar 2007 10:56:30 -0000 Received: (qmail 23143 invoked by uid 22791); 20 Mar 2007 10:56:29 -0000 X-Spam-Check-By: sourceware.org Received: from return.false.org (HELO return.false.org) (66.207.162.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 20 Mar 2007 10:56:22 +0000 Received: from return.false.org (localhost [127.0.0.1]) by return.false.org (Postfix) with ESMTP id 0E6784B267; Tue, 20 Mar 2007 05:56:20 -0500 (CDT) Received: from caradoc.them.org (dsl093-172-095.pit1.dsl.speakeasy.net [66.93.172.95]) by return.false.org (Postfix) with ESMTP id DE35F4B262; Tue, 20 Mar 2007 05:56:19 -0500 (CDT) Received: from drow by caradoc.them.org with local (Exim 4.63) (envelope-from ) id 1HTc0o-0006RH-QR; Tue, 20 Mar 2007 06:56:18 -0400 Date: Tue, 20 Mar 2007 10:56:00 -0000 From: Daniel Jacobowitz To: Josef Wolf , gdb@sourceware.org Subject: Re: Definition of PT_TEXT_ADDR and friends. Message-ID: <20070320105618.GA24723@caradoc.them.org> Mail-Followup-To: Josef Wolf , gdb@sourceware.org References: <20070320064456.GE26951@raven.wolf.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070320064456.GE26951@raven.wolf.local> User-Agent: Mutt/1.5.14+cvs20070313 (2007-03-13) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-03/txt/msg00227.txt.bz2 On Tue, Mar 20, 2007 at 07:44:56AM +0100, Josef Wolf wrote: > Hello! > > When compiling gdb for uClinux with armnommu, I noticed that (in > linux-low.c) PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR are > defined only when __mcoldfire__ is defined. I think this is wrong. > Instead, IMHO, it should always be defined when we have linux without > a mmu. > > Comments? /* These should really be defined in the kernel's ptrace.h header. */ We don't know what to define them _to_ on other platforms. If you have another platform which fails to define them in the kernel headers, we can add another case. (I know the __UCLIBC_HAS_MMU__ is out of date - I'm going to fix that today) -- Daniel Jacobowitz CodeSourcery