Paste number 318983: gdb with debugging symbols

Paste number 318983: gdb with debugging symbols
Pasted by: civodul
When:5 years, 5 months ago
Share:Tweet this! | http://paste.lisp.org/+6U4N
Channel:None
Paste contents:
Raw Source | XML | Display As
$ guix environment --container --expose=$HOME/.gdbinit --ad-hoc gcc-toolchain{,:debug} guile{,:debug} pkg-config gdb
guix environment: warning: ambiguous package specification `guile:debug'
guix environment: warning: choosing guile-2.0.11 from gnu/packages/guile.scm:127:2
guix environment: warning: ambiguous package specification `guile'
guix environment: warning: choosing guile-2.0.11 from gnu/packages/guile.scm:127:2
ludo@pluto ~/tmp [env]# gcc -g guile-bug.c `pkg-config guile-2.0 --cflags --libs`
ludo@pluto ~/tmp [env]# echo $PATH
/gnu/store/7k5x8zpwnx6wr31hc7nn7hb3ky8r1lgl-profile/bin:/gnu/store/7k5x8zpwnx6wr31hc7nn7hb3ky8r1lgl-profile/sbin
ludo@pluto ~/tmp [env]# gdb ./a.out 
GNU gdb (GDB) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...

warning: /data/src/alta/eigen-pp.py: No such file or directory
Reading symbols from ./a.out...done.
(gdb) set debug-file-directory /gnu/store/7k5x8zpwnx6wr31hc7nn7hb3ky8r1lgl-profile/lib/debug
(gdb) b scm_with_guile
Breakpoint 1 at 0x400990
(gdb) r
Starting program: /home/ludo/tmp/a.out 
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling /gnu/store/hyk2i7b8mwbrbiyqk5sgrfgds9zvcrn5-guile-2.0.11/lib/libguile-2.0.so.22.7.2-gdb.scm
;;; compiled /home/ludo/.cache/guile/ccache/2.0-LE-8-2.0/gnu/store/hyk2i7b8mwbrbiyqk5sgrfgds9zvcrn5-guile-2.0.11/lib/libguile-2.0.so.22.7.2-gdb.scm.go
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/gnu/store/8m00x5x8ykmar27s9248cmhnkdb2n54a-glibc-2.22/lib/libthread_db.so.1".
[New Thread 0x7ffff5eb7700 (LWP 25)]
[New Thread 0x7ffff5666700 (LWP 26)]
[New Thread 0x7ffff4e15700 (LWP 27)]
[New Thread 0x7ffff43c1700 (LWP 28)]
[New Thread 0x7ffff3b70700 (LWP 29)]
[New Thread 0x7ffff331f700 (LWP 30)]
[Switching to Thread 0x7ffff43c1700 (LWP 28)]

Thread 5 "a.out" hit Breakpoint 1, scm_with_guile (
    func=0x400a96 <a_libguile_thread>, data=0x0) at threads.c:954
954	threads.c: No such file or directory.
(gdb) 

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.