News for hackers. Stuff that matters.
Re:How does gdb work? by userbinator on Wednesday August 10, 2016 @07:04AM (#12260747)
Every time I use GDB, I feel like it was almost deliberately designed to make me hate using it, and those example outputs really show why; compare WinDBG's output dumping bytes (and corresponding ASCII in the usual hexdump format, something that GDB just doesn't seem to support at all...):

http://3.bp.blogspot.com/-J5bsfRdkOdk/UsHqCho2huI/AAAAAAAACV...

and structures:

https://msdnshared.blob.core.windows.net/media/TNBlogsFS/Blo...

Re:How does gdb work? by noselasd on Wednesday August 10, 2016 @09:22AM (#12261467)
While I don't particularly like how gdb does this either, you can:

* "set print pretty on" , this makes structs readable

* "x/20b &var" to show a hex dump. But no ASCII, and you have to give it the count (e.g. 20 bytes..)