diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2026-02-19 10:37:50 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2026-02-27 23:54:00 +0100 |
| commit | 1892626390bac09f8942519c20cae4ace1758275 (patch) | |
| tree | 25b99c77687deddf1b434452fa6941b972e7f2ed /gnu/system | |
| parent | d16dcad88525f0cdd55c4b7313f3ba2202ea6ba8 (diff) | |
system: gdbinit: Fix default ‘debug-file-directory’ for user profiles.
This fixes a bug whereby ‘file-exists?’ would be called on tilde-prefixed
directory names before tilde expansion has taken place. As a result,
~/.guix-profile and ~/.guix-home/profile would never be included in
‘debug-file-directory’.
* gnu/system/shadow.scm (%default-gdbinit): Remove call to ‘file-exists?’.
Change-Id: I3a6bf1fec6bfbf208679d030dd6b380b9c6a4789
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/system')
| -rw-r--r-- | gnu/system/shadow.scm | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gnu/system/shadow.scm b/gnu/system/shadow.scm index 6cb1a23253f..aa7aec782fa 100644 --- a/gnu/system/shadow.scm +++ b/gnu/system/shadow.scm | |||
| @@ -216,14 +216,14 @@ guile | |||
| 216 | (use-modules (gdb)) | 216 | (use-modules (gdb)) |
| 217 | (execute (string-append \"set debug-file-directory \" | 217 | (execute (string-append \"set debug-file-directory \" |
| 218 | (string-join | 218 | (string-join |
| 219 | (filter file-exists? | 219 | (append |
| 220 | (append | 220 | (if (getenv \"GDB_DEBUG_FILE_DIRECTORY\") |
| 221 | (if (getenv \"GDB_DEBUG_FILE_DIRECTORY\") | 221 | (list (getenv \"GDB_DEBUG_FILE_DIRECTORY\")) |
| 222 | (list (getenv \"GDB_DEBUG_FILE_DIRECTORY\")) | 222 | '()) |
| 223 | '()) | 223 | ;; Note: GDB performs tilde expansion. |
| 224 | (list \"~/.guix-home/profile/lib/debug\" | 224 | (list \"~/.guix-home/profile/lib/debug\" |
| 225 | \"~/.guix-profile/lib/debug\" | 225 | \"~/.guix-profile/lib/debug\" |
| 226 | \"/run/current-system/profile/lib/debug\"))) | 226 | \"/run/current-system/profile/lib/debug\")) |
| 227 | \":\"))) | 227 | \":\"))) |
| 228 | end | 228 | end |
| 229 | 229 | ||
