Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

WTF, GDB?

Name: Cudder !MhMRSATORI!fR8duoqGZdD/iE5 2013-10-19 2:39

Why the fuck doesn't it understand that

break 0x401000

means [i]I want the bloody breakpoint at address 401000h[i], not "there's no function with that name"? No language you'd sanely use it with will even allow you to name a function starting with a digit (that's why C makes hex constants start with 0 - to distinguish them from identifiers!) and in the very perverted case such a symbol actually ended up in an object file you could always escape using quotes:

break "0x13371337"

Should mean "I really do want to put a breakpoint on a symbol with such a fucked-up name." Idiots...

GDB stands for God Damn Bugger.

SoftICE > DEBUG > WinDbg >>> OllyDbg >>> GDB

Name: Anonymous 2013-10-19 2:53

What the fuck are you talking about? OllyDbg is the best Windows debugger since SoftICE died.

Name: Anonymous 2013-10-19 2:57

break *0xFA6607
learn to gdb

Name: Anonymous 2013-10-19 3:06

As soon as cudder learns how to use gdb it will be the year of anonix on the desktop.

Name: Cudder !MhMRSATORI!fR8duoqGZdD/iE5 2013-10-19 5:15

>>3
I'm damn well aware of that but why the jesusfucking mary can't it figure out that if I'm entering a number IT IS VERY BLOODY LIKELY GOING TO BE AN ADDRESS and default to that?!?!?

This is as fucked up as gas's random asterisks everywhere that make no sense. At least we have fasm and nasm to get around that repulsive beast, but where's the equivalent for gdb?

Reminds me of this quote from some anon:
gdb will make you a better programmer, since you'll be so reluctant to use it you'll be careful to not write buggy code.
Except in this case I'm debugging someone else's code. Fuck.

Name: Anonymous 2013-10-19 5:55

>>3
>>4
le pedophile sage

Name: Anonymous 2013-10-19 6:05

gdb is simple. Maybe you're just a dolt.

Please sage this.

Name: Anonymous 2013-10-19 6:36

>>7
le pedophile sage

Name: Anonymous 2013-10-19 10:47

check 'em

Name: Anonymous 2013-10-19 10:49

install gentoo

Name: Anonymous 2013-10-19 11:17

HAX MY DOUBLES

Name: Anonymous 2013-10-19 12:16

>>9
>le pedophile sage

Name: Anonymous 2013-10-20 0:47

I LOVE gdb! It gives me gas! RANDUM ASTERISKS ARE SO RANDUM xD

Name: Anonymous 2013-10-20 4:05

>>5
I'm damn well aware of that but why the jesusfucking mary can't it figure out that if I'm entering a number IT IS VERY BLOODY LIKELY GOING TO BE AN ADDRESS and default to that?!?!?
GDB and other GNU tools are a little bureaucratic. There is likely a deep logic in it, like some ancient assembler or binary format required prefixing addresses with '*'

Name: Cudder !MhMRSATORI!fR8duoqGZdD/iE5 2013-10-20 7:16

>>14
At least it doesn't require its commands to be valid XML...

There's definitely some gas similarity there. E.g.

movl %eax, %ebx    ; ebx = eax
jmp *%eax          ; eip = eax --- what's wrong with "jmp %eax"!?!?
movl 4(%eax), %ebx ; ebx = memory[eax+4]
jmp *4(%eax)       ; eip = memory[eax+4] --- why not just "jmp 4(%eax)"?

(don't get me started on the bass-ackwards operand order) instead of the much more intuitive and logical, not to mention official,

mov ebx, eax       ; ebx = eax
jmp eax            ; eip = eax
mov ebx, [eax+4]   ; ebx = memory[eax+4]
jmp [eax+4]        ; eip = memory[eax+4]


In my experience, those who like gdb haven't used better CLI debuggers, like SoftICE.

Don't change these.
Name: Email:
Entire Thread Thread List