]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix gud parsing of empty jdb classpaths
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 14 Jun 2022 12:26:58 +0000 (14:26 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 14 Jun 2022 12:26:58 +0000 (14:26 +0200)
* lisp/progmodes/gud.el (gud-jdb-marker-filter): Parse empty
classpaths (like classpath: []) correctly (bug#55957).

lisp/progmodes/gud.el

index 213ebef92f570ce9c98f9f19b53afa8127e5e686..26fecf9c9f173e30342aa89574ebb289565ac44e 100644 (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