gdbinit / Gdbinit

Gdbinit for OS X, iOS and others - x86, x86_64 and ARM
https://reverse.put.as
1.69k stars 458 forks source link

Replace $64BITS with sizeof(void *) == 8 #8

Closed tyilo closed 11 years ago

tyilo commented 11 years ago

This removes the need of setting $64BITS and calling 32bits or 64bits as this checks the size of pointers at runtime

gdbinit commented 11 years ago

Thanks for the patch! Never thought before about it before :-) Gdb seems to recognize the correct size after it attaches or loads a target, which appears to be good enough for this purpose. Let me test it for a couple of days and merge it.