From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31332 invoked by alias); 5 Oct 2015 12:39:06 -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 31315 invoked by uid 89); 5 Oct 2015 12:39:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f195.google.com Received: from mail-wi0-f195.google.com (HELO mail-wi0-f195.google.com) (209.85.212.195) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 05 Oct 2015 12:39:04 +0000 Received: by wicuu12 with SMTP id uu12so21016461wic.0 for ; Mon, 05 Oct 2015 05:39:01 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.180.105.135 with SMTP id gm7mr10652252wib.18.1444048741579; Mon, 05 Oct 2015 05:39:01 -0700 (PDT) Received: by 10.28.61.198 with HTTP; Mon, 5 Oct 2015 05:39:01 -0700 (PDT) Date: Mon, 05 Oct 2015 12:39:00 -0000 Message-ID: Subject: Known bug in remote serial protocol, or something else? From: Juha Aaltonen To: gdb@sourceware.org Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2015-10/txt/msg00012.txt.bz2 I was trying to debug my "standalone gdbstub" when I encountered a strange problem. 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). The gdb client I'm using is gdb-multiarch 7.7.1 on Debian 8 (x86_64) - the one in the official repo. 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...