It seems to me that you forgot to enable the GDB record.
(gdb) record
(gdb) continue
(gdb) reverse-continue
Continuing.
For example, it worked for me
Breakpoint 1, main (argc=1, argv=0x7ffe673b5638) at ...
7 int lol = 0xbeefface;
(gdb) record
(gdb) continue
Continuing.
Program stopped.
0x00007f710c188746 in __GI__exit ...
(gdb) reverse-continue
Continuing.
...
No more reverse-execution history.
main (argc=1, argv=0x7ffe673b5638) at ...
7 int lol = 0xbeefface;
I was able to reproduce your problem with
Breakpoint 1, main (argc=1, argv=0x7ffeb7945198) at main.c:7
7 int lol = 0xbeefface;
(gdb) b _exit
Breakpoint 2 at 0x7fc62dbb8710: file ...
(gdb) continue
Continuing.
Breakpoint 2, __GI__exit ...
(gdb) reverse-continue
Target native does not support this command.
source
share