Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jeff Kenton <jkenton@tilera.com>
To: <gdb-patches@sourceware.org>
Subject: [PATCH] Add support for Tilera TILE-Gx processor (part 1/2: gdb)
Date: Thu, 19 Apr 2012 19:26:00 -0000	[thread overview]
Message-ID: <4F906647.8090303@tilera.com> (raw)


This is a port of GDB to the Tilera TILE-Gx processor.

I broke this into 2 parts:  the first (this part) contains changes to
configure and Makefiles.  Changes are based on the gdb-7.4.50.20120410
snapshot.  The second part contains new Tilera specific files.


Comments please.

Thanks.

jeff kenton (jkenton@tilera.com)



diff -r -u -N ./gdb-7.4.50.20120410/gdb/configure.host ./gdb/configure.host
--- ./gdb-7.4.50.20120410/gdb/configure.host    2011-05-04 
15:28:14.000000000 -0400
+++ ./gdb/configure.host        2012-04-19 13:55:56.257486000 -0400
@@ -50,6 +50,7 @@
  sparcv9 | sparc64)     gdb_host_cpu=sparc ;;
  s390*)                 gdb_host_cpu=s390 ;;
  sh*)                   gdb_host_cpu=sh ;;
+tilegx*)               gdb_host_cpu=tilegx ;;
  x86_64*)               gdb_host_cpu=i386 ;;
  m32r*)                 gdb_host_cpu=m32r ;;
  xtensa*)               gdb_host_cpu=xtensa ;;
@@ -159,6 +160,8 @@
                         gdb_host=sol2
                         ;;

+tilegx-*-*)            gdb_host=tilegx ;;
+
  vax-*-bsd*)            gdb_host=vax ;;
  vax-*-netbsdelf* | vax-*-knetbsd*-gnu)
                         gdb_host=nbsdelf ;;
diff -r -u -N ./gdb-7.4.50.20120410/gdb/configure.tgt ./gdb/configure.tgt
--- ./gdb-7.4.50.20120410/gdb/configure.tgt     2012-03-05 
06:41:51.000000000 -0500
+++ ./gdb/configure.tgt 2012-04-19 13:55:56.279492000 -0400
@@ -551,6 +551,13 @@
         gdb_target_obs="tic6x-tdep.o"
         ;;

+tilegx-*-*)
+        # Target: TILE-Gx
+        gdb_target_obs="tilegx-tdep.o solib.o solib-svr4.o \
+                       symfile-mem.o linux-tdep.o"
+        build_gdbserver=yes
+        ;;
+
  xstormy16-*-*)
         # Target: Sanyo Xstormy16a processor
         gdb_target_obs="xstormy16-tdep.o"
diff -r -u -N ./gdb-7.4.50.20120410/gdb/gdbserver/configure.srv 
./gdb/gdbserver/configure.srv
--- ./gdb-7.4.50.20120410/gdb/gdbserver/configure.srv   2012-03-13 
11:00:37.000000000 -0400
+++ ./gdb/gdbserver/configure.srv       2012-04-19 13:55:56.308487000 -0400
@@ -311,6 +311,12 @@
                         srv_tgtobj="${srv_tgtobj} linux-ptrace.o"
                         srv_linux_regsets=yes
                         ;;
+  tilegx-*-linux*)     srv_regobj=reg-tilegx.o
+                       srv_tgtobj="linux-low.o linux-tile-low.o 
linux-osdata.o linux-procfs.o"
+                       srv_tgtobj="${srv_tgtobj} linux-ptrace.o"
+                       srv_linux_regsets=yes
+                       srv_linux_thread_db=yes
+                       ;;
    *)                   echo "Error: target not supported by gdbserver."
                         exit 1
                         ;;
diff -r -u -N ./gdb-7.4.50.20120410/gdb/gdbserver/Makefile.in 
./gdb/gdbserver/Makefile.in
--- ./gdb-7.4.50.20120410/gdb/gdbserver/Makefile.in     2012-03-13 
11:00:37.000000000 -0400
+++ ./gdb/gdbserver/Makefile.in 2012-04-19 13:55:56.293485000 -0400
@@ -120,6 +120,7 @@
         $(srcdir)/linux-sh-low.c $(srcdir)/linux-sparc-low.c \
         $(srcdir)/linux-x86-low.c \
         $(srcdir)/linux-xtensa-low.c \
+       $(srcdir)/linux-tile-low.c \
         $(srcdir)/win32-arm-low.c $(srcdir)/win32-i386-low.c \
         $(srcdir)/win32-low.c $(srcdir)/wincecompat.c \
         $(srcdir)/hostio.c $(srcdir)/hostio-errno.c \
@@ -479,6 +480,7 @@
  linux-x86-low.o: linux-x86-low.c $(linux_low_h) $(server_h) \
         $(gdb_proc_service_h) $(i386_low_h) $(agent_h)
  linux-xtensa-low.o: linux-xtensa-low.c xtensa-xtregs.c $(linux_low_h) 
