Fix gud parsing of empty jdb classpaths

* lisp/progmodes/gud.el (gud-jdb-marker-filter): Parse empty
classpaths (like classpath: []) correctly (bug#55957).
This commit is contained in:
Lars Ingebrigtsen 2022-06-14 14:26:58 +02:00
parent 3e74cf6516
commit bea90d8de2

View file

@ -2460,7 +2460,7 @@ during jdb initialization depending on the value of
;; not supported/followed)
(if (and gud-jdb-use-classpath
(not gud-jdb-classpath-string)
(or (string-match "classpath:[ \t[]+\\([^]]+\\)" gud-marker-acc)
(or (string-match "classpath:[ \t[]+\\([^]]*\\)" gud-marker-acc)
(string-match "-classpath[ \t\"]+\\([^ \"]+\\)" gud-marker-acc)))
(setq gud-jdb-classpath
(gud-jdb-parse-classpath-string