From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3F3163947C02; Thu, 10 Sep 2020 13:08:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3F3163947C02 From: "trass3r at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/26594] 'info line' does not print all corresponding addresses Date: Thu, 10 Sep 2020 13:08:57 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: trass3r at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Sep 2020 13:08:58 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26594 --- Comment #1 from trass3r --- Indeed the following patch using the same flags as the jump or breakpoint commands yields expected results: diff --git a/gdb/source.c b/gdb/source.c index 0c2b5a4f83..6e6705779f 100644 --- a/gdb/source.c +++ b/gdb/source.c @@ -1463,7 +1463,7 @@ info_line_command (const char *arg, int from_tty) else { decoded_sals =3D decode_line_with_last_displayed (arg, - DECODE_LINE_LIST_MODE= ); +=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20 DECODE_LINE_FUNFIRSTLINE); sals =3D decoded_sals; dont_repeat (); $ i line test2.cpp:21 Line 22 of "test2.cpp" starts at address 0x55f4d74da3ec (int)+15> = and ends at 0x55f4d74da3f1 (int)+20>. Line 22 of "test2.cpp" starts at address 0x55f4d74da407 (float)+= 17> and ends at 0x55f4d74da40c (float)+22>. --=20 You are receiving this mail because: You are on the CC list for the bug.=