From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 47308 invoked by alias); 5 Oct 2015 14:51:38 -0000 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 Received: (qmail 47298 invoked by uid 89); 5 Oct 2015 14:51:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_50,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: ausxippc101.us.dell.com Received: from ausxippc101.us.dell.com (HELO ausxippc101.us.dell.com) (143.166.85.207) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Mon, 05 Oct 2015 14:51:37 +0000 X-LoopCount0: from 10.170.28.41 From: To: CC: Subject: Re: Known bug in remote serial protocol, or something else? Date: Mon, 05 Oct 2015 14:51:00 -0000 Message-ID: References: In-Reply-To: Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes X-SW-Source: 2015-10/txt/msg00013.txt.bz2 > On Oct 5, 2015, at 8:39 AM, Juha Aaltonen wrote: >=20 > I was trying to debug my "standalone gdbstub" when I encountered a > strange problem. >=20 > I loaded a debuggee program and started executing it, and it crashed > in a weird address. > When I disassembled the code (ARMv7 target) I found out that some > instructions were corrupted. > I couldn't figure it out about binary transfer (Looked like UTF-8, but > didn't quite match), so I disabled > the 'X'-command, and the 'M'-command seemed to do even worse - telling > by the debug messages > (set debug serial 1, set debug remote 1). X sends data as binary, as the name says. Not UTF-8 -- plain 8 bit binary = data. When reading debug traces, don't get confused by the odd byte order. Most = of the time data numbers come across as little endian hex strings, which ma= kes it rather hard to read addresses (or data) if you aren't careful. >=20 > The gdb client I'm using is gdb-multiarch 7.7.1 on Debian 8 (x86_64) - > the one in the official repo. >=20 > I'm happy to supply further info, if it could be of any help - > including the debuggee ELF, but maybe this > mailing list is not the place... Please follow the bug reporting procedure mentioned on the GDB webpage. paul