[opensuse] Leap 42.2 - gdb complains glibc-debuginfo missing - invalid package suggested
SuSE Devs, Leap 42.2 gdb complains that it is missing the debuginfo package: Starting program: /home/david/dev/src-c/tmp/debug/bin/splitap Missing separate debuginfos, use: zypper install glibc-debuginfo-2.22-3.7.x86_64 Attempting to install the package returns nothing?? $ sudo zypper install glibc-debuginfo-2.22-3.7.x86_64 Loading repository data... Reading installed packages... 'glibc-debuginfo-2.22-3.7.x86_64' not found in package names. Trying capabilities. No provider of 'glibc-debuginfo-2.22-3.7.x86_64' found. ['--plus-content debug'?] Resolving package dependencies... Nothing to do. Searching for any glibc-debuginfo returns nothing: $ zypper se glibc-debuginfo Loading repository data... Reading installed packages... No matching items found. With oss, update, non-oss and devtoos repos enabled. What gives, and why is gdb not finding the library files it needs to work correctly? Without whatever it is missing, gdb will not step into main and simply exits, e.g.: $ gdb ./bin/splitap <snip preamble junk> Reading symbols from ./bin/splitap...done. (gdb) break main Breakpoint 1 at 0x400750 (gdb) run Starting program: /home/david/dev/src-c/tmp/debug/bin/splitap Missing separate debuginfos, use: zypper install glibc-debuginfo-2.22-3.7.x86_64 Breakpoint 1, 0x0000000000400750 in main () (gdb) s Single stepping until exit from function main, which has no line number information. 0x00007ffff7a596e5 in __libc_start_main () from /lib64/libc.so.6 (gdb) s Single stepping until exit from function __libc_start_main, which has no line number information. [Inferior 1 (process 12235) exited normally] (gdb) quit ?? $ gcc --version gcc (SUSE Linux) 4.8.5 -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 01/02/2017 06:10 PM, David C. Rankin wrote:
With oss, update, non-oss and devtoos repos enabled. What gives, and why is gdb not finding the library files it needs to work correctly? Without whatever it is missing, gdb will not step into main and simply exits, e.g.:
Disregard Stupidity and having the -debug repos disabled by default was the issue. -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (1)
-
David C. Rankin