this post was submitted on 28 Feb 2024
1010 points (97.0% liked)

Programmer Humor

32558 readers
549 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 59 points 8 months ago (1 children)
[–] [email protected] 36 points 8 months ago* (last edited 8 months ago) (2 children)

Yes. It's a surprisingly bad debugger the more you think about it. I use it largely in assembly and it loves to spit out random errors about memory it tried to access based on the current register state. The shortcuts are kind of dumb.

It certainly works but I wouldn't call it a pleasure to use.

Ex: try disp x/1i $eip often just doesn't work.

[–] [email protected] 6 points 8 months ago

I use gdb with great success for x64, rv64, and c:

info registers rip or just setup tui:

# ~/.config/gdb/gdbinit:
tui new-layout default regs 1 {-horizontal src 1 asm 1} 2 status 0 cmd 1
tui layout default
tui enable
[–] [email protected] 1 points 8 months ago

I honestly vastly prefer using IDA and Windows specific tools (x64dbg) over gdb. IDA can interface with gdb so it can act as a frontend which can be handy for visualization.