From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5758 invoked by alias); 23 Jan 2008 14:11:56 -0000 Received: (qmail 5750 invoked by uid 22791); 23 Jan 2008 14:11:55 -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; Wed, 23 Jan 2008 14:11:26 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 6F17998375; Wed, 23 Jan 2008 14:11:24 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 5C1C8980E0; Wed, 23 Jan 2008 14:11:23 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1JHgK3-00017c-57; Wed, 23 Jan 2008 09:11:23 -0500 Date: Wed, 23 Jan 2008 14:11:00 -0000 From: Daniel Jacobowitz To: Guillaume MENANT Cc: gdb@sourceware.org Subject: Re: Data order in GDB commands Message-ID: <20080123141123.GA4216@caradoc.them.org> Mail-Followup-To: Guillaume MENANT , gdb@sourceware.org References: <15042357.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15042357.post@talk.nabble.com> User-Agent: Mutt/1.5.17 (2007-12-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-01/txt/msg00230.txt.bz2 On Wed, Jan 23, 2008 at 06:04:45AM -0800, Guillaume MENANT wrote: > > I'm wondering what is the order of the data in the GDB commands like (G, g, > m, M...) > > If i receive G0022f600... > > What should I write in my register ? 0x0022F600 or 0x00F62200 or something > else ? You should be able to figure this out by experimentation, very easily. Set a register to a value and see what packet GDB sends. It's target byte order. -- Daniel Jacobowitz CodeSourcery