From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16714 invoked by alias); 24 Apr 2012 16:11:06 -0000 Received: (qmail 16692 invoked by uid 22791); 24 Apr 2012 16:11:04 -0000 X-SWARE-Spam-Status: No, hits=-7.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 24 Apr 2012 16:10:52 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q3OGAoEC006718 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 24 Apr 2012 12:10:51 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q3OGAnFe030542; Tue, 24 Apr 2012 12:10:50 -0400 Message-ID: <4F96D089.7070908@redhat.com> Date: Tue, 24 Apr 2012 16:14:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 MIME-Version: 1.0 To: Jeff Kenton CC: Joel Brobecker , gdb-patches@sourceware.org Subject: Re: [PATCH] Add support for Tilera TILE-Gx processor (part 1/2: gdb) References: <4F906647.8090303@tilera.com> <20120420124306.GJ2852@adacore.com> <4F95B46D.1070101@tilera.com> In-Reply-To: <4F95B46D.1070101@tilera.com> Content-Type: text/plain; charset=ISO-8859-1 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: 2012-04/txt/msg00792.txt.bz2 On 04/23/2012 08:58 PM, Jeff Kenton wrote: > diff -r -u -N /home/packages/gdb-7.4x/gdb/config/tilegx/nm-linux.h ./gdb/config/tilegx/nm-linux.h > --- /home/packages/gdb-7.4x/gdb/config/tilegx/nm-linux.h 1969-12-31 19:00:00.000000000 -0500 > +++ ./gdb/config/tilegx/nm-linux.h 2012-04-23 13:01:20.177924000 -0400 > @@ -0,0 +1,45 @@ > +/* Native-dependent definitions for GNU/Linux on TILE. > + > + Copyright (C) 2012 Free Software Foundation, Inc. > + > + This file is part of GDB. > + > + This program is free software; you can redistribute it and/or modify > + it under the terms of the GNU General Public License as published by > + the Free Software Foundation; either version 3 of the License, or > + (at your option) any later version. > + > + This program is distributed in the hope that it will be useful, > + but WITHOUT ANY WARRANTY; without even the implied warranty of > + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + GNU General Public License for more details. > + > + You should have received a copy of the GNU General Public License > + along with this program. If not, see . */ > + > +#ifndef NM_TILELINUX_H > +#define NM_TILELINUX_H > + > +#undef HAVE_LINK_H > + > +#include "config/nm-linux.h" > + > +/* Return sizeof user struct to callers in less machine dependent > + routines. Hard coded for cross-compilation friendliness. */ > + > +#define KERNEL_U_SIZE 308 > + > +/* This is the amount to substract from u.u_ar0 to get the offset in > + the core file of the register values. */ > +#define KERNEL_U_ADDR 0 > + > +/* ptrace register ``addresses'' are absolute. */ > + > +#define U_REGS_OFFSET 0 > + > +/* ptrace transfers longs, and expects addresses as longs. */ > + > +#define PTRACE_ARG3_TYPE long > +#define PTRACE_XFER_TYPE long > + > +#endif /* NM_TILELINUX_H */ You shouldn't need any of this nowadays. Looks like you've forward ported this patch from some older GDB. -- Pedro Alves