From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15914 invoked by alias); 22 Apr 2003 10:51:58 -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 15896 invoked from network); 22 Apr 2003 10:51:53 -0000 Received: from unknown (HELO hotmail.com) (64.4.9.103) by sources.redhat.com with SMTP; 22 Apr 2003 10:51:53 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 22 Apr 2003 03:51:53 -0700 Received: from 193.67.187.139 by lw9fd.law9.hotmail.msn.com with HTTP; Tue, 22 Apr 2003 10:51:52 GMT X-Originating-IP: [193.67.187.139] X-Originating-Email: [hoogerbrugge@hotmail.com] From: "Jan Hoogerbrugge" To: ac131313@redhat.com Cc: gdb@sources.redhat.com Bcc: Subject: Re: Endianness and remote debugging Date: Tue, 22 Apr 2003 10:51:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 22 Apr 2003 10:51:53.0187 (UTC) FILETIME=[2F4C3330:01C308BD] X-SW-Source: 2003-04/txt/msg00244.txt.bz2 >>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. The problem has been solved after that I discovered that register values are sent in target order while other values are sent in big endian order. BWT, I was refering to the 'qPmodethreadid' query of section D.4. Thanks, Jan _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail