branch: externals/beardbolt
commit fffadc0b865a58fd8eee00f03ed55b9ae5b78e08
Author: Jay Kamat <[email protected]>
Commit: Jay Kamat <[email protected]>
Allow configuring objdump binary in disassembly mode
Closes #24
---
rmsbolt.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/rmsbolt.el b/rmsbolt.el
index 69cd577ec5..40021a8e13 100644
--- a/rmsbolt.el
+++ b/rmsbolt.el
@@ -247,6 +247,10 @@ Useful for determining if the user overrode things like
`rmsbolt-command'.
This list of variables will automatically be restored to nil.")
+(defvar-local rmsbolt-objdump-binary "objdump"
+ "A binary to use for objdumping when using `rmsbolt-disassemble'.
+Useful if you have multiple objdumpers and want to select between them")
+
;;;; Variable-like funcs
(defun rmsbolt-output-filename (src-buffer &optional asm)
"Function for generating an output filename for SRC-BUFFER.
@@ -1488,7 +1492,7 @@ Are you running two compilations at the same time?"))
(mapconcat #'identity
(list cmd
"&&"
- "objdump" "-d" (rmsbolt-output-filename
src-buffer)
+ rmsbolt-objdump-binary "-d"
(rmsbolt-output-filename src-buffer)
"-C" "--insn-width=16" "-l"
(when (not (booleanp asm-format))
(concat "-M " asm-format))