From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rock.gnat.com (rock.gnat.com [IPv6:2620:20:4000:0:a9e:1ff:fe9b:1d1]) by sourceware.org (Postfix) with ESMTP id C91A3385BF83 for ; Mon, 6 Apr 2020 18:46:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C91A3385BF83 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=brobecker@adacore.com Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 2E135116186; Mon, 6 Apr 2020 14:46:49 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at gnat.com Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id uDfQ5Xph-BsE; Mon, 6 Apr 2020 14:46:49 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 07B02116185; Mon, 6 Apr 2020 14:46:48 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 3CCE482B7F; Mon, 6 Apr 2020 11:46:47 -0700 (PDT) Date: Mon, 6 Apr 2020 11:46:47 -0700 From: Joel Brobecker To: Bob Rossi Cc: gdb@sourceware.org Subject: Re: annotation issue with newer gdb's? Message-ID: <20200406184647.GA25518@adacore.com> References: <20200404233339.GA5321@xubuntu.brasko.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200404233339.GA5321@xubuntu.brasko.net> User-Agent: Mutt/1.9.4 (2018-02-28) X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, 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: Mon, 06 Apr 2020 18:46:52 -0000 > 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 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? -- Joel