[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/realgud-lldb 40d36fb 47/56: Regexps for breakpoint buff
From: |
Rocky Bernstein |
Subject: |
[elpa] externals/realgud-lldb 40d36fb 47/56: Regexps for breakpoint buffer. Small tweaks |
Date: |
Thu, 23 May 2019 02:11:47 -0400 (EDT) |
branch: externals/realgud-lldb
commit 40d36fba85165d4c1ac086938112d5c11d72da85
Author: rocky <address@hidden>
Commit: rocky <address@hidden>
Regexps for breakpoint buffer. Small tweaks
---
lldb/init.el | 72 +++++++++++++++++++++++++++++++++++++++++-------------------
1 file changed, 49 insertions(+), 23 deletions(-)
diff --git a/lldb/init.el b/lldb/init.el
index 86a5b06..990f144 100644
--- a/lldb/init.el
+++ b/lldb/init.el
@@ -129,6 +129,21 @@ realgud-loc-pat struct")
:column-group 4)
)
+;; FIXME breakpoints aren't locations. It should be a different structure
+;; Regular expression that describes a gdb "info breakpoint" line
+;; For example:
+;; 1: name = 'main', locations = 1, resolved = 1, hit count = 1
+;; 1.1: where = solc`main + 48 at main.cpp:55:2, address =
0x000000010004a5e0, resolved, hit count = 1
+(setf (gethash "debugger-breakpoint" realgud:lldb-pat-hash)
+ (make-realgud-loc-pat
+ :regexp (format "^[ \t]*\\([0-9.]\\)+: where = .* at \\(.+\\):%s:%s"
+ realgud:regexp-captured-num realgud:regexp-captured-num)
+ :num 1
+ :file-group 2
+ :line-group 3
+ :column-group 4)
+ )
+
(setf (gethash "font-lock-keywords" realgud:lldb-pat-hash)
'(
;; #2 0x080593ac in main (argc=2, argv=0xbffff5a4, envp=0xbffff5b0)
@@ -144,6 +159,17 @@ realgud-loc-pat struct")
(1 realgud-backtrace-number-face))
))
+(setf (gethash "font-lock-breakpoint-keywords" realgud:gdb-pat-hash)
+ '(
+ ;; The breakpoint number, type and disposition
+ ;; 1.1: where =
+ ;; ^^^
+ ((format " at \\(.+\\):%s:%s"
+ realgud:regexp-captured-num realgud:regexp-captured-num)
+ (1 realgud-file-name-face)
+ (2 realgud-line-number-face))
+ ))
+
;; Prefix used in variable names (e.g. short-key-mode-map) for
;; this debugger
(setf (gethash "lldb" realgud:variable-basename-hash) "realgud:lldb")
@@ -152,29 +178,29 @@ realgud-loc-pat struct")
"Hash key is command name like 'continue' and the value is
the lldb command to use, like 'process continue'")
-(setf (gethash "backtrace" realgud:lldb-command-hash) "bt")
-(setf (gethash "break" realgud:lldb-command-hash) "b %X:%l")
-(setf (gethash "lldb-break" realgud:lldb-command-hash) "b %X:%l")
-(setf (gethash "delete" realgud:lldb-command-hash) "break delete %p")
-(setf (gethash "clear" realgud:lldb-command-hash) "break clear
%X:%l")
-(setf (gethash "continue" realgud:lldb-command-hash) "process continue")
-(setf (gethash "delete" realgud:lldb-command-hash)
"*not-implemented*") ;; Or rather don't know what the equvalent is
-(setf (gethash "delete_all" realgud:lldb-command-hash)
"*not-implemented*")
-(setf (gethash "disable" realgud:lldb-command-hash) "break disable %p")
-(setf (gethash "disable_all" realgud:lldb-command-hash) "break disable")
-(setf (gethash "down" realgud:lldb-command-hash) "down %p")
-(setf (gethash "enable" realgud:lldb-command-hash) "break enable %p")
-(setf (gethash "enable_all" realgud:lldb-command-hash) "break enable")
-(setf (gethash "eval" realgud:lldb-command-hash) "print %s")
-(setf (gethash "finish" realgud:lldb-command-hash) "thread step-out")
-(setf (gethash "frame" realgud:lldb-command-hash) "frame select %p")
-(setf (gethash "info-breakponts" realgud:lldb-command-hash) "break list")
-(setf (gethash "quit" realgud:lldb-command-hash) "quit")
-(setf (gethash "restart" realgud:lldb-command-hash) "run")
-(setf (gethash "step" realgud:lldb-command-hash) "thread step-in
--count %p")
-(setf (gethash "shell" realgud:lldb-command-hash) "platform shell
%s")
-(setf (gethash "until" realgud:lldb-command-hash) "thread until %l")
-(setf (gethash "up" realgud:lldb-command-hash) "up %p")
+(setf (gethash "backtrace" realgud:lldb-command-hash) "bt")
+(setf (gethash "break" realgud:lldb-command-hash) "b %X:%l")
+(setf (gethash "lldb-break" realgud:lldb-command-hash) "b %X:%l")
+(setf (gethash "delete" realgud:lldb-command-hash) "break delete %p")
+(setf (gethash "clear" realgud:lldb-command-hash) "break clear
%X:%l")
+(setf (gethash "continue" realgud:lldb-command-hash) "process
continue")
+(setf (gethash "delete" realgud:lldb-command-hash)
"*not-implemented*") ;; Or rather don't know what the equvalent is
+(setf (gethash "delete_all" realgud:lldb-command-hash)
"*not-implemented*")
+(setf (gethash "disable" realgud:lldb-command-hash) "break disable
%p")
+(setf (gethash "disable-all" realgud:lldb-command-hash) "break disable")
+(setf (gethash "down" realgud:lldb-command-hash) "down %p")
+(setf (gethash "enable" realgud:lldb-command-hash) "break enable %p")
+(setf (gethash "enable-all" realgud:lldb-command-hash) "break enable")
+(setf (gethash "eval" realgud:lldb-command-hash) "print %s")
+(setf (gethash "finish" realgud:lldb-command-hash) "thread step-out")
+(setf (gethash "frame" realgud:lldb-command-hash) "frame select %p")
+(setf (gethash "info-breakpoints" realgud:lldb-command-hash) "break list")
+(setf (gethash "quit" realgud:lldb-command-hash) "quit")
+(setf (gethash "restart" realgud:lldb-command-hash) "run")
+(setf (gethash "step" realgud:lldb-command-hash) "thread step-in
--count %p")
+(setf (gethash "shell" realgud:lldb-command-hash) "platform shell
%s")
+(setf (gethash "until" realgud:lldb-command-hash) "thread until %l")
+(setf (gethash "up" realgud:lldb-command-hash) "up %p")
(setf (gethash "lldb" realgud-command-hash) realgud:lldb-command-hash)
(setf (gethash "lldb" realgud-pat-hash) realgud:lldb-pat-hash)
- [elpa] externals/realgud-lldb f35ace0 33/56: Small changes, (continued)
- [elpa] externals/realgud-lldb f35ace0 33/56: Small changes, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb 8132538 06/56: Lots of fixups, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb b78e0ae 10/56: Doc corrections, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb 512717d 37/56: Merge pull request #4 from danielmartin/add-until-command, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb c4918cb 34/56: Was using gdb regexp pats not lldb's, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb d6e9b70 29/56: Merge pull request #3 from realgud/DanSchoppe-fix, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb bf07222 42/56: Need to use b %X:%l not "break set name -l number, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb 93cfd7d 26/56: Merge branch 'master' of github.com:realgud/realgud-lldb, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb 84d3c0e 53/56: Small package-lint thing, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb 7fdc224 44/56: Fill in realgud cmds, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb 40d36fb 47/56: Regexps for breakpoint buffer. Small tweaks,
Rocky Bernstein <=
- [elpa] externals/realgud-lldb b8c652c 55/56: Administrivia:, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb 634eb8e 41/56: Add enable/disable, and backtrace commands, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb 8adce8d 24/56: Make sure we load lldb, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb 98bcbe4 54/56: Small tweak, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb 4bfd53a 49/56: Emacs lint in preparation for Melpa release, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb dd1d4df 27/56: common.mk.in: avoid having to set ELCFLAGS, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb 8faf094 01/56: 1st cut at an external lldb plugin for realgud., Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb 55b33c7 43/56: Correct some function-call parameters, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb bda33d6 39/56: Bang on breakpoint locations, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb 8612d54 40/56: A number of fixes -, Rocky Bernstein, 2019/05/23