News for hackers. Stuff that matters.
Re:Inspecting coredumps like it's 2021 by jandrese on Monday September 20, 2021 @03:19PM (#28597647)
Was anybody else disappointed that it's still just gdb for the debugger? I've thought for a long time that something better must be out there, especially a debugger that better handles multiple threads in an application, but every time I need to debug something I'm back in the 80s.
Re:Inspecting coredumps like it's 2021 by AshamedCaptain on Monday September 20, 2021 @04:37PM (#28598678)
What would be better? How to improve the handling of multiple threads?

Every time I have tried a different debugger, I have always ended up coming running back to GDB. My only gripes with it are basically gripes with DWARF.

Re:Inspecting coredumps like it's 2021 by jjav on Tuesday September 21, 2021 @05:01AM (#28603223)
I still use dbx from Sun Studio. The now-oracle connection taints it, but it was from good old Sun. It was always better than gdb for threaded debugging.

Haven't checked if it is still available but I have it installed from long ago.

Re:Inspecting coredumps like it's 2021 by xxpor on Monday September 20, 2021 @04:41PM (#28598720)
I don't get what it's missing other than a GUI. I can view stacktraces, view memory in various formats, create new commands on the fly or in .gdbinit... what are people missing?
Re:Inspecting coredumps like it's 2021 by tom_ on Monday September 20, 2021 @06:16PM (#28599745)
Well I miss a GUI.
Re:Inspecting coredumps like it's 2021 by mmlb on Monday September 20, 2021 @08:01PM (#28600562)
I used to use DDD as a GUI frontend to GDB.

https://www.gnu.org/software/ddd/

Re:Inspecting coredumps like it's 2021 by klyrs on Monday September 20, 2021 @10:16PM (#28601381)
I tried to love ddd for quite a few months. It's definitely a GUI, of the same era as Xfig. That's about the nicest thing I can say about it; I prefer the CLI.
Re:Inspecting coredumps like it's 2021 by bsdubernerd on Monday September 20, 2021 @03:40PM (#28597924)
What about lldb? Has anybody had extensive experience with both to say anything about the actual debugging experience? Does it offer anything more than just "infrastructure"?
Re:Inspecting coredumps like it's 2021 by tazjin on Monday September 20, 2021 @04:26PM (#28598542)
Same basic concept, though it had some nicer representations of non-C language things OOB when I tried it.
Re:Inspecting coredumps like it's 2021 by selfhoster11 on Monday September 20, 2021 @03:21PM (#28597674)
Really, my kingdom for a debugger that is as accessible as the one from IntelliJ.
Re:Inspecting coredumps like it's 2021 by astange on Monday September 20, 2021 @04:34PM (#28598632)
The CLion front end to gdb/lldb is very good. Not perfect, but that's mainly do the oddities of interacting with the underlying debugger.

https://www.jetbrains.com/help/clion/debugging-code.html

Re:Inspecting coredumps like it's 2021 by db48x on Tuesday September 21, 2021 @05:36AM (#28603375)
There is something better out there. https://pernos.co/
Re:Inspecting coredumps like it's 2021 by GuB-42 on Tuesday September 21, 2021 @06:16AM (#28603569)
Pernosco is certainly 2021... Debugging as a service...

Did anyone try it? It looks like it a web frontend for rr, but the idea seems alien to me, especially the pricing part. A subscription for a number of submissions per month?! If there is anything you can't really plan, it is bugs, one month, you may need only one or two, the next it will be 50 in a day.

Re:Inspecting coredumps like it's 2021 by db48x on Tuesday September 21, 2021 @06:28AM (#28603635)
I’ve tried it, and it’s amazing.

It’s more than merely a front–end for rr, because with rr you are still inspecting a single moment in time in your program. You can rewind to past moments any time you want, but that fundamental limitation remains. With Pernosco you are really querying a database that contains all the information about all the states your program was ever in. It’s a superpower that you can purchase.

I think the price is generally worth it, if you have at least a couple bugs to use it on every month. If you have more than 5 per month but don’t want to go up a tier, I believe you can pay “a la carte” just for the extras. If you have enough people, and you can afford the hardware to run it, I really recommend the on–premises installation.