From: Lars Ingebrigtsen Date: Tue, 14 Jun 2022 12:26:58 +0000 (+0200) Subject: Fix gud parsing of empty jdb classpaths X-Git-Tag: emacs-29.0.90~1910^2~10 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bea90d8de27e673a039a71e15a08bcb0cb6f7011;p=emacs.git Fix gud parsing of empty jdb classpaths * lisp/progmodes/gud.el (gud-jdb-marker-filter): Parse empty classpaths (like classpath: []) correctly (bug#55957). --- 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 ;; 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