* [PATCH] gnu: gdb: Add guile scripting support.
@ 2015-09-28 12:57 Ricardo Wurmus
2015-09-28 20:50 ` Ludovic Courtès
0 siblings, 1 reply; 3+ messages in thread
From: Ricardo Wurmus @ 2015-09-28 12:57 UTC (permalink / raw)
To: guix-devel@gnu.org
[-- Attachment #1: Type: text/plain, Size: 148 bytes --]
Hi Guix,
with the attached patch GDB is built with Guile scripting support[1].
[1]: https://sourceware.org/gdb/current/onlinedocs/gdb/Guile.html
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-gdb-Enable-Guile-scripting-support.patch --]
[-- Type: text/x-patch, Size: 754 bytes --]
From e8f89cd5707781e941940a29494129c849eb205c Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Date: Mon, 28 Sep 2015 14:54:58 +0200
Subject: [PATCH] gnu: gdb: Enable Guile scripting support.
* gnu/packages/gdb.scm (gdb)[arguments]: Enable Guile scripting support.
---
gnu/packages/gdb.scm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gnu/packages/gdb.scm b/gnu/packages/gdb.scm
index f17b398..09b4d4b 100644
--- a/gnu/packages/gdb.scm
+++ b/gnu/packages/gdb.scm
@@ -48,6 +48,8 @@
(arguments
`(#:tests? #f ; FIXME "make check" fails on single-processor systems.
+ #:configure-flags '("--with-guile")
+
#:modules ((srfi srfi-1)
,@%gnu-build-system-modules)
--
2.1.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] gnu: gdb: Add guile scripting support.
2015-09-28 12:57 [PATCH] gnu: gdb: Add guile scripting support Ricardo Wurmus
@ 2015-09-28 20:50 ` Ludovic Courtès
2015-09-28 21:00 ` Ricardo Wurmus
0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2015-09-28 20:50 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: guix-devel@gnu.org
Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> 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’.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] gnu: gdb: Add guile scripting support.
2015-09-28 20:50 ` Ludovic Courtès
@ 2015-09-28 21:00 ` Ricardo Wurmus
0 siblings, 0 replies; 3+ messages in thread
From: Ricardo Wurmus @ 2015-09-28 21:00 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: guix-devel@gnu.org
Ludovic Courtès <ludo@gnu.org> writes:
> Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> skribis:
>
>> with the attached patch GDB is built with Guile scripting support[1].
>
> It’s already available, what did you imagine? ;-)
Oh. I must have run Fedora’s gdb instead of the one installed through
Guix. (I was already wondering how this could possibly be!)
Here on my GuixSD machine at home it’s all fine, so I guess we should
pretend I never send this patch. ;)
~~ Ricardo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-09-28 21:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-28 12:57 [PATCH] gnu: gdb: Add guile scripting support Ricardo Wurmus
2015-09-28 20:50 ` Ludovic Courtès
2015-09-28 21:00 ` Ricardo Wurmus
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).