Add more examples of perl/gdb usage.

Also add doc about gdb's ptype, and make examples more clear.