From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21651 invoked by alias); 10 Feb 2002 18:27:34 -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 21567 invoked from network); 10 Feb 2002 18:27:31 -0000 Received: from unknown (HELO pasiphae02.frii.com) (216.17.128.34) by sources.redhat.com with SMTP; 10 Feb 2002 18:27:31 -0000 Received: from deimos.frii.net (deimos.frii.com [216.17.128.2]) by pasiphae02.frii.com (8.12.2/8.12.2) with ESMTP id g1AIRPtF027515; Sun, 10 Feb 2002 11:27:25 -0700 (MST) Received: from dnv-co4c-241.rasserver.net (dnv-co4c-241.rasserver.net [204.32.203.241]) by deimos.frii.net (8.12.2/8.12.2) with ESMTP id g1AIRN2w046789; Sun, 10 Feb 2002 11:27:24 -0700 (MST) Date: Sun, 10 Feb 2002 10:27:00 -0000 From: "Theodore A. Roth" X-X-Sender: troth@bozoland.mynet To: Andrew Cagney cc: Daniel Jacobowitz , Subject: Re: gdb support for Atmel AVR In-Reply-To: <3C6457A8.4090801@cygnus.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-02/txt/msg00171.txt.bz2 On Fri, 8 Feb 2002, Andrew Cagney wrote: :)TARGET_ADDR_BIT is the number of significant bits in a CORE_ADDR. For :)your target that is 32. The remote protocol will use those 32 bits when :) requesting raw memory. :) :)Separatly, you've got 16 bit pointers you need TARGET_PTR_BIT=16. GDB :)uses the functions pointer_to_address() and address_to_pointer() when :)converting a C code/data pointer to/from a CORE_ADDR. :)I'd try the above. I set TARGET_ADDR_BIT to 32 and TARGET_PTR_BIT to 16 and initial testing looks like it works. I think had the two swapped when I was playing with this months ago. Now I have avr support with only the following modifications to gdb from cvs: modify: configure.tgt add: avr-tdep.c add: config/avr/avr.mt add: config/avr/tm-avr.h This makes me much happier than my previous patch with all the other files it touched. I'll continue testing and make up a new patch to send out to the avr community for testing while I wait for copyright assignment papers to show up. Thanks for the help. Ted Roth