From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk1-x744.google.com (mail-qk1-x744.google.com [IPv6:2607:f8b0:4864:20::744]) by sourceware.org (Postfix) with ESMTPS id 84832385DC0B for ; Wed, 15 Apr 2020 02:00:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 84832385DC0B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=brasko.net Authentication-Results: sourceware.org; spf=none smtp.mailfrom=bob@brasko.net Received: by mail-qk1-x744.google.com with SMTP id t3so11864332qkg.1 for ; Tue, 14 Apr 2020 19:00:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasko-net.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=VkgKAaqdt7Eg7FArKEhYusjgG/G/M4l0Oh7bE7rAISw=; b=MzaIv005NW2967sMTOpCbcq8EhYjsKLXyxR0xpuTGGrSZOCkU/DDCzv8h0nsVOVLBV iSsnSAefgoGii1G02gy3f/NnmdPnIPtf6WJsSAPn2JG+3+XuEpri3RBM/eCcOKXIXd4K i3cAWyuL59YiOyA7LmDukfsbr8ROI83fK16YU0UN9em7NHHLbZp3Jc834PdePLvnwLM3 H1HB95xIUM4DIu2BLOx5oeIM9QY4oJ57iCzJJz/XTJY5n7mv75fOkQO+hyyh+QiP/AXZ vad3HBimV8ngAtX8I3NaLP/YVBqDh09Ul6pIpeCaAIsEvd1o4M996ymgsn+fteR+ZzP0 oKNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=VkgKAaqdt7Eg7FArKEhYusjgG/G/M4l0Oh7bE7rAISw=; b=tRb4j4PBOV3h8aG34Nejn+DBiFsYBEAhaS/Essy9OEM8PPCXRksIO5693LWPjcCMp+ KN1F+ScRgNjlOGoI3JuZUyO4rEeX/ynI2aJgXO0eKRjOAeChpX0jJ2U06AX36ibqE/RY rs17SEsbAwHJO0wjj78GPMqivEGQK9Q+GEwomv8tPTv3DAAM552TcmQqUKonrZYOai7b YXD/hh8CziIi18D6sQ+tSQu46aL6NcMd0sKNLJ3/a0w8HPWsPP4NUTVf1JkcrjsZKAWj RFjzcNi8WOxTrEIddGIpmAx142jNwcMds+C6Vb9ciP/ZtkroPeCDGnt6a2kuqfEqpYqR r+6A== X-Gm-Message-State: AGi0PuaCODW5c2aAKUpKlfGEcp/X2AYZmVvgsBUnYTGcIH6sdOnCEJYp AbcvqoA/jY2f3Ozpr21Sqxu++QPmh/U= X-Google-Smtp-Source: APiQypKpQPMRgDR/ugKPjMF7kCa+c+eMnEX5Z1rMqh93LKZ5pTahnHdi0NqSTLe7lYeoWvRDr267DQ== X-Received: by 2002:a37:4284:: with SMTP id p126mr23341883qka.316.1586916036978; Tue, 14 Apr 2020 19:00:36 -0700 (PDT) Received: from xubuntu.brasko.net (pool-108-34-130-131.prvdri.fios.verizon.net. [108.34.130.131]) by smtp.gmail.com with ESMTPSA id p14sm11705223qkp.63.2020.04.14.19.00.36 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Apr 2020 19:00:36 -0700 (PDT) Date: Tue, 14 Apr 2020 22:00:34 -0400 From: Bob Rossi To: Joel Brobecker Cc: gdb@sourceware.org Subject: Re: annotation issue with newer gdb's? Message-ID: <20200415020034.GA31494@xubuntu.brasko.net> References: <20200404233339.GA5321@xubuntu.brasko.net> <20200406184647.GA25518@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200406184647.GA25518@adacore.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Apr 2020 02:00:41 -0000 On Mon, Apr 06, 2020 at 11:46:47AM -0700, Joel Brobecker wrote: > > In older versions of gdb (at least until 7.11 which i'm using and > > possibly later) I see the following behavior when starting gdb and > > typing, 'b main' > > > > "\r\n\032\032post-prompt\r\n" > > "Breakpoint 1 at 0x4006c0: file test.cpp, line 42.\r\n" > > "\r\n\032\032breakpoints-invalid\r\n" > > > > In GDB 9.1, I'm see the following, > > > > "\r\n\032\032post-prompt\r\n" > > "\r\nBreakpoint 1 at \033[34m0x4006c0\033[m: file \033[32mtest.cpp\033[m, line 42." > > "\r\n\032\032breakpoints-invalid\r\n" > > > > You can see that the newline moved on the "Breakpoint 1" line > > from the end of the line (in older versions) to the beginning of the > > line (in newer versions). > > > > This ultimately caused CGDB to misbehave. > > > > Correctly working CGDB, > > Reading symbols from ./main...done. > > (gdb) b main > > Breakpoint 1 at 0x4006c0: file test.cpp, line 42. > > (gdb) > > > > Incorrectly working CGDB, > > Reading symbols from ./main... > > (gdb) b main > > > > Breakpoint 1 at 0x4006c0: file test.cpp, line 42.(gdb) > > > > Was this change to the annotations made on purpose? > > I haven't followed development much, lately ( :-( ), but I don't > think so. This looks similer to: > > https://sourceware.org/bugzilla/show_bug.cgi?id=25190 Thanks for pointing to the bug report. > That particular PR is reported as being fixed for 9.1, so it's > not the same problem, or the fix was incomplete. > > Have you tried master, by any chance? Not yet. I might have to. However, I was playing around and found out that when set height 0 is used, gdb shows the bug. However if, set pagination off is used, the error is gone. I found that really strange as the documentation seems to indicate that 'set height 0' and 'set pagination off' are equivalent. I guess not! I may change CGDB to set pagination off to work around this issue. Is there anything else I should do at this point? Thanks, Bob Rossi