From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10990 invoked by alias); 21 Apr 2003 14:05:33 -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 10983 invoked from network); 21 Apr 2003 14:05:33 -0000 Received: from unknown (HELO localhost.redhat.com) (66.30.197.194) by sources.redhat.com with SMTP; 21 Apr 2003 14:05:33 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 4FD612B44; Thu, 17 Apr 2003 16:06:53 -0400 (EDT) Message-ID: <3E9F095D.7060304@redhat.com> Date: Mon, 21 Apr 2003 14:05:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jan Hoogerbrugge Cc: gdb@sources.redhat.com Subject: Re: Endianness and remote debugging References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-04/txt/msg00227.txt.bz2 > Hi, > > My target runs in little endian and my host in big endian. On the line between the stub and gdb I see that data is communicated in little endian. That seems to work fine. However, queries dealing with thread stuff seem to assume big endian. For example, I see the mode field of the P query in big endian. Is this a bug or am I missing something? You mean the P (write register) packet? According to the documentation (http://sources.redhat.com/gdb/, follow documentation), the register value is in target byte order. Andrew