Jump to content

How To Make Proper Debugs For Developers With Gdb?

Recommended Posts

  • 38 years later...

I have found that sometimes developers ask to provide debug from GDB, but I was not able to find how to do it in proper way. So I tried to do it myself without any manual and I've got problem.

So I try to connect gdb to running mangos via PID:

gdb --pid=1234

gdb starts do something and then it paused with these lines in the end of stdout:

Loaded symbols for /lib64/ld-linux-x86-64.so.2

Reading symbols from /lib/libnss_files.so.2...done.

Loaded symbols for /lib/libnss_files.so.2

Failed to read a valid object file image from memory.

0x00002b13f3b6da96 in select () from /lib/libc.so.6

Mangos server freez after or during that.

After I press 'q' and quit gdb mangos server return to normal functioning.

Please help me to use gdb!

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use