]> code.delx.au - gnu-emacs-elpa/blobdiff - realgud/debugger/trepan/core.el
DRY/fix debugger invocation code. This time, mostly for remake and gdb
[gnu-emacs-elpa] / realgud / debugger / trepan / core.el
index 3d51ab538431dbf954b98426c623cb6a17fda1ad..b843cc0df67ce7c9edd8436990d03e107a2e4b12 100644 (file)
@@ -129,6 +129,12 @@ Note that the script name path has been expanded via `expand-file-name'.
            ((string-match "^--annotate=[0-9]" arg)
             (nconc debugger-args (list (pop args)) )
             (setq annotate-p t))
+          ;; path-argument options
+          ((member arg '("--include" "-I" "--require" "-I"))
+           (setq arg (pop args))
+           (nconc debugger-args
+                  (list arg (realgud:expand-file-name-if-exists
+                             (pop args)))))
            ;; Options with arguments.
            ((string-match "^-" arg)
             (setq pair (realgud-parse-command-arg