[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dape 30052d8809 05/10: Fix goto module with remote debu
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dape 30052d8809 05/10: Fix goto module with remote debugging |
Date: |
Sat, 2 Mar 2024 09:57:42 -0500 (EST) |
branch: externals/dape
commit 30052d8809a875c9fae513cd19efd5a189438d71
Author: Daniel Pettersson <daniel@dpettersson.net>
Commit: Daniel Pettersson <daniel@dpettersson.net>
Fix goto module with remote debugging
---
dape.el | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/dape.el b/dape.el
index a7516d6a20..6afdb5c533 100644
--- a/dape.el
+++ b/dape.el
@@ -3381,9 +3381,13 @@ current buffer with CONN config."
(dape--command-at-line dape-info-modules-goto (dape--info-module)
"Goto source."
- (if-let ((path (plist-get dape--info-module :path)))
- (pop-to-buffer (find-file-noselect path))
- (user-error "No path associated with module")))
+ (let ((conn (dape--live-connection 'last t))
+ (source (list :source dape--info-module)))
+ (dape--with-request (dape--source-ensure conn source)
+ (if-let ((marker
+ (dape--object-to-marker conn source)))
+ (pop-to-buffer (marker-buffer marker))
+ (user-error "Unable to open module")))))
(dape--buffer-map dape-info-module-line-map dape-info-modules-goto)
- [elpa] externals/dape updated (8700a65313 -> 9897d847ad), ELPA Syncer, 2024/03/02
- [elpa] externals/dape a9108ce394 01/10: Rework dape--path get connection instead of inferring, ELPA Syncer, 2024/03/02
- [elpa] externals/dape 73249cd646 04/10: Remove gdb disclaimer, ELPA Syncer, 2024/03/02
- [elpa] externals/dape 30052d8809 05/10: Fix goto module with remote debugging,
ELPA Syncer <=
- [elpa] externals/dape 2255db9b53 02/10: Clarify usage of `dape--guess-root', ELPA Syncer, 2024/03/02
- [elpa] externals/dape 2eb7a80a3e 06/10: Fix documentation error in `dape-info-modules-goto', ELPA Syncer, 2024/03/02
- [elpa] externals/dape 72e969d0c4 08/10: Improve `dape-configs' prefix-* documentation, ELPA Syncer, 2024/03/02
- [elpa] externals/dape b1a32296c4 03/10: Harden `dape--source-ensure', ELPA Syncer, 2024/03/02
- [elpa] externals/dape 9897d847ad 10/10: Document `command-cwd' default value, ELPA Syncer, 2024/03/02
- [elpa] externals/dape eeb3801b5e 07/10: Add gdb section in readme, ELPA Syncer, 2024/03/02
- [elpa] externals/dape 2b3b45e979 09/10: Add todo for `dape-config-tramp', ELPA Syncer, 2024/03/02