From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25979 invoked by alias); 31 Mar 2004 15:57:28 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 25970 invoked from network); 31 Mar 2004 15:57:27 -0000 Received: from unknown (HELO localhost.redhat.com) (216.129.200.20) by sources.redhat.com with SMTP; 31 Mar 2004 15:57:27 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 44E972B92; Wed, 31 Mar 2004 10:57:27 -0500 (EST) Message-ID: <406AEA67.1060704@gnu.org> Date: Wed, 31 Mar 2004 17:15:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-GB; rv:1.4.1) Gecko/20040217 MIME-Version: 1.0 To: jbeniston@compxs.com Cc: gdb@sources.redhat.com Subject: Re: Customizing remote-sim.c on a multi-arch target References: <000601c41701$2e2cca70$09bda8c0@Kindrogan> In-Reply-To: <000601c41701$2e2cca70$09bda8c0@Kindrogan> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-03/txt/msg00294.txt.bz2 > Hi, > > I'm trying to customize remote-sim.c on a multi-arch target, what I'd > look to do is be able to define TARGET_REDEFINE_DEFAULT_OPS so I can > install hooks to support h/w watchpoints and async execution in my > simulator. Where should this macro be defined? Rather than define these macros, what about implementing a new target (inferior) vector that meets your needs? This is what > Is this not compatible > with the multi-arch approach (I notice config/cpu/tx-cpu.h is not > included for multi-arch builds). The tm-cpu.h files are obsolete. Instead things are implemented using an architecture (gdbarch) and target (inferior) vector. You may also be interested in this: http://sources.redhat.com/gdb/papers/multi-arch/real-multi-arch/ Andrew