[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/realgud-lldb 17cac00 09/56: bang on location regexps
From: |
Rocky Bernstein |
Subject: |
[elpa] externals/realgud-lldb 17cac00 09/56: bang on location regexps |
Date: |
Thu, 23 May 2019 02:11:37 -0400 (EDT) |
branch: externals/realgud-lldb
commit 17cac00a14fd419daf58262375dcb7bca19c033e
Author: rocky <address@hidden>
Commit: rocky <address@hidden>
bang on location regexps
---
INSTALL | 4 ++++
lldb/init.el | 17 +++++++++--------
lldb/lldb.el | 2 ++
3 files changed, 15 insertions(+), 8 deletions(-)
diff --git a/INSTALL b/INSTALL
index d94829e..ccd926e 100644
--- a/INSTALL
+++ b/INSTALL
@@ -1 +1,5 @@
+Have realgud installed.
+From inside emacs, evaluate:
+
+ (compile (format "EMACSLOADPATH=:%s:%s ./autogen.sh" (file-name-directory
(locate-library "test-simple.elc")) (file-name-directory (locate-library
"realgud.elc"))))
bash ./autogen.sh
diff --git a/lldb/init.el b/lldb/init.el
index c37933d..1c51700 100644
--- a/lldb/init.el
+++ b/lldb/init.el
@@ -36,23 +36,24 @@ realgud-loc-pat struct")
"\\(?:^\\|\n\\)")
(defconst realgud:lldb-frame-num-regexp
- (format "#%s " realgud:regexp-captured-num))
+ (format "[ ]*frame #%s: " realgud:regexp-captured-num))
;; Regular expression that describes a lldb location generally shown
;; before a command prompt.
;; For example:
;; * thread #1: tid = 12866, 0x00000000004004b4 hello`main(argc=1,
argv=0x00007fffffffd668) + 4 at hello.c:5, name = 'hello', stop reason =
breakpoint 1.1
-;; (setf (gethash "loc" realgud:lldb-pat-hash)
-;; (make-realgud-loc-pat
-;; :regexp (format "^\\* thread #%s: .+ at %s, "
-;; realgud:regexp-captured-num
realgud:lldb-frame-file-regexp)
-;; :file-group 2
-;; :line-group 3))
(setf (gethash "loc" realgud:lldb-pat-hash)
(make-realgud-loc-pat
+ :regexp (format "^\\* thread #%s: .+ at %s, "
+ realgud:regexp-captured-num
realgud:lldb-frame-file-regexp)
+ :file-group 2
+ :line-group 3))
+
+(setf (gethash "selected-frame" realgud:lldb-pat-hash)
+ (make-realgud-loc-pat
:regexp (concat "^" realgud:lldb-frame-start-regexp
realgud:lldb-frame-num-regexp
- "\\(?:.\\|\\(?:[\n] \\)\\)+[ ]+at "
+ ".*[ ]+at "
realgud:lldb-frame-file-regexp
)
:num 1
diff --git a/lldb/lldb.el b/lldb/lldb.el
index 22891f6..b7b648d 100644
--- a/lldb/lldb.el
+++ b/lldb/lldb.el
@@ -16,6 +16,8 @@
;; `realgud:lldb' Main interface to lldb via Emacs
(require 'cl)
(require 'load-relative)
+(require 'realgud)
+(require-relative-list '("core" "track-mode") "realgud:lldb-")
;; This is needed, or at least the docstring part of it is needed to
;; get the customization menu to work in Emacs 24.
- [elpa] externals/realgud-lldb 805ef5b 11/56: More lldb loc hacking, (continued)
- [elpa] externals/realgud-lldb 805ef5b 11/56: More lldb loc hacking, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb 477fa68 13/56: Markdown INSTALL. Remove require 'cl, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb bc90a4f 30/56: Correct "make install", Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb d1ad104 32/56: remake doc comment correction, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb 6025a38 14/56: Some small typos/omissions, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb c8f80dd 15/56: Add check-short filter, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb 0f00728 18/56: Merge branch 'master' of github.com:realgud/realgud-lldb, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb 25fa790 36/56: Add until command, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb ad6f3a3 21/56: Con't need cl-lib (yet)., Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb b26a09b 16/56: Fix up packaging, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb 17cac00 09/56: bang on location regexps,
Rocky Bernstein <=
- [elpa] externals/realgud-lldb 2b329f9 22/56: Hack to use "global" to resolve names., Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb caed6ef 25/56: file remapping is buffer local, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb 22536f6 35/56: Fix typo, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb f995954 23/56: wrong name, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb 43e1399 38/56: correct realgud:lldb-file-remap initialization, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb 006bda2 20/56: Update INSTALL.md, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb 386588a 17/56: Fix up packaging, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-lldb 2e397f0 31/56: typo, Rocky Bernstein, 2019/05/23
- [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