From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 123727 invoked by alias); 1 Nov 2019 16:11:11 -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 123718 invoked by uid 89); 1 Nov 2019 16:11:11 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=3.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=packet X-HELO: mail-qt1-f176.google.com Received: from mail-qt1-f176.google.com (HELO mail-qt1-f176.google.com) (209.85.160.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 01 Nov 2019 16:11:10 +0000 Received: by mail-qt1-f176.google.com with SMTP id o3so13520812qtj.8 for ; Fri, 01 Nov 2019 09:11:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=yQxU2tYVECPS65tmjV58h27nkk/TSBxW+cyID0VMZdY=; b=oEth9VZ4K//2latI6oapORQ5x7nxtf61slxXZQO9lUiMB5wNbn7bQ445ZIX407/xiY 0wnBbrcA5Bbzy0rHmBX2R/Gx65iYeTtwdYoATM+3p8IxcZUEdxXstaZ7lDxXyIIveDPy 26jrdptqkEXtlEBArp36ZbMX2fdrvsG+XQRnnDYi6068W1D+64bveSbZDJ3vHuDahKA2 b9wagnDWkO/GbseBXOq2sVAeU80V6dCae2wJa+pnfVUByaofN79No0hH8kuY1BRTCbcD 9WBATijIG98fb9v49xmBbeF6FEZKEsmUhFRNcHymXA3FEVIHLvTJ3XbPwsPQnJk82rep YI8Q== Return-Path: Received: from [192.168.15.21] (201-43-10-147.dsl.telesp.net.br. [201.43.10.147]) by smtp.gmail.com with ESMTPSA id 81sm5039575qkd.73.2019.11.01.09.11.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Nov 2019 09:11:06 -0700 (PDT) Subject: Re: gdb 8.3.1 truncated register in remote g packet To: Reinoud Koornstra , gdb@sourceware.org References: From: Luis Machado Message-ID: <5c9d0ab7-4e03-ea43-ae54-5d2aed0728e0@linaro.org> Date: Fri, 01 Nov 2019 16:11:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-11/txt/msg00000.txt.bz2 Hi Reinoud, On 10/31/19 3:58 PM, Reinoud Koornstra wrote: > Hello Everyone, > > I downloaded an compiled gdb 8.3.1 with --target=arm-linux-gnueabihf on my > x86_64 pc. > Compiled and installed fine. I started the gdb with the vmlinux file and > tried to connect to the remote arm32 machine: target remote /dev/ttyUSB0 > Then I get: Truncated register 19 in remote 'g' packet. > What is going wrong here? I saw earlier archives about similar issues, but > i thought those would have been patched. Any help would be appreciated. That error means your remote arm32 machine's debugging stub doesn't agree with GDB in terms of the register set. GDB is likely assuming register set A and the debugging stub is assuming register set B. You can check what the debugging stub is sending via "set debug remote 1". If it supports XML register descriptions, you'll see data flying by. If it doesn't, then GDB is probably making a guess as to what the proper register set is. In summary, i think we need more data in order to make an informer guess on what is going wrong here, but probably GDB and the debugging stub are not in sync in terms of registers. > Thanks, > > Reinoud. >