←back to thread

376 points turrini | 1 comments | | HN request time: 0s | source
Show context
alexhutcheson ◴[] No.42146843[source]
GDB also has a built-in text user interface (TUI) that is surprisingly easy to use[1]. It even supports mouse interaction.

[1] https://sourceware.org/gdb/current/onlinedocs/gdb.html/TUI.h...

replies(4): >>42146899 #>>42149505 #>>42150401 #>>42151565 #
genpfault ◴[] No.42146899[source]
Only works if GDB has been built with TUI support, sadly :(
replies(2): >>42147067 #>>42147820 #
cyberpunk ◴[] No.42147067[source]
… If you are debugging c code surely you’re able to compile a debugger with whatever options you want?
replies(1): >>42150865 #
rty32 ◴[] No.42150865[source]
In theory, yes, but in practice, people who know how to compile gdb is a small subset of people who need to debug c code.

Not to mention that it actually takes extra time to do so, when people are used to debug Python/JavaScript/Go code with one single click these days.

replies(1): >>42153622 #
Gormo ◴[] No.42153622[source]
Just grabbed the source, and it's a pretty bog standard ./configure ; make. Simple build instructions in the readme. Not sure this is a daunting challenge for any even moderately skilled developer.
replies(2): >>42155825 #>>42156098 #
TeMPOraL ◴[] No.42156098{3}[source]
Where? How?

Last time I tried to build GDB from source, which was some two months ago, it wasn't in any way simple. GDB comes embedded in some GNU binutils repo, instructions to build it in isolation weren't obvious.

I ended up creating a new VM with a more recent Linux distro, that came with newer GDB, and migrating everything I'm working on to it, because that was much easier than building GDB from source.

replies(2): >>42156491 #>>42187304 #
1. ink_13 ◴[] No.42156491{4}[source]
The GDB source is available as a standalone package: https://www.sourceware.org/gdb/download/