From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 105290 invoked by alias); 14 Apr 2016 09:47:51 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 105273 invoked by uid 89); 14 Apr 2016 09:47:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Exclude X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 14 Apr 2016 09:47:40 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 005D6C062C91; Thu, 14 Apr 2016 09:47:38 +0000 (UTC) Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u3E9laxL013909; Thu, 14 Apr 2016 05:47:37 -0400 Subject: Re: PR13984 - gdb stops controlling a thread after "Remote 'g' packet reply is too long: ..." error message To: Orgad Shaneh References: <570C14D4.3030600@codesourcery.com> <570CFA04.3070109@codesourcery.com> <570E99DC.8080902@codesourcery.com> <570EABAA.50908@redhat.com> <570EC0C0.8030500@redhat.com> <570F613A.8060708@redhat.com> Cc: Luis Machado , gdb-patches@sourceware.org, "Maciej W. Rozycki" From: Pedro Alves Message-ID: <570F6738.1010404@redhat.com> Date: Thu, 14 Apr 2016 09:47:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SW-Source: 2016-04/txt/msg00319.txt.bz2 On 04/14/2016 10:39 AM, Orgad Shaneh wrote: > On Thu, Apr 14, 2016 at 12:22 PM, Pedro Alves wrote: >> On 04/14/2016 10:06 AM, Orgad Shaneh wrote: >> >>> Ok, autoconf helped. FSF gdbserver 6.5 has the same issue when the gdb >>> client is >=7.5: "Remote 'g' packet reply is too long". >>> >>> So this doesn't seem to be related to Cavium patches. >> >> Since you can build gdb now, you should be able to use "git bisect" >> to find the culprit. >> >> Thanks, >> Pedro Alves >> > > Good point. The first bad commit is 1faeff08. > Thanks. That's: Author: Maciej W. Rozycki AuthorDate: Thu Mar 1 22:19:48 2012 +0000 ... * mips-tdep.c (mips_generic_reg_names): Remove trailing null strings. (mips_tx39_reg_names): Likewise. (mips_linux_reg_names): New array of register names for Linux targets. (mips_register_name): Check for a null pointer in mips_processor_reg_names and return an empty string. (mips_register_type): Exclude embedded registers for the IRIX and Linux ABIs. (mips_pseudo_register_type): Likewise. Use dynamic numbers to refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle DSP registers. (mips_stab_reg_to_regnum): Handle DSP accumulators. (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise. (mips_gdbarch_init): Likewise. Initialize internal register indices for the Linux ABI. Use dynamic numbers to refer to registers, as applicable, while parsing the target description. Maciej, see https://sourceware.org/ml/gdb-patches/2016-04/msg00310.html . Thanks, Pedro Alves