News for hackers. Stuff that matters.
Re:rr – record and replay debugger for C/C++ by laserbeam on Sunday July 21, 2024 @08:34AM (#41024642)
Ok yeah, of course. I'd even argue that cross platform debuggers are not a thing to be desired. Too much low level integration with the operating system is needed when implementing one.
Re:rr – record and replay debugger for C/C++ by db48x on Sunday July 21, 2024 @09:29AM (#41024934)
I disagree. You shouldn’t have to learn two debuggers just because you occasionally have to use a different OS. GDB has the right architecture here; the actual debugging operations are implemented by a gdbserver, and gdb is only the user interface that lets the user tell the server what to do. When you’re debugging on a different platform you use use a different gdbserver and keep using the same user interface that you are familiar with.

When you replay a recording, rr first starts its custom gdbserver (which reads from the recording instead of from a live process) then starts a gdb process that connects to it.

Re:rr – record and replay debugger for C/C++ by Xeamek on Sunday July 21, 2024 @09:41AM (#41025018)
Why? From the user's pov, what 'low level integration with an OS' is there that couldn't/shouldn't be abstracted into 'generic debugging functionalities'?
Re:rr – record and replay debugger for C/C++ by ognarb on Sunday July 21, 2024 @04:56PM (#41028042)
I did use gdb recently on Windows, but this was for a cross compiled program using mingw. Not sure it works for programs made with MSVC.