From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7790 invoked by alias); 21 Jun 2007 16:13:13 -0000 Received: (qmail 7782 invoked by uid 22791); 21 Jun 2007 16:13:13 -0000 X-Spam-Check-By: sourceware.org Received: from SAGW-PRIMARY.ARC.COM (HELO elsdt-razorfish.arc.com) (62.189.186.51) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 21 Jun 2007 16:13:08 +0000 Received: from elsdt-razorfish.arc.com (localhost.localdomain [127.0.0.1]) by elsdt-razorfish.arc.com (8.12.11.20060308/8.12.11) with ESMTP id l5LGD5p2030021 for ; Thu, 21 Jun 2007 17:13:05 +0100 Received: (from joernr@localhost) by elsdt-razorfish.arc.com (8.12.11.20060308/8.12.11/Submit) id l5LGD5nr030019 for gdb@sourceware.org; Thu, 21 Jun 2007 17:13:05 +0100 Date: Thu, 21 Jun 2007 16:13:00 -0000 From: Joern Rennecke To: gdb@sourceware.org Subject: How do I replace DEPRECATED_TM_FILE? Message-ID: <20070621161305.GD8169@elsdt-razorfish.arc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-06/txt/msg00171.txt.bz2 I've read that instead of setting DEPRECATED_TM_FILE, we should add new members to the target vector. However, how is the target vector supposed to be initialized differently for different subtargets? E.g. arc700 can both be used in an 'embedded' configuration and as a linux target. The register numbers in gdb are different for these configurations. The register numbers used to be defined in separate DEPRECATED_TM_FILE files. I can add xxx_regnum members to the target vector and ARC_XX_REGNUM accessor macros, but somehow I have to decide in arc_gdbarch_init how I am supposed to initialize the target vector.