[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/beardbolt aea0966e9d 035/323: Don't add binary asm line
From: |
ELPA Syncer |
Subject: |
[elpa] externals/beardbolt aea0966e9d 035/323: Don't add binary asm line data when viewing different files |
Date: |
Thu, 9 Mar 2023 10:57:58 -0500 (EST) |
branch: externals/beardbolt
commit aea0966e9d474828af3a4b35756d9f5629b9ab33
Author: Jay Kamat <jaygkamat@gmail.com>
Commit: Jay Kamat <jaygkamat@gmail.com>
Don't add binary asm line data when viewing different files
---
rmsbolt.el | 25 ++++++++++++++++++-------
1 file changed, 18 insertions(+), 7 deletions(-)
diff --git a/rmsbolt.el b/rmsbolt.el
index 827b7403cc..286f445270 100644
--- a/rmsbolt.el
+++ b/rmsbolt.el
@@ -278,10 +278,14 @@ Needed as ocaml cannot output asm to a non-hardcoded file"
eol))
(defvar rmsbolt--hidden-func-ocaml)
(setq rmsbolt--hidden-func-ocaml (rx bol
- (or
- (and "camlCamlinternalFormat__" (0+ any))
- ;; (0+ any)
- )
+ (or (and "__" (0+ any))
+ (and "_" (or "init" "start" "fini"))
+ (and (opt "de") "register_tm_clones")
+ "call_gmon_start"
+ "frame_dummy"
+ (and ".plt" (0+ any))
+ (and "camlCamlinternalFormat__" (0+
any))
+ (and (1+ (not (any "@"))) "@plt"))
eol))
;;;; Language Definitions
(defvar rmsbolt-languages)
@@ -313,6 +317,7 @@ Needed as ocaml cannot output asm to a non-hardcoded file"
;;;; Macros
(defmacro rmsbolt-with-display-buffer-no-window (&rest body)
+ "Run BODY without displaying any window."
;; See http://debbugs.gnu.org/13594
`(let ((display-buffer-overriding-action
(if rmsbolt-hide-compile
@@ -352,7 +357,7 @@ Needed as ocaml cannot output asm to a non-hardcoded file"
(string-match-p rmsbolt-has-opcode line)))))
(defun rmsbolt--find-used-labels (src-buffer asm-lines)
- "Find used labels in asm-lines."
+ "Find used labels in ASM-LINES generated from SRC-BUFFER."
(let ((match nil)
(current-label nil)
(labels-used nil)
@@ -427,7 +432,11 @@ Needed as ocaml cannot output asm to a non-hardcoded file"
(cl-return-from rmsbolt--process-dissasembled-lines
'("Aborting processing due to exceeding the binary limit.")))
(when (string-match rmsbolt-dissas-line line)
- (setq source-linum (string-to-number (match-string 2 line)))
+ ;; Don't add linums from files which we aren't inspecting
+ (if (file-equal-p (buffer-file-name src-buffer)
+ (match-string 1 line))
+ (setq source-linum (string-to-number (match-string 2 line)))
+ (setq source-linum nil))
;; We are just setting a linum, no data here.
(go continue))
@@ -747,7 +756,9 @@ Needed as ocaml cannot output asm to a non-hardcoded file"
src-current-line))
(window (get-buffer-window scroll-buffer)))
(with-selected-window window
- (rmsbolt--goto-line line-scroll))))))
+ (rmsbolt--goto-line line-scroll)
+ ;; If we scrolled, recenter
+ (recenter))))))
(mapc #'delete-overlay rmsbolt-overlays)
(setq rmsbolt-overlays nil))
- [elpa] externals/beardbolt 61ccd7a73e 001/323: Initial commit, (continued)
- [elpa] externals/beardbolt 61ccd7a73e 001/323: Initial commit, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt b6127c7f67 007/323: Fix error when not filtering for labels, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 38649b53f2 018/323: Relicense to affero GPL, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt f04df12d28 011/323: Add config facility for object dumping, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 74b773d370 026/323: Fix crash on quit for real, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt a9e5fbfd7a 028/323: Implement line number parsing for disassembled files, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 3b6bb5bd75 030/323: Add basic overlays to view matched lines, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 5ab75b7f56 014/323: Add stubs for dissasembly, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 0a55783f33 029/323: Add skeleton for font-lock, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 8dcd74b511 031/323: Clean up rmsbolt.c by moving starters into helper files, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt aea0966e9d 035/323: Don't add binary asm line data when viewing different files,
ELPA Syncer <=
- [elpa] externals/beardbolt c066da01c4 052/323: Fix ocaml def, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 83e29706f5 005/323: Work on porting used label finder, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 58c77d90c3 008/323: Add outshine comments, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 1545531849 006/323: Add initial implementation of filter, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt d604adae64 015/323: Add initial functions for processing binary asm, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt e0bc9fc409 013/323: Fix starters, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 93f3cad769 017/323: Use local variables instead of custom parsing, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt ce6511f715 024/323: Fix compiler warnings, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 55c26882cd 025/323: Fix crash on quit, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 6239f41d9d 033/323: Add a goto-match feature for easily traversing matches, ELPA Syncer, 2023/03/09