August 2011 Archives

gdb basics

Getting started with gdb , some notes on this

objdump (otool on osx) is a program to examine a binary.
To examine perl run the command

objdump -D /usr/bin/perl |grep -A40 main.:

Interesting to see the function call
objdump -D /usr/bin/perl |grep -A400 main.: |grep call

to get the output in intel syntax add the option -M

objdump -M intel ...

for the following c program

main() {
printf("hello world \n");

-g flag to give gcc access to source co…

Allowing anonymous comments

Gabor has a post here where he points out that the level of interaction is lower than the other blogs, he mentions and chromatic's blog as an example.
On more than one occasion I have typed in my comment only to realize that you need to be logged in to comment ( Gabor's , and chromatic's blog all require login) . I understand spam is a issue but if you want me to login to comment I will most probably not do it .

I am not saying that o…

About Kiran

user-pic I blog about Perl.