gdb hangs on function call
OS: Debian GNU/Linux 3.1
GNU gdb 6.3-debian I wrote a program that has 3 source files. I am calling an external function in one of my source files (function from a different source file). When I run the executible, there is no problem. When I debug, however and try to step into the extern, it hangs up indefineitely. It will not recover. I am purely command line, no X - Windows here. I believe that it may have to do with updating symbols at this point. Is there a good way to do this? Astro |
Maybe you forgot to compile the other source file with gcc's "-g" option, and the function you called from the other source file hangs (infinite loop or blocking syscall or so...) ??
|
Thanks for your response,
I do compile with the -g option. Not blocking or looping just stepping into the function. I am also noting that it takes a while to execute TCP/IP functions in the debugger. Why would it hang this way? :scratch: Astro Solved: Not really sure why, but the debugger seems to have updated the symbol file on its own. Theories are welcome though. |
All times are GMT -5. The time now is 04:34 PM. |