Add a man page for udcli
This commit is contained in:
parent
6d92587d11
commit
5b41896f53
|
|
@ -2,7 +2,8 @@ Source: udis86
|
||||||
Section: misc
|
Section: misc
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: Alan M Varghese (NyxTrail) <alan@digistorm.in>
|
Maintainer: Alan M Varghese (NyxTrail) <alan@digistorm.in>
|
||||||
Build-Depends: debhelper-compat (= 13)
|
Build-Depends: debhelper-compat (= 13),
|
||||||
|
pandoc
|
||||||
Standards-Version: 4.6.2
|
Standards-Version: 4.6.2
|
||||||
Homepage: https://github.com/canihavesomecoffee/udis86
|
Homepage: https://github.com/canihavesomecoffee/udis86
|
||||||
Rules-Requires-Root: no
|
Rules-Requires-Root: no
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
usr/share/doc
|
usr/share/doc/udis86
|
||||||
|
|
|
||||||
|
|
@ -12,5 +12,11 @@ override_dh_autoreconf:
|
||||||
dh_autoreconf -- ./autogen.sh
|
dh_autoreconf -- ./autogen.sh
|
||||||
override_dh_auto_configure:
|
override_dh_auto_configure:
|
||||||
dh_auto_configure -- --with-python=/usr/bin/python3
|
dh_auto_configure -- --with-python=/usr/bin/python3
|
||||||
#override_dh_install:
|
override_dh_auto_install:
|
||||||
# dh_install --list-missing -X.la -X.pyc -X.pyo
|
mkdir -p debian/tmp/usr/share/doc/udcli
|
||||||
|
pandoc debian/udcli.1.rst --standalone \
|
||||||
|
--variable=header:"udcli User Manual" \
|
||||||
|
--variable=section:1 \
|
||||||
|
--from rst \
|
||||||
|
--to man > debian/tmp/usr/share/doc/udcli/udcli.1
|
||||||
|
dh_auto_install
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,89 @@
|
||||||
|
:title: udcli
|
||||||
|
|
||||||
|
NAME
|
||||||
|
====
|
||||||
|
udcli - A CLI tool for quick disassembly of x86 and x86-64 class instruction set architectures.
|
||||||
|
|
||||||
|
SYNOPSIS
|
||||||
|
========
|
||||||
|
**udcli** [-option(s)] file
|
||||||
|
|
||||||
|
DESCRIPTION
|
||||||
|
===========
|
||||||
|
**udcli** is a CLI front-end to the Udis86 Disassembler library.
|
||||||
|
|
||||||
|
OPTIONS
|
||||||
|
=======
|
||||||
|
**-16**
|
||||||
|
Set the disassembly mode to 16 bits.
|
||||||
|
|
||||||
|
**-32**
|
||||||
|
Set the disassembly mode to 32 bits. (default)
|
||||||
|
|
||||||
|
**-64**
|
||||||
|
Set the disassembly mode to 64 bits.
|
||||||
|
|
||||||
|
**-intel**
|
||||||
|
Set the output to INTEL (NASM like) syntax. (default)
|
||||||
|
|
||||||
|
**-att**
|
||||||
|
Set the output to AT&T (GAS like) syntax.
|
||||||
|
|
||||||
|
**-v <v>**
|
||||||
|
Set vendor. <v> = {intel, amd}.
|
||||||
|
|
||||||
|
**-o <pc>**
|
||||||
|
Set the value of the program counter to <pc>. (default = 0)
|
||||||
|
|
||||||
|
**-s <n>**
|
||||||
|
Set the number of bytes to skip before disassembly to <n>.
|
||||||
|
|
||||||
|
**-c <n>**
|
||||||
|
Set the number of bytes to disassemble to <n>.
|
||||||
|
|
||||||
|
**-x**
|
||||||
|
Set the input mode to whitespace separated 8-bit numbers in hexadecimal
|
||||||
|
representation.
|
||||||
|
Example: 0f 01 ae 00
|
||||||
|
|
||||||
|
**-noff**
|
||||||
|
Do not display the offset of instructions.
|
||||||
|
|
||||||
|
**-nohex**
|
||||||
|
Do not display the hexadecimal code of instructions.
|
||||||
|
|
||||||
|
**-eflags**
|
||||||
|
Display information on EFLAGS register.
|
||||||
|
|
||||||
|
**-access**
|
||||||
|
Display access information on operand.
|
||||||
|
|
||||||
|
**-implicit**
|
||||||
|
Display implicit registers used or modified by the instruction.
|
||||||
|
|
||||||
|
**-h**
|
||||||
|
Display this help message.
|
||||||
|
|
||||||
|
**--version**
|
||||||
|
Show version
|
||||||
|
|
||||||
|
Example
|
||||||
|
=======
|
||||||
|
Usage example::
|
||||||
|
|
||||||
|
echo "65 67 89 87 76 65 54 56 78 89 09 00 90" | udcli -32 -x
|
||||||
|
|
||||||
|
will result in output such as this::
|
||||||
|
|
||||||
|
0000000080000800 656789877665 mov [gs:bx+0x6576], eax
|
||||||
|
0000000080000806 54 push esp
|
||||||
|
0000000080000807 56 push esi
|
||||||
|
0000000080000808 7889 js 0x80000793
|
||||||
|
000000008000080a 0900 or [eax], eax
|
||||||
|
000000008000080c 90 nop
|
||||||
|
|
||||||
|
Author
|
||||||
|
======
|
||||||
|
This version of Udis86 is based on a fork of the original project of the same name by
|
||||||
|
`Willem (canihavesomecoffee) <https://github.com/canihavesomecoffee>`_. Udis86 was
|
||||||
|
originally written by `Vivek Thampi<https://github.com/vmt/>`_.
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
usr/share/doc/udcli/udcli.1
|
||||||
Loading…
Reference in New Issue