[root@xxx memcached-1.4.5]# objdump -R memcached-debug |grep freeaddrinfo 0000000000629e10 R_X86_64_JUMP_SLOTfreeaddrinfo
(gdb) l main ... 4614if (开发者_JAVA百科do_daemonize) 4615save_pid(getpid(), pid_file); (gdb) l save_pid
(gdb) print argv[1] $5 = 0xbffffb1d \"hello\" (gdb) step 21sz = strlen(argv[1]) + 1; (gdb) print sz $6 = 0
I\'ve just tried using gdb on BackTrack Linux and I must say that its awesome. I wonder how gdb in backtrack is configured to开发者_StackOverflow中文版 act this way.
I have a program invoking function foo that is defined in a library. How can I know where the library is in the file system? (like is it a static library or a dynamically linked lib?)
Could some one please tell me how to examine the last place where my program got stuck. Can it be done with gdb or any UNIX syscall that may work on that pro开发者_如何学Ccess. Here\'s the situation.
I have a C program which uses a timer, when the timer expires the program does something (sets a flag).
This is what is in the code: typedefunsigned longintub4;/* unsigned 4-byte quantities */ However:开发者_如何学编程
Anyone knows how to know开发者_如何学运维 which file a specific function is in with gdb?there is also info func which accepts a regular expression.
Could somebody tell me where would the execution log be stored when using the process record/replay feature in gdb?