[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] gnu: gdb: Add guile scripting support.
From: |
Ludovic Courtès |
Subject: |
Re: [PATCH] gnu: gdb: Add guile scripting support. |
Date: |
Mon, 28 Sep 2015 22:50:30 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Ricardo Wurmus <address@hidden> skribis:
> with the attached patch GDB is built with Guile scripting support[1].
It’s already available, what did you imagine? ;-)
--8<---------------cut here---------------start------------->8---
(gdb) r
Starting program: /home/ludo/soft/bin/guile
[Thread debugging using libthread_db enabled]
Using host libthread_db library
"/gnu/store/x2vcwnrwhydd6knmlqsnan0jg13i96zd-glibc-2.22/lib/libthread_db.so.1".
[New Thread 0x7ffff5eaa700 (LWP 2918)]
[New Thread 0x7ffff5659700 (LWP 2919)]
[New Thread 0x7ffff4e08700 (LWP 2920)]
[New Thread 0x7ffff3c14700 (LWP 2921)]
GNU Guile 2.0.11.140-67d8c
Copyright (C) 1995-2014 Free Software Foundation, Inc.
Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.
Enter `,help' for help.
scheme@(guile-user)> C-c C-c
Program received signal SIGINT, Interrupt.
0x00007ffff75bffcd in read () from
/gnu/store/x2vcwnrwhydd6knmlqsnan0jg13i96zd-glibc-2.22/lib/libpthread.so.0
(gdb) bt
#0 0x00007ffff75bffcd in read () from
/gnu/store/x2vcwnrwhydd6knmlqsnan0jg13i96zd-glibc-2.22/lib/libpthread.so.0
#1 0x00007ffff7abc8fc in fport_fill_input (port=...) at fports.c:668
#2 0x00007ffff7af1118 in scm_slow_get_byte_or_eof (port=#<port file 709f60>)
at ports.c:1536
#3 0x00007ffff41aa4ff in scm_get_byte_or_eof (port=...) at
../libguile/inline.h:105
#4 current_input_getc (in=<optimized out>) at readline.c:136
#5 0x00007ffff3f8c17e in rl_read_key () from
/home/ludo/.guix-profile/lib/libreadline.so.6
#6 0x00007ffff3f77b0d in readline_internal_char () from
/home/ludo/.guix-profile/lib/libreadline.so.6
#7 0x00007ffff3f7812c in readline () from
/home/ludo/.guix-profile/lib/libreadline.so.6
#8 0x00007ffff41aaa24 in internal_readline (text="scheme@(guile-user)> ") at
readline.c:248
#9 scm_readline (text="scheme@(guile-user)> ", inp=#<port file 709f60>,
outp=..., read_hook=...) at readline.c:200
--8<---------------cut here---------------end--------------->8---
(This examples shows Guile’s GDB support loaded by GDB’s Guile support.)
Ludo’.