From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23059 invoked by alias); 22 Aug 2008 11:24:36 -0000 Received: (qmail 23050 invoked by uid 22791); 22 Aug 2008 11:24:35 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 22 Aug 2008 11:23:57 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 0CD7B981EB; Fri, 22 Aug 2008 11:23:55 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id D8581981EA; Fri, 22 Aug 2008 11:23:54 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1KWUkD-0002Sv-Lp; Fri, 22 Aug 2008 07:23:53 -0400 Date: Fri, 22 Aug 2008 14:32:00 -0000 From: Daniel Jacobowitz To: Robin den Hertog Cc: gdb@sourceware.org Subject: Re: byte word and int(32) safe memory access? Message-ID: <20080822112353.GA9175@caradoc.them.org> Mail-Followup-To: Robin den Hertog , gdb@sourceware.org References: <1021db0c0808220135s7ff206fexbc0e410889414558@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1021db0c0808220135s7ff206fexbc0e410889414558@mail.gmail.com> User-Agent: Mutt/1.5.17 (2008-05-11) X-IsSubscribed: yes 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: 2008-08/txt/msg00250.txt.bz2 On Fri, Aug 22, 2008 at 10:35:20AM +0200, Robin den Hertog wrote: > hey, > > I would like to be able to send bytes words and int's that are > read/written as such to my embedded target. > (some fpga's and other peripheral hardware need their registers to be > read/written in one action). > the protocol doesn't support this, what is more the way the `m' packet > is defined it is unsure how it will handle the read at all. What problem, exactly, are you solving here? In practice, if you tell GDB to read an int it will read an int; if you tell it to read a byte it will read a byte. It's only when accessing multi-word structures that you get a problem. And in those cases it's sometimes possible to teach the stub to handle it transparently. -- Daniel Jacobowitz CodeSourcery