aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc/guile.texi
diff options
context:
space:
mode:
authorAndy Wingo <wingo@igalia.com>2014-05-26 15:06:29 -0700
committerDoug Evans <xdje42@gmail.com>2014-05-26 15:06:29 -0700
commit0f1e84039284fe8c476260ab6201ea14b709bee9 (patch)
treedac74bef66d18415f1a18263f6ac8d34f860248e /gdb/doc/guile.texi
parent214ab2dadd8749565a186043c2d3cdf0795b3ba9 (diff)
downloadgdb-0f1e84039284fe8c476260ab6201ea14b709bee9.zip
gdb-0f1e84039284fe8c476260ab6201ea14b709bee9.tar.gz
gdb-0f1e84039284fe8c476260ab6201ea14b709bee9.tar.bz2
Fix excess parentheses in use-modules forms.
Diffstat (limited to 'gdb/doc/guile.texi')
-rw-r--r--gdb/doc/guile.texi10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/doc/guile.texi b/gdb/doc/guile.texi
index be41f36..fc63cb2 100644
--- a/gdb/doc/guile.texi
+++ b/gdb/doc/guile.texi
@@ -1600,7 +1600,7 @@ To continue the @code{my::string} example,
this code might appear in @code{(my-project my-library v1)}:
@smallexample
-(use-modules ((gdb)))
+(use-modules (gdb))
(define (register-printers objfile)
(append-objfile-pretty-printer!
(make-pretty-printer "my-string" str-lookup-function)))
@@ -1610,7 +1610,7 @@ this code might appear in @code{(my-project my-library v1)}:
And then the corresponding contents of the auto-load file would be:
@smallexample
-(use-modules ((gdb) (my-project my-library v1)))
+(use-modules (gdb) (my-project my-library v1))
(register-printers (current-objfile))
@end smallexample
@@ -1661,7 +1661,7 @@ This example doesn't need a lookup function, that is handled by the
the object that handles the lookup.
@smallexample
-(use-modules ((gdb printing)))
+(use-modules (gdb printing))
(define (build-pretty-printer)
(let ((pp (make-pretty-printer-collection "my-library")))
@@ -1673,7 +1673,7 @@ the object that handles the lookup.
And here is the autoload support:
@smallexample
-(use-modules ((gdb) (my-library)))
+(use-modules (gdb) (my-library))
(append-objfile-pretty-printer! (current-objfile) (build-pretty-printer))
@end smallexample
@@ -3265,7 +3265,7 @@ Then in gdb:
@smallexample
(gdb) start
-(gdb) guile (use-modules ((gdb) (gdb types)))
+(gdb) guile (use-modules (gdb) (gdb types))
(gdb) guile (define foo-ref (parse-and-eval "foo_ref"))
(gdb) guile (get-basic-type (value-type foo-ref))
int