From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13216 invoked by alias); 23 Sep 2005 08:59:59 -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 13018 invoked by uid 22791); 23 Sep 2005 08:59:42 -0000 Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 23 Sep 2005 08:59:42 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EIjNg-0006a2-TW for gdb@sources.redhat.com; Fri, 23 Sep 2005 10:58:09 +0200 Received: from zigzag.lvk.cs.msu.su ([158.250.17.23]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 23 Sep 2005 10:58:08 +0200 Received: from ghost by zigzag.lvk.cs.msu.su with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 23 Sep 2005 10:58:08 +0200 To: gdb@sources.redhat.com From: Vladimir Prus Subject: Targets with non-byte-addressable memory Date: Fri, 23 Sep 2005 08:59:00 -0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.8.2 X-SW-Source: 2005-09/txt/msg00169.txt.bz2 Hello! Does anybody has experience of porting gdb to a target where memory is not byte-addressable. That is, if you read 0x80000007 you get 4 bytes and if you read 0x80000008 you get another 4 bytes. The source has TARGET_CHAR_BIT macro, but no target under "config" makes use of them which makes me suspect that setting it won't do any good. In fact, after setting it to 32, I get compile error in ax-gdb.c: case 8 / TARGET_CHAR_BIT: ax_simple (ax, aop_ref8); break; case 16 / TARGET_CHAR_BIT: ax_simple (ax, aop_ref16); break; case 32 / TARGET_CHAR_BIT: ax_simple (ax, aop_ref32); break; case 64 / TARGET_CHAR_BIT: ax_simple (ax, aop_ref64); as both 8/32 and 16/32 give 0, and I get duplicate case label. So, any easy way for me? - Volodya