public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug record/29260] New: Stopped event should contain reason for 'No more reverse-execution history'
@ 2022-06-17 17:35 trass3r at gmail dot com
  2022-06-17 20:58 ` [Bug record/29260] " trass3r at gmail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: trass3r at gmail dot com @ 2022-06-17 17:35 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=29260

            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 give
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="1"
1: (62156) ->(gdb)
1: (62163) ->~"\nNo more reverse-execution history.\n"
1: (62164) ->~"main (argc=1, argv=0x7fffffffdb78) at ../test.cpp:25\n"
1: (62164) ->~"25\t\tstd::u16string s = u\"test\";\n"
1: (62164)
->*stopped,frame={addr="0x000055555555734b",func="main",args=[{name="argc",value="1"},{name="argv",value="0x7fffffffdb78"}],file="../test.cpp",fullname="/tmp/test.cpp",line="25",arch="i386:x86-64"},thread-id="1",stopped-threads="all",core="2"

Test case:
https://github.com/microsoft/MIEngine/pull/1037#issuecomment-1158743492
int main()
{
        int i = 0;
        ++i;
        ++i;
        return i;
}

$ gdb --batch -ex 'b main' -ex r -ex n -ex 'p i' -ex 'record full' -ex n -ex '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

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-01-18 13:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-17 17:35 [Bug record/29260] New: Stopped event should contain reason for 'No more reverse-execution history' trass3r at gmail dot com
2022-06-17 20:58 ` [Bug record/29260] " trass3r at gmail dot com
2022-06-18 16:20 ` tromey at sourceware dot org
2022-06-18 17:08 ` trass3r at gmail dot com
2022-06-18 17:09 ` trass3r at gmail dot com
2023-01-18 13:49 ` blarsen at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).