Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH 3/4] Update otool completion





On Mon, Aug 28, 2023 at 11:28 AM Jun T <takimoto-j@xxxxxxxxxxxxxxxxx> wrote:

> 2023/08/27 16:04、Shohei Yoshida <syohex@xxxxxxxxx>のメール:
>
> attached updated version.

Thanks, but the patch is sent only to me.
Could you please send it to the zsh-workers?

Sorry I made a mistake. I send the same patch again to zsh-workers
 
--
Shohei YOSHIDA(syohex@xxxxxxxxx)
From e418cc9111ac6cffbbd3193f9f5ee53af0a086ce Mon Sep 17 00:00:00 2001
From: Shohei YOSHIDA <syohex@xxxxxxxxx>
Date: Sun, 27 Aug 2023 16:03:41 +0900
Subject: [PATCH] Update otool completion

- Add new option completions
- Update the archtecture list
---
 Completion/Darwin/Command/_otool | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/Completion/Darwin/Command/_otool b/Completion/Darwin/Command/_otool
index c3fc70b91..e0367945c 100644
--- a/Completion/Darwin/Command/_otool
+++ b/Completion/Darwin/Command/_otool
@@ -13,6 +13,7 @@ _arguments \
   '-D[display just the internal name of shared lib]' \
   '-s[display the contents of the specified section]:segment name: :section name: ' \
   '-t[display the contents of (__TEXT,__text) section]' \
+  '-x[display the content of every __text section found in the file]' \
   '-d[display the contents of (__DATA,__data) section]' \
   '-o[display the contents of __OBJC segment]' \
   '-r[display the relocation entries]' \
@@ -25,6 +26,9 @@ _arguments \
   '-G[display the data in code table]' \
   '-C[display the linker optimization hints]' \
   '-P[print the info_plist section as strings]' \
+  '-dyld_info[print bind and rebase information used by dyld]' \
+  '-dyld_opcodes[print raw dyld bind and rebase opcodes present in a final linked binary]' \
+  '-chained_fixups[print raw chained fixup data present in a final linked binary]' \
   '-p[with -t and -v/V: start disassembly from the specified symbol]:symbol name: ' \
   '-v[display verbosely (symbolically) when possible]' \
   '-V[display disassembled operands symbolically]' \
@@ -34,7 +38,8 @@ _arguments \
   '-function_offsets[with disassembly, print decimal offset from the last label]' \
   '-j[with disassembly, print opcode bytes]' \
   "-Q[use otool's disassembler]" \
-  '-arch[select the specified architecture from a universal file]:arch:(i386 x86_64)' \
+  '-addr_slide=[add an arbitrary slide to each pointer value when it is displayed]:slide size' \
+  '-arch[select the specified architecture from a universal file]:arch:(i386 x86_64 x86_64h arm64 arm64e)' \
   '-m[object file names are not assumed to be in archive(member) syntax]' \
   '(- *)--version[print version of otool]' \
   '*:file:_object_files' && return 0
-- 
2.42.0



Messages sorted by: Reverse Date, Date, Thread, Author