Why the fuck is it so absolutely convoluted just to get it to display a standard 16 byte + ASCII hexdump of what's in memory at a particular address, unlike almost every other debugger out there?
>>15
``free'' cracks are loaded up with viruses, they will steal your credit cards and make your computer slow
Name:
Anonymous2012-08-20 15:06
GDB follows the ``Worse is Better'' philosophy. Create a debugger so terrible and painful to use that it's better to add printfs to your code than to use the debugger.
>>30
C's printf is a lot weaker than the Algol 68, PL/I or Common Lisp equivalents. $16r4d" |", 2(" "8(16r2d" ")), "|"16a, l$
This one simple Algol 68 format prints (or reads) a whole 16-character line of hex dump in the same exact format as your C code. Look at the elegance of that nested replicator.
>>37 is poking fun at >>29's hexdump format. 16 bytes per line with the dash in the middle is the classic MS DEBUG style (goes back to CP/M I think).
x is fine as long as you know what you're looking at (bytes, words, ASCII chars) beforehand. For wild and crazy shit, though, you're going to want to reach for IDA...
gdb manages to include a lot of relatively obscure features while missing out on a lot of obvious ones.
>>39
Either of >>29 or >>37 is much better than what gdb can do. Bytes + ASCII goes back before CP/M. Possibly early UNIX era.
Even DEBUG is easier to use than gdb, at least its frequently used commands are all 1 character. (I know about the partial match feature, but the documentation is a bit vague.) The "show registers and current instruction after each step" is also very helpful when tracing.
For an example of how the bytes+ASCII has become nearly standard, Google "hexdump" as images and count how many are bytes+ASCII and how many only bytes.
Name:
Anonymous2012-08-22 10:19
>>40 gdb manages to include a lot of relatively obscure features while missing out on a lot of obvious ones.
Because Stallman is a fucking Jew. He provided GCC/GDB to torture goyim.
>>40,41 gdb manages to include a lot of relatively obscure features while missing out on a lot of obvious ones.
This debug feature's pretty obscure. You've probably never heard of it.
Name:
Anonymous2012-08-22 15:36
>>45
No one needs hex view, when source code is available right away. The point is that Windows debuggers, like SoftICE, were made for crackers to steal other people's code, while GDB was made for programmers who know their code and dont need hex or advanced disassembly.