$(server_h)
+linux-tile-low.o: linux-tile-low.c $(linux_low_h) $(server_h)

  lynx-low.o: lynx-low.c $(server_h) $(target_h) $(lynx_low_h)
  lynx-ppc-low.o: lynx-ppc-low.c $(server_h) $(lynx_low_h)
@@ -670,4 +672,7 @@
  reg-xtensa.o : reg-xtensa.c $(regdef_h)
  reg-xtensa.c : $(srcdir)/../regformats/reg-xtensa.dat $(regdat_sh)
         $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-xtensa.dat 
reg-xtensa.c
+reg-tilegx.o : reg-tilegx.c $(regdef_h)
+reg-tilegx.c : $(srcdir)/../regformats/reg-tilegx.dat $(regdat_sh)
+       $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-tilegx.dat 
reg-tilegx.c
  # This is the end of "Makefile.in".
diff -r -u -N ./gdb-7.4.50.20120410/gdb/Makefile.in ./gdb/Makefile.in
--- ./gdb-7.4.50.20120410/gdb/Makefile.in       2012-03-28 
17:31:18.000000000 -0400
+++ ./gdb/Makefile.in   2012-04-19 13:55:56.166490000 -0400
@@ -565,6 +565,7 @@
         sparc-sol2-tdep.o sparc-tdep.o \
         spu-tdep.o spu-multiarch.o solib-spu.o \
         tic6x-tdep.o tic6x-linux-tdep.o \
+       tilegx-tdep.o \
         v850-tdep.o \
         vaxnbsd-tdep.o vaxobsd-tdep.o vax-tdep.o \
         xstormy16-tdep.o \
@@ -723,7 +724,7 @@
         regcache.c reggroups.c remote.c remote-fileio.c reverse.c \
         sentinel-frame.c \
         serial.c ser-base.c ser-unix.c skip.c \
-       solib.c solib-target.c source.c \
+       solib-target.c source.c \
         stabsread.c stack.c std-regs.c symfile.c symfile-mem.c symmisc.c \
         symtab.c \
         target.c target-descriptions.c target-memory.c \
@@ -905,7 +906,7 @@
         reggroups.o regset.o \
         trad-frame.o \
         tramp-frame.o \
-       solib.o solib-target.o \
+       solib-target.o \
         prologue-value.o memory-map.o memrange.o \
         xml-support.o xml-syscall.o xml-utils.o \
         target-descriptions.o target-memory.o xml-tdesc.o xml-builtin.o \
@@ -1510,6 +1511,7 @@
         sparc64nbsd-nat.c sparc64nbsd-tdep.c sparc64obsd-tdep.c \
         sparcnbsd-nat.c sparcnbsd-tdep.c sparcobsd-tdep.c \
         spu-linux-nat.c spu-tdep.c spu-multiarch.c solib-spu.c \
+       tilegx-linux-nat.c tilegx-tdep.c \
         v850-tdep.c \
         vax-nat.c vax-tdep.c vaxbsd-nat.c vaxnbsd-tdep.c \
         windows-nat.c windows-tdep.c \


             reply	other threads:[~2012-04-19 19:24 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-19 19:26 Jeff Kenton [this message]
2012-04-20  1:58 ` Yao Qi
2012-04-20 12:54 ` Joel Brobecker
2012-04-20 14:03   ` Jeff Kenton
2012-04-21  0:34     ` Joel Brobecker
2012-04-23 19:59   ` Jeff Kenton
2012-04-24 16:07     ` Pedro Alves
2012-04-24 16:07     ` Pedro Alves
2012-04-24 16:07     ` Pedro Alves
2012-04-24 16:07     ` Pedro Alves
2012-04-24 16:08     ` Pedro Alves
2012-04-24 16:11     ` Pedro Alves
2012-04-24 16:14     ` Pedro Alves
2012-04-24 16:22     ` Pedro Alves
2012-04-24 18:47       ` Jeff Kenton
2012-04-24 20:21       ` Jeff Kenton
2012-04-24 22:40         ` Pedro Alves
2012-04-24 16:23     ` Pedro Alves
2012-04-24 16:27     ` Pedro Alves
2012-04-24 16:38     ` Pedro Alves
2012-04-24 16:40     ` Pedro Alves
2012-04-24 16:41       ` Pedro Alves
2012-04-24 16:41     ` Pedro Alves
2012-04-24 16:59       ` Jeff Kenton
2012-04-24 16:42     ` Pedro Alves
2012-04-24 16:54     ` Pedro Alves
2012-04-25  2:18     ` Yao Qi
2012-04-23 20:12   ` [PATCH] Add support for Tilera TILE-Gx processor (part 2/2: gdbserver) Jeff Kenton
2012-04-24 16:54     ` Pedro Alves
2012-04-24 16:55     ` Pedro Alves
2012-04-24 17:34     ` Pedro Alves
2012-05-03 14:28       ` Jeff Kenton
2012-05-03 14:44         ` Pedro Alves

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F906647.8090303@tilera.com \
    --to=jkenton@tilera.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox