This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add support for Tilera TILE-Gx processor (part 1/2: gdb)


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 <http://www.gnu.org/licenses/>.  */
> +
> +#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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]