From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11376 invoked by alias); 29 Sep 2017 15:06:27 -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 10533 invoked by uid 89); 29 Sep 2017 15:06:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=H*r:sk:gnu-gdb, Hx-languages-length:385, H*r:gdb@gnu.org X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (208.118.235.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 29 Sep 2017 15:06:26 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dxwrv-0007uH-N8 for gdb@sourceware.org; Fri, 29 Sep 2017 11:06:24 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46480) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxwrv-0007uC-K3 for gdb@sourceware.org; Fri, 29 Sep 2017 11:06:23 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42637) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dxwrv-0000De-DQ for gdb@gnu.org; Fri, 29 Sep 2017 11:06:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dxwrs-0007t8-19 for gdb@gnu.org; Fri, 29 Sep 2017 11:06:23 -0400 Received: from [195.159.176.226] (port=40304 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dxwrr-0007sf-Pj for gdb@gnu.org; Fri, 29 Sep 2017 11:06:19 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dxwrg-00036n-Ah for gdb@gnu.org; Fri, 29 Sep 2017 17:06:08 +0200 To: gdb@gnu.org From: Michael Stahl Subject: Re: gdb 8.0 "lazy_string" exception "Length is larger than array size" Date: Fri, 29 Sep 2017 15:06:00 -0000 Message-ID: References: <28211a38-604b-a775-598b-677ddf46673a@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 In-Reply-To: <28211a38-604b-a775-598b-677ddf46673a@redhat.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-SW-Source: 2017-09/txt/msg00137.txt.bz2 On 26.09.2017 12:30, Pedro Alves wrote: > If you want to ignore the array's declared length, I think you can > always decay 'buffer' to a pointer and work with that, and then GDB > won't have a length to validate. thanks, replacing ['buffer'] with ['buffer'].address in the pretty printer avoids the exception!