Strange behavior of GDB - Linux

One day I made a pretty big update to my archilink (two months later). I have updated GCC, GDB and QtCreator which I use for development.

gcc -v
gcc version 4.9.1 (GCC) 

gdb -v
GNU gdb (GDB) 7.8

qtcreator -version
Qt Creator 3.2.0 based on Qt 5.3.1

      

I noticed strange behavior of gdb today. If I run the debugger for the first time (after restarting my computer again) it works. But after the debugger is stopped, or just the debugged application is stopped, it won't work again ... and if I start debugging again, it will be very slow (but the CPU shows normal load), it will take a few more minutes to start the debug again Appendix. After the debug is completely frozen and must be killed with "killall gdb".

Only the output from GDB is the following:

"warning: GDB: Failed to set controlling terminal: Inappropriate ioctl for device\n"
Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?

      

I tried to search here, but this post Couldn't load common symbol libraries for linux-vdso.so.1. while debug says "cannot load shared library ..." nothing special.

+3


source to share


1 answer


I am using archlinux too.

gdb -v
GNU gdb (GDB) 7.8

qtcreator -version
Qt Creator 3.2.0 based on Qt 5.3.1`

      

Having encountered this behavior and resolved the issue of downgrading gdb to version 7.7



And yes, the gdb you mention has nothing to do with the problem.

But couldn't find why this is happening.

+5


source







All Articles