emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/realgud 0ea8a13 094/140: Track breakpoing deletion


From: Rocky Bernstein
Subject: [elpa] externals/realgud 0ea8a13 094/140: Track breakpoing deletion
Date: Sat, 25 May 2019 19:35:40 -0400 (EDT)

branch: externals/realgud
commit 0ea8a13f11aa8b133889d883688538c8553a1a39
Author: rocky <address@hidden>
Commit: rocky <address@hidden>

    Track breakpoing deletion
---
 realgud/debugger/kshdb/init.el | 73 +++++++++++++++---------------------------
 1 file changed, 26 insertions(+), 47 deletions(-)

diff --git a/realgud/debugger/kshdb/init.el b/realgud/debugger/kshdb/init.el
index 6de3d60..68cb3cf 100644
--- a/realgud/debugger/kshdb/init.el
+++ b/realgud/debugger/kshdb/init.el
@@ -49,21 +49,27 @@ realgud-loc-pat struct")
        :num 1
        ))
 
-;;  Regular expression that describes a "breakpoint set" line
+;;  realgud-loc-pat that describes a "breakpoint set" line
 (setf (gethash "brkpt-set" realgud:kshdb-pat-hash)
-      (make-realgud-loc-pat
-       :regexp "^Breakpoint \\([0-9]+\\) set in file \\(.+\\), line 
\\([0-9]+\\).\n"
-       :num 1
-       :file-group 2
-       :line-group 3))
+      realgud:POSIX-debugger-brkpt-set-pat)
 
-;; Regular expression that describes a debugger "delete" (breakpoint) response.
+;; realgud-loc-pat that describes a debugger "delete" (breakpoint) response.
 ;; For example:
-;;   Removed 1 breakpoint(s).
+;;   Deleted breakpoint 1.
 (setf (gethash "brkpt-del" realgud:kshdb-pat-hash)
-      (make-realgud-loc-pat
-       :regexp "^Removed \\([0-9]+\\) breakpoints(s).\n"
-       :num 1))
+      realgud:POSIX-debugger-brkpt-del-pat)
+
+;; realgud-loc-pat that describes a debugger "disable" (breakpoint) response.
+;; For example:
+;;   Breakpoint entry 4 disabled.
+(setf (gethash "brkpt-disable" realgud:kshdb-pat-hash)
+      realgud:POSIX-debugger-brkpt-disable-pat)
+
+;; realgud-loc-pat that describes a debugger "enable" (breakpoint) response.
+;; For example:
+;;   Breakpoint entry 4 enabled.
+(setf (gethash "brkpt-enable" realgud:kshdb-pat-hash)
+      realgud:POSIX-debugger-brkpt-enable-pat)
 
 ;; Regular expression that describes a debugger "backtrace" command line.
 ;; For example:
@@ -71,59 +77,32 @@ realgud-loc-pat struct")
 ;;   ##1 /etc/apparmor/fns called from file `/etc/init.d/apparmor' at line 35
 ;;   ##2 /etc/init.d/apparmor called from file `/usr/bin/kshdb' at line 129
 (setf (gethash "debugger-backtrace" realgud:kshdb-pat-hash)
-      (make-realgud-loc-pat
-       :regexp         (concat realgud-shell-frame-start-regexp
-                       realgud-shell-frame-num-regexp "[ ]?"
-                       "\\(.*\\)"
-                       realgud-shell-frame-file-regexp
-                       "\\(?:" realgud-shell-frame-line-regexp "\\)?"
-                       )
-       :num 2
-       :file-group 4
-       :line-group 5)
-      )
+      realgud:POSIX-debugger-backtrace-pat)
 
 ;; Regular expression that for a termination message.
 (setf (gethash "termination" realgud:kshdb-pat-hash)
        "^kshdb: That's all, folks...\n")
 
 (setf (gethash "font-lock-keywords" realgud:kshdb-pat-hash)
-      '(
-       ;; The frame number and first type name, if present.
-       ;; E.g. ->0 in file `/etc/init.d/apparmor' at line 35
-       ;;      --^-
-       ("^\\(->\\|##\\)\\([0-9]+\\) "
-        (2 realgud-backtrace-number-face))
-
-       ;; File name.
-       ;; E.g. ->0 in file `/etc/init.d/apparmor' at line 35
-       ;;          ---------^^^^^^^^^^^^^^^^^^^^-
-       ("[ \t]+\\(in\\|from\\) file `\\(.+\\)'"
-        (2 realgud-file-name-face))
-
-       ;; File name.
-       ;; E.g. ->0 in file `/etc/init.d/apparmor' at line 35
-       ;;                                         --------^^
-       ;; Line number.
-       ("[ \t]+at line \\([0-9]+\\)$"
-        (1 realgud-line-number-face))
-       ;; (trepan-frames-match-current-line
-       ;;  (0 trepan-frames-current-frame-face append))
-       ))
+      realgud:POSIX-debugger-font-lock-keywords)
 
 (setf (gethash "kshdb" realgud-pat-hash) realgud:kshdb-pat-hash)
 
+(setf (gethash "kshdb" realgud-command-hash) realgud:kshdb-command-hash)
+
 (defvar realgud:kshdb-command-hash (make-hash-table :test 'equal)
   "hash key is command name like 'quit' and the value is
   the trepan command to use, like 'quit!'")
 
 ;; (setf (gethash "quit" realgud:kshdb-command-hash) "quit!")
 
-(setf (gethash "kshdb" realgud-command-hash) realgud:kshdb-command-hash)
 
 (setf (gethash "clear"  realgud:kshdb-command-hash) "clear %l")
 (setf (gethash "eval"   realgud:kshdb-command-hash) "eval %s")
-(setf (gethash "quit"   realgud:bashdb-command-hash) "quit")
-(setf (gethash "until"  realgud:bashdb-command-hash) "continue %l")
+(setf (gethash "quit"   realgud:kshdb-command-hash) "quit")
+(setf (gethash "until"  realgud:kshdb-command-hash) "continue %l")
+
+;; Unsupported features:
+(setf (gethash "jump"  realgud:bashdb-command-hash) "*not-implemented*")
 
 (provide-me "realgud:kshdb-")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]