From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 50596 invoked by alias); 3 Nov 2019 00:07:39 -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 50583 invoked by uid 89); 3 Nov 2019 00:07:39 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=H*f:BN65183dGkF, H*f:sk:iHx3kog, H*f:sk:0d7d8ed, helping X-HELO: mail-ot1-f52.google.com Received: from mail-ot1-f52.google.com (HELO mail-ot1-f52.google.com) (209.85.210.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 03 Nov 2019 00:07:37 +0000 Received: by mail-ot1-f52.google.com with SMTP id b16so11475381otk.9 for ; Sat, 02 Nov 2019 17:07:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CjxYfcymWEf6h72HV+B/49EdcksqYUIOo8jxJsjbj0I=; b=iOkaOa2Ytfj2nM4C89X6nX0d+5bBhGdqThZUCDSagOxdjpt04CH0yaKVtBc9f6EAd4 GGNpXE+YVHPwmI2whsdQz63WOZWX1YU15jEI7eTJT87hRCdOo8jIP7+EurkSioeaZ+Nb 1byr0sIu1Bepzmj5DwHBoAZkuT/SythBkK5BsayyetJtJ/NiyRINNQZQ57I27h2o4h3P U+WteQq5qgzgprL5BKPx/uxji6hgGimgSS30eaNyx3NgJBys7Y+Shmup+f2QSxklJz5W t20fjdHLXquRJnnlO60MgHGBggvw115hIJotVgHeDvbzL4ZTBcH8Ycw/U1JIzNJx/+wS VOEA== MIME-Version: 1.0 References: <5c9d0ab7-4e03-ea43-ae54-5d2aed0728e0@linaro.org> <0d7d8ede-1cae-c0cc-be35-05443dc5f073@linaro.org> <1b1ebf11-3e2c-d5b3-6a5b-50ed54e791bc@linaro.org> In-Reply-To: <1b1ebf11-3e2c-d5b3-6a5b-50ed54e791bc@linaro.org> From: Reinoud Koornstra Date: Sun, 03 Nov 2019 00:07:00 -0000 Message-ID: Subject: Re: gdb 8.3.1 truncated register in remote g packet To: Luis Machado Cc: gdb@sourceware.org Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2019-11/txt/msg00008.txt.bz2 > > > I'm not sure why an arm-targeted gdb would not complain about loading a > x86-target vmlinux image. That sounds off. > > The vmlinux was compiled for arm, the thing that surprised me that the x64 gdb didn't complain about it. The arm gdb didn't complain either which was logical. > You could try with an older arm gdb to see if it works fine. If it does > and the latest version doesn't, then we may need to investigate it. > Ok, I'll compile and older gdb for arm and let you know. > > I checked the code and the truncation message is a result of the > debugging stub sending less bytes than GDB expects for the register set. > > The interesting thing is that the incompatible gdb for x86-64 was able to read the message and the gdb for arm wasn't, but i'll try with an older gdb for arm, but it's weird. > Just to confirm, does your arm target have floating point registers? > Good point, I did assume it has, because in some cases armeabihf was used to compile, but not in all cases, I'll check whether it is, otherwise I'd have to recompile gdb without hf. I'll get the info and let you know, thanks for helping out! Reinoud.