There is a dynamic library compiled with debug information and sources for it. When debugging an application that uses this library, QtCreator shows characters from this library, but how to match them with the source?

  • Does it only show characters or characters and paths? In the first case, there is a high probability that there is still no debug information ... - Fat-Zer
  • I have my own library and I'm sure that there is debug information there - Rikitikitavi
  • check the presence of the ".debug_ *" sections in the elf of the library ... for example, you can use readelf -S /path/to/libmy.so | grep debug readelf -S /path/to/libmy.so | grep debug ... if you don’t have them, then just rebuild and make sure you collect with the -g key ... after that it will most likely work out of the box if the source code doesn’t move ... - Fat-Zer
  • Do not move the source? And if my library is in, say, e.usr / bin / `, and I download the sources from the repository, if necessary, is there any possibility to compare them? - Rikitikitavi
  • one
    there is, but it will require additional gestures ( see for gdb ) and in the presence of source codes it is usually easier to rebuild IMHO, at the same time you will be sure that the version of the library exactly matches the source code ... - Fat-Zer

0