gdb only sysbols generated by g++
Load
gdb http-client executable file
gcc http-client.c -o http-client -g [gdb]
list function from the http-client.c
list main symbol
list 22 show 10 lines aroud line 22
Backtrace show call trace
break line or function
break filename:line or function
http://blog.csdn.net/hejianhua/article/details/6716193