Search Results
7/19/2025, 5:34:59 PM
>>105954385
>> AT&T Syntax
>Can't have everything
disassemble-internal contains:
(call-process "objdump" nil (current-buffer) t "-S"
(native-comp-unit-file (subr-native-comp-unit obj)))
where we want to inject "-Mintel" to emit intel instead of at&t syntax, we could in theory use:
(defun emit-intel (f &rest x)
(cl-flet ((call-process (a b c d e f)
(call-process a b c d "-Mintel" e f)))
(apply f x)))
(advice-add #'disassemble-internal :around #'emit-intel)
but unfortunately disassemble-internal is compiled so can't be advised this way, you can however copy disassemble-internal with "-Mintel" included and it works
>> AT&T Syntax
>Can't have everything
disassemble-internal contains:
(call-process "objdump" nil (current-buffer) t "-S"
(native-comp-unit-file (subr-native-comp-unit obj)))
where we want to inject "-Mintel" to emit intel instead of at&t syntax, we could in theory use:
(defun emit-intel (f &rest x)
(cl-flet ((call-process (a b c d e f)
(call-process a b c d "-Mintel" e f)))
(apply f x)))
(advice-add #'disassemble-internal :around #'emit-intel)
but unfortunately disassemble-internal is compiled so can't be advised this way, you can however copy disassemble-internal with "-Mintel" included and it works
Page 1