title: Why does it complain Missing separate debuginfos about my c++ with gdb?
body: <p>My OS: <code>CentOS Linux release 7.9.2009 (Core)</code></p>
  <p>I am debugging a c++ program with:</p>
  <pre><code>gdb demo_test
  </code></pre>
  <p>But I got an error:</p>
  <pre><code>Breakpoint 1, Log (level=2, msg=0x7ffff79df035 &quot;[%s]:default model:%s&quot;) at ./api/test/test.cpp:16
  16      va_start(ap, msg);
  Missing separate debuginfos, use: debuginfo-install glibc-2.17-324.el7_9.x86_64 libgcc-4.8.5-44.el7.x86_64 libstdc++-4.8.5-44.el7.x86_64
  </code></pre>
  <p>Then I did:</p>
  <pre><code>yum install yum-utils
  Loaded plugins: langpacks, product-id, search-disabled-repos
  Package yum-utils-1.1.31-54.el7_8.noarch already installed and latest version
  Nothing to do
  </code></pre>
  <p>Then I did:</p>
  <pre><code># debuginfo-install glibc
  Loaded plugins: langpacks, product-id
  Could not find debuginfo for main pkg: glibc-2.17-324.el7_9.x86_64
  Could not find debuginfo pkg for dependency package nss-softokn-freebl-3.53.1-6.el7_9.x86_64
  No debuginfo packages available to install
  </code></pre>
  <p>This doesn't fix the issue. I also tried to remove the -02 flag from the g++:</p>
  <pre><code>g++ -g -Wall  -O2  ./api/test/test.cpp  ./${NAME}.so -o demo_test $(CINCLUDE)  $(CLIB)
  </code></pre>
  <p>But it doesn't help either. How can I possibly fix the issue? Really thanks in advance.</p>