diff options
Diffstat (limited to 'gdb/guile/lib')
-rw-r--r-- | gdb/guile/lib/gdb.scm | 4 | ||||
-rw-r--r-- | gdb/guile/lib/gdb/boot.scm | 7 | ||||
-rw-r--r-- | gdb/guile/lib/gdb/init.scm | 3 |
3 files changed, 3 insertions, 11 deletions
diff --git a/gdb/guile/lib/gdb.scm b/gdb/guile/lib/gdb.scm index d628f00..120fcc6 100644 --- a/gdb/guile/lib/gdb.scm +++ b/gdb/guile/lib/gdb.scm @@ -491,10 +491,6 @@ ) ;; Load the rest of the Scheme side. -;; data-directory is provided by the C code. - -(add-to-load-path - (string-append (data-directory) file-name-separator-string "guile")) (use-modules ((gdb init))) diff --git a/gdb/guile/lib/gdb/boot.scm b/gdb/guile/lib/gdb/boot.scm index cf7d305..8c0bb35 100644 --- a/gdb/guile/lib/gdb/boot.scm +++ b/gdb/guile/lib/gdb/boot.scm @@ -21,10 +21,9 @@ ;; loaded with it are not compiled. So we do very little here, and do ;; most of the initialization elsewhere. -;; data-directory is provided by the C code. -(load (string-append - (data-directory) file-name-separator-string "guile" - file-name-separator-string "gdb.scm")) +;; guile-data-directory is provided by the C code. +(add-to-load-path (guile-data-directory)) +(load-from-path "gdb.scm") ;; Now that the Scheme side support is loaded, initialize it. (let ((init-proc (@@ (gdb init) %initialize!))) diff --git a/gdb/guile/lib/gdb/init.scm b/gdb/guile/lib/gdb/init.scm index 1e90790..7607d49 100644 --- a/gdb/guile/lib/gdb/init.scm +++ b/gdb/guile/lib/gdb/init.scm @@ -155,9 +155,6 @@ ;; GDB+Guile. (define (%initialize!) - (add-to-load-path (string-append (data-directory) - file-name-separator-string "guile")) - (for-each (lambda (key) (set-exception-printer! key %exception-printer)) %exception-keys) |