aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2022-06-14 14:26:58 +0200
committerLars Ingebrigtsen2022-06-14 14:26:58 +0200
commitbea90d8de27e673a039a71e15a08bcb0cb6f7011 (patch)
tree8b597ddd5417d239c2a11c674aba521a58b5bb6e
parent3e74cf65161841ee4a0a584fdbba8958372753f9 (diff)
downloademacs-bea90d8de27e673a039a71e15a08bcb0cb6f7011.tar.gz
emacs-bea90d8de27e673a039a71e15a08bcb0cb6f7011.zip
Fix gud parsing of empty jdb classpaths
* lisp/progmodes/gud.el (gud-jdb-marker-filter): Parse empty classpaths (like classpath: []) correctly (bug#55957).
-rw-r--r--lisp/progmodes/gud.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index 213ebef92f5..26fecf9c9f1 100644
--- a/lisp/progmodes/gud.el
+++ b/lisp/progmodes/gud.el
@@ -2460,7 +2460,7 @@ during jdb initialization depending on the value of
2460 ;; not supported/followed) 2460 ;; not supported/followed)
2461 (if (and gud-jdb-use-classpath 2461 (if (and gud-jdb-use-classpath
2462 (not gud-jdb-classpath-string) 2462 (not gud-jdb-classpath-string)
2463 (or (string-match "classpath:[ \t[]+\\([^]]+\\)" gud-marker-acc) 2463 (or (string-match "classpath:[ \t[]+\\([^]]*\\)" gud-marker-acc)
2464 (string-match "-classpath[ \t\"]+\\([^ \"]+\\)" gud-marker-acc))) 2464 (string-match "-classpath[ \t\"]+\\([^ \"]+\\)" gud-marker-acc)))
2465 (setq gud-jdb-classpath 2465 (setq gud-jdb-classpath
2466 (gud-jdb-parse-classpath-string 2466 (gud-jdb-parse-classpath-string