From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10289 invoked by alias); 10 Dec 2009 14:05:29 -0000 Received: (qmail 10108 invoked by uid 22791); 10 Dec 2009 14:05:28 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 10 Dec 2009 14:05:23 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id E30D210D91; Thu, 10 Dec 2009 14:05:21 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id 9C2CE1078C; Thu, 10 Dec 2009 14:05:21 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1NIjdv-0008QK-Dv; Thu, 10 Dec 2009 09:05:19 -0500 Date: Thu, 10 Dec 2009 14:05:00 -0000 From: Daniel Jacobowitz To: Vladimir Prus Cc: gdb@sources.redhat.com Subject: Re: Does m68klinux-tdep.c handle uclinux too Message-ID: <20091210140519.GA32131@caradoc.them.org> Mail-Followup-To: Vladimir Prus , gdb@sources.redhat.com References: <200912101252.29827.vladimir@codesourcery.com> <200912101413.13246.vladimir@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200912101413.13246.vladimir@codesourcery.com> User-Agent: Mutt/1.5.20 (2009-06-14) 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: 2009-12/txt/msg00063.txt.bz2 On Thu, Dec 10, 2009 at 02:13:13PM +0300, Vladimir Prus wrote: > > looking at m68klinux-tdep.c, I see this: > > > > if (target_is_uclinux == -1) > > { > > /* Determine whether we are running on a uClinux or normal GNU/Linux > > target so we can use the correct sigcontext layouts. */ > > CORE_ADDR dummy; > > > > target_is_uclinux > > = (target_auxv_search (¤t_target, AT_NULL, &dummy) > 0 > > && target_auxv_search (¤t_target, AT_PAGESZ, &dummy) == 0); > > } I think I or someone else at CodeSourcery wrote that. So it was probably submitted from our internal tree. > FWIW, below is a local patch that we have. Does it seem reasonable? IMO this is OK. It would also be OK to have just m68k-tdep.o and m68klinux-tdep.o. GDB doesn't support m68k uclinux shared libraries. -- Daniel Jacobowitz CodeSourcery