From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C0AA63858293; Fri, 17 Jun 2022 17:35:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C0AA63858293 From: "trass3r at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug record/29260] New: Stopped event should contain reason for 'No more reverse-execution history' Date: Fri, 17 Jun 2022 17:35:56 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: record X-Bugzilla-Version: unknown 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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: Fri, 17 Jun 2022 17:35:56 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29260 Bug ID: 29260 Summary: Stopped event should contain reason for 'No more reverse-execution history' Product: gdb Version: unknown Status: UNCONFIRMED Severity: normal Priority: P2 Component: record Assignee: unassigned at sourceware dot org Reporter: trass3r at gmail dot com Target Milestone: --- When stepping past the reverse execution history buffer bounds gdb prints 'No more reverse-execution history' to the output but does not g= ive a reason in the MI stopped event, leading to a bad UX. https://github.com/microsoft/MIEngine/pull/1037#issuecomment-750299377 1: (62155) <-1057-exec-next --reverse 1: (62156) ->1057^running 1: (62156) ->*running,thread-id=3D"1" 1: (62156) ->(gdb) 1: (62163) ->~"\nNo more reverse-execution history.\n" 1: (62164) ->~"main (argc=3D1, argv=3D0x7fffffffdb78) at ../test.cpp:25\n" 1: (62164) ->~"25\t\tstd::u16string s =3D u\"test\";\n" 1: (62164) ->*stopped,frame=3D{addr=3D"0x000055555555734b",func=3D"main",args=3D[{name= =3D"argc",value=3D"1"},{name=3D"argv",value=3D"0x7fffffffdb78"}],file=3D"..= /test.cpp",fullname=3D"/tmp/test.cpp",line=3D"25",arch=3D"i386:x86-64"},thr= ead-id=3D"1",stopped-threads=3D"all",core=3D"2" Test case: https://github.com/microsoft/MIEngine/pull/1037#issuecomment-1158743492 int main() { int i =3D 0; ++i; ++i; return i; } $ gdb --batch -ex 'b main' -ex r -ex n -ex 'p i' -ex 'record full' -ex n -e= x 'p i' -ex n -ex 'p i' -ex n -ex 'p i' -ex 'reverse-next' -ex 'p i' -ex 'reverse-next' -ex 'p i' -ex 'reverse-next' -ex 'p i' test --=20 You are receiving this mail because: You are on the CC list for the bug.=