From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25319 invoked by alias); 26 Dec 2006 02:03:55 -0000 Received: (qmail 25108 invoked by uid 22791); 26 Dec 2006 02:03:54 -0000 X-Spam-Check-By: sourceware.org Received: from gateway.codesourcery.com (HELO sparrowhawk.codesourcery.com) (65.74.133.9) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 26 Dec 2006 02:03:49 +0000 Received: from sparrowhawk.codesourcery.com (localhost.localdomain [127.0.0.1]) by sparrowhawk.codesourcery.com (8.13.1/8.13.1) with ESMTP id kBQ23lrj007252; Mon, 25 Dec 2006 18:03:47 -0800 Received: (from kazu@localhost) by sparrowhawk.codesourcery.com (8.13.1/8.13.1/Submit) id kBQ23lTL007249; Mon, 25 Dec 2006 18:03:47 -0800 Date: Tue, 26 Dec 2006 02:03:00 -0000 Message-Id: <200612260203.kBQ23lTL007249@sparrowhawk.codesourcery.com> From: Kazu Hirata To: gdb-patches@sources.redhat.com CC: dan@codesourcery.com Subject: [patch] Add support for fido. 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: 2006-12/txt/msg00316.txt.bz2 Hi, Attached is a patch to add support for fido, a new chip from Innovasic Semiconductor. Tested by building gdb and running "Hello, world". OK to apply? Kazu Hirata gdb/ 2006-12-25 Kazu Hirata * configure.tgt: Recognize fido. * config/m68k/fido.mt, config/m68k/tm-fido.h: New. Index: gdb/configure.tgt =================================================================== RCS file: /cvs/src/src/gdb/configure.tgt,v retrieving revision 1.181 diff -u -d -p -r1.181 configure.tgt --- gdb/configure.tgt 15 Dec 2006 23:45:04 -0000 1.181 +++ gdb/configure.tgt 26 Dec 2006 01:59:26 -0000 @@ -14,6 +14,7 @@ alpha*) gdb_target_cpu=alpha ;; am33_2.0*) gdb_target_cpu=mn10300 ;; arm*) gdb_target_cpu=arm ;; avr*) gdb_target_cpu=avr ;; +fido*) gdb_target_cpu=m68k ;; hppa*) gdb_target_cpu=pa ;; i[34567]86*) gdb_target_cpu=i386 ;; m68hc11*|m6811*) gdb_target_cpu=m68hc11 ;; @@ -75,6 +76,8 @@ cris*) gdb_target=cris # OBSOLETE d10v-*-*) gdb_target=d10v ;; +fido-*-elf*) gdb_target=fido ;; + frv-*-*) gdb_target=frv ;; h8300-*-*) gdb_target=h8300 ;; Index: gdb/config/m68k/fido.mt =================================================================== RCS file: gdb/config/m68k/fido.mt diff -N gdb/config/m68k/fido.mt --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ gdb/config/m68k/fido.mt 26 Dec 2006 01:59:26 -0000 @@ -0,0 +1,3 @@ +# Target: Motorola m68k embedded (EST emulator, rom68k and bug monitors) +TDEPFILES= m68k-tdep.o monitor.o dbug-rom.o dsrec.o +DEPRECATED_TM_FILE = tm-fido.h Index: gdb/config/m68k/tm-fido.h =================================================================== RCS file: gdb/config/m68k/tm-fido.h diff -N gdb/config/m68k/tm-fido.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ gdb/config/m68k/tm-fido.h 26 Dec 2006 01:59:26 -0000 @@ -0,0 +1,28 @@ +/* Target machine definitions for a generic m68k monitor/emulator. + Copyright 2006 + 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 2 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, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ + +/* Watchpoints are always continuable for these targets. There's no + multi-arch way to set this yet since it still lives in the target + vector. + + FIXME: If the Fido port is ever submitted, this should move to + gdbarch. */ +#define HAVE_CONTINUABLE_WATCHPOINT 1