Permalink
Browse files

* Initial import of libr

  - Previous commits has been reported in the ChangeLog file
  - hg log has been lost (moved inside ChangeLog)
  - Old radare1 repository has removed all the libr
  • Loading branch information...
radare committed Feb 5, 2009
0 parents commit c5e588e6e5f3367d46d94ce5f4279d5e28ecac1b
Showing with 67,134 additions and 0 deletions.
  1. +1,432 −0 ChangeLog
  2. +5 −0 Makefile
  3. +6 −0 README
  4. +45 −0 libr/Makefile
  5. +20 −0 libr/README
  6. +79 −0 libr/TODO
  7. +50 −0 libr/asm/Makefile
  8. +88 −0 libr/asm/arch/arm/asm.c
  9. +4,186 −0 libr/asm/arch/arm/gnu/arm-dis.c
  10. +64 −0 libr/asm/arch/bf/asm.c
  11. +393 −0 libr/asm/arch/include/ansidecl.h
  12. +5,153 −0 libr/asm/arch/include/bfd.h
  13. +726 −0 libr/asm/arch/include/bfdlink.h
  14. +341 −0 libr/asm/arch/include/dis-asm.h
  15. +2,129 −0 libr/asm/arch/include/elf-bfd.h
  16. +785 −0 libr/asm/arch/include/elf/common.h
  17. +275 −0 libr/asm/arch/include/elf/external.h
  18. +299 −0 libr/asm/arch/include/elf/internal.h
  19. +1,020 −0 libr/asm/arch/include/elf/mips.h
  20. +101 −0 libr/asm/arch/include/elf/reloc-macros.h
  21. +631 −0 libr/asm/arch/include/libiberty.h
  22. +1,066 −0 libr/asm/arch/include/opcode/mips.h
  23. +237 −0 libr/asm/arch/include/opcode/sparc.h
  24. +52 −0 libr/asm/arch/include/opintl.h
  25. +49 −0 libr/asm/arch/include/symcat.h
  26. +42 −0 libr/asm/arch/include/sysdep.h
  27. +91 −0 libr/asm/arch/mips/asm.c
  28. +2,145 −0 libr/asm/arch/mips/gnu/mips-dis.c
  29. +2,018 −0 libr/asm/arch/mips/gnu/mips-opc.c
  30. +244 −0 libr/asm/arch/mips/gnu/mips16-opc.c
  31. +31 −0 libr/asm/arch/ppc/asm.c
  32. +2,524 −0 libr/asm/arch/ppc/ppc_disasm/ppc_disasm.c
  33. +123 −0 libr/asm/arch/ppc/ppc_disasm/ppc_disasm.h
  34. +87 −0 libr/asm/arch/sparc/asm.c
  35. +1,019 −0 libr/asm/arch/sparc/gnu/sparc-dis.c
  36. +2,012 −0 libr/asm/arch/sparc/gnu/sparc-opc.c
  37. +81 −0 libr/asm/arch/x86/asm.c
  38. +882 −0 libr/asm/arch/x86/ollyasm/asmserv.c
  39. +1,417 −0 libr/asm/arch/x86/ollyasm/assembl.c
  40. +1,270 −0 libr/asm/arch/x86/ollyasm/disasm.c
  41. +363 −0 libr/asm/arch/x86/ollyasm/disasm.h
  42. +125 −0 libr/asm/arch/x86/pseudo.c
  43. +127 −0 libr/asm/arch/x86/realloc.c
  44. +22 −0 libr/asm/arch/x86/udis86/LICENSE
  45. +40 −0 libr/asm/arch/x86/udis86/README
  46. +1,193 −0 libr/asm/arch/x86/udis86/decode.c
  47. +275 −0 libr/asm/arch/x86/udis86/decode.h
  48. +67 −0 libr/asm/arch/x86/udis86/extern.h
  49. +226 −0 libr/asm/arch/x86/udis86/input.c
  50. +49 −0 libr/asm/arch/x86/udis86/input.h
  51. +3,668 −0 libr/asm/arch/x86/udis86/itab.c
  52. +719 −0 libr/asm/arch/x86/udis86/itab.h
  53. +211 −0 libr/asm/arch/x86/udis86/syn-att.c
  54. +208 −0 libr/asm/arch/x86/udis86/syn-intel.c
  55. +61 −0 libr/asm/arch/x86/udis86/syn.c
  56. +25 −0 libr/asm/arch/x86/udis86/syn.h
  57. +200 −0 libr/asm/arch/x86/udis86/types.h
  58. +154 −0 libr/asm/arch/x86/udis86/udis86.c
  59. +160 −0 libr/asm/asm.c
  60. +31 −0 libr/asm/t/Makefile
  61. +24 −0 libr/asm/t/asm_x86.c
  62. +31 −0 libr/asm/t/disasm_arm.c
  63. +33 −0 libr/asm/t/disasm_bf.c
  64. +32 −0 libr/asm/t/disasm_mips.c
  65. +32 −0 libr/asm/t/disasm_ppc.c
  66. +32 −0 libr/asm/t/disasm_sparc.c
  67. +39 −0 libr/asm/t/disasm_x86.c
  68. +139 −0 libr/asm/t/rasm2.c
  69. +84 −0 libr/asm/t/realloc_x86.c
  70. +6 −0 libr/bin/Makefile
  71. +535 −0 libr/bin/bin.c
  72. +1,211 −0 libr/bin/elf.c
  73. +4 −0 libr/bin/elf64.c
  74. +839 −0 libr/bin/pe.c
  75. +21 −0 libr/bin/t/Makefile
  76. +30 −0 libr/bin/t/baddr.c
  77. +26 −0 libr/bin/t/data_resize.c
  78. +36 −0 libr/bin/t/entry.c
  79. +48 −0 libr/bin/t/imports.c
  80. +53 −0 libr/bin/t/info.c
  81. +379 −0 libr/bin/t/rabin2.c
  82. +8 −0 libr/bin/t/rsz_test.sh
  83. +51 −0 libr/bin/t/sections.c
  84. +48 −0 libr/bin/t/symbols.c
  85. +4 −0 libr/bp/Makefile
  86. +25 −0 libr/bp/README
  87. +25 −0 libr/bp/bp.c
  88. +4 −0 libr/cmd/Makefile
  89. +3 −0 libr/cmd/TODO
  90. +100 −0 libr/cmd/cmd.c
  91. +7 −0 libr/cmd/t/Makefile
  92. +35 −0 libr/cmd/t/test.c
  93. +6 −0 libr/config.mk
  94. +5 −0 libr/config/Makefile
  95. +63 −0 libr/config/callback.c
  96. +282 −0 libr/config/config.c
  97. +202 −0 libr/config/deprecated.c
  98. +8 −0 libr/config/t/Makefile
  99. +20 −0 libr/config/t/test.c
  100. +5 −0 libr/cons/Makefile
  101. +205 −0 libr/cons/color.c
  102. +581 −0 libr/cons/cons.c
  103. +115 −0 libr/cons/input.c
  104. +66 −0 libr/cons/pipe.c
  105. +285 −0 libr/cons/print.c
  106. +59 −0 libr/cons/strsub.c
  107. +5 −0 libr/cons/t/Makefile
  108. +23 −0 libr/cons/t/hello.c
  109. +5 −0 libr/core/Makefile
  110. +913 −0 libr/core/cmd.c
  111. +311 −0 libr/core/config.c
  112. +163 −0 libr/core/core.c
  113. +67 −0 libr/core/file.c
  114. +88 −0 libr/core/io.c
  115. +60 −0 libr/core/t/Makefile
  116. +76 −0 libr/core/t/radare2.c
  117. +11 −0 libr/core/visual.c
  118. +4 −0 libr/debug/Makefile
  119. +162 −0 libr/debug/debug.c
  120. +30 −0 libr/debug/handle.c
  121. +49 −0 libr/debug/p/ptrace.c
  122. +4 −0 libr/diff/Makefile
  123. +205 −0 libr/diff/diff.c
  124. +10 −0 libr/diff/t/Makefile
  125. +79 −0 libr/diff/t/radiff2.c
  126. +71 −0 libr/diff/t/test.c
  127. +5 −0 libr/flags/Makefile
  128. +129 −0 libr/flags/flags.c
  129. +57 −0 libr/flags/name.c
  130. +1,080 −0 libr/flags/old_flags.c
  131. +66 −0 libr/flags/old_flags.h
  132. +7 −0 libr/hash/Makefile
  133. +64 −0 libr/hash/crc16.c
  134. +46 −0 libr/hash/crc32.c
  135. +6 −0 libr/hash/crc32.h
  136. +98 −0 libr/hash/crca.c
  137. +69 −0 libr/hash/entropy.c
  138. +60 −0 libr/hash/hamdist.c
  139. +76 −0 libr/hash/hash.c
  140. +14 −0 libr/hash/hash.h
  141. +199 −0 libr/hash/md4.c
  142. +79 −0 libr/hash/md5.h
  143. +335 −0 libr/hash/md5c.c
  144. +147 −0 libr/hash/sha1.c
  145. +47 −0 libr/hash/sha1.h
  146. +1,067 −0 libr/hash/sha2.c
  147. +205 −0 libr/hash/sha2.h
  148. +92 −0 libr/hash/state.c
  149. +5 −0 libr/hash/t/Makefile
  150. +69 −0 libr/hash/t/hello.c
  151. +222 −0 libr/include/list.h
  152. +15 −0 libr/include/r.h
  153. +95 −0 libr/include/r_asm.h
  154. +107 −0 libr/include/r_bin.h
  155. +80 −0 libr/include/r_bin_elf.h
  156. +4 −0 libr/include/r_bin_elf64.h
  157. +2,647 −0 libr/include/r_bin_elf_specs.h
  158. +91 −0 libr/include/r_bin_pe.h
  159. +233 −0 libr/include/r_bin_pe_specs.h
  160. +33 −0 libr/include/r_cmd.h
  161. +52 −0 libr/include/r_config.h
  162. +135 −0 libr/include/r_cons.h
  163. +69 −0 libr/include/r_core.h
  164. +55 −0 libr/include/r_debug.h
  165. +36 −0 libr/include/r_diff.h
  166. +40 −0 libr/include/r_flags.h
  167. +84 −0 libr/include/r_hash.h
  168. +124 −0 libr/include/r_io.h
  169. +24 −0 libr/include/r_lang.h
  170. +73 −0 libr/include/r_lib.h
  171. +45 −0 libr/include/r_line.h
  172. +44 −0 libr/include/r_macro.h
  173. +15 −0 libr/include/r_print.h
  174. +40 −0 libr/include/r_range.h
  175. +25 −0 libr/include/r_reg.h
  176. +116 −0 libr/include/r_search.h
  177. +31 −0 libr/include/r_sign.h
  178. +13 −0 libr/include/r_socket.h
  179. +52 −0 libr/include/r_syscall.h
  180. +63 −0 libr/include/r_types.h
  181. +93 −0 libr/include/r_util.h
  182. +125 −0 libr/include/r_vm.h
  183. +5 −0 libr/io/Makefile
  184. +16 −0 libr/io/README
  185. +5 −0 libr/io/desc.c
  186. +109 −0 libr/io/handle.c
  187. +195 −0 libr/io/io.c
  188. +118 −0 libr/io/map.c
  189. +19 −0 libr/io/plugins/Makefile
  190. +1 −0 libr/io/plugins/README
  191. +146 −0 libr/io/plugins/dbg.c
  192. +134 −0 libr/io/plugins/malloc.c
  193. +186 −0 libr/io/plugins/ptrace.c
  194. +219 −0 libr/io/section.c
  195. +10 −0 libr/io/t/Makefile
  196. +18 −0 libr/io/t/cat.c
  197. +20 −0 libr/io/t/read4.c
  198. +207 −0 libr/io/undo.c
  199. +30 −0 libr/io/undo.h
  200. +4 −0 libr/lang/Makefile
  201. +51 −0 libr/lang/lang.c
  202. +8 −0 libr/lib/Makefile
  203. +242 −0 libr/lib/lib.c
  204. +11 −0 libr/lib/t/Makefile
  205. +8 −0 libr/lib/t/plugin.c
  206. +62 −0 libr/lib/t/test-plugin.c
  207. +5 −0 libr/line/Makefile
  208. +4 −0 libr/line/TODO
  209. +659 −0 libr/line/dietline.c
  210. +6 −0 libr/line/t/Makefile
  211. +21 −0 libr/line/t/hello.c
  212. +4 −0 libr/macro/Makefile
  213. +377 −0 libr/macro/macro.c
  214. +4 −0 libr/print/Makefile
  215. +213 −0 libr/print/format.c
  216. +153 −0 libr/print/print.c
  217. +7 −0 libr/print/t/Makefile
  218. +12 −0 libr/print/t/hex.c
  219. +4 −0 libr/range/Makefile
  220. +405 −0 libr/range/range.c
  221. +4 −0 libr/reg/Makefile
  222. +5 −0 libr/reg/README
  223. +64 −0 libr/reg/reg.c
  224. +39 −0 libr/rules.mk
  225. +9 −0 libr/search/Makefile
  226. +53 −0 libr/search/aes-find.c
  227. +520 −0 libr/search/binparse.c
  228. +250 −0 libr/search/bytepat.c
  229. +210 −0 libr/search/search.c
  230. +187 −0 libr/search/stripstr.c
  231. +10 −0 libr/search/t/Makefile
  232. +24 −0 libr/search/t/test-str.c
  233. +33 −0 libr/search/t/test.c
  234. +4 −0 libr/sign/Makefile
  235. +110 −0 libr/sign/sign.c
  236. +7 −0 libr/socket/Makefile
  237. +276 −0 libr/socket/socket.c
  238. +18 −0 libr/stripsyms.sh
  239. +5 −0 libr/syscall/Makefile
  240. +3 −0 libr/syscall/TODO
  241. +116 −0 libr/syscall/darwin.c
  242. +4 −0 libr/syscall/example.syscall-file
  243. +80 −0 libr/syscall/freebsd.c
  244. +45 −0 libr/syscall/linux.c
  245. +58 −0 libr/syscall/netbsd.c
  246. +107 −0 libr/syscall/syscall.c
  247. +5 −0 libr/syscall/t/Makefile
  248. +15 −0 libr/syscall/t/hello.c
  249. +22 −0 libr/tests.mk
  250. +7 −0 libr/util/Makefile
  251. +68 −0 libr/util/alloca.c
  252. +159 −0 libr/util/alloca.s
  253. +93 −0 libr/util/file.c
  254. +107 −0 libr/util/hex.c
  255. +49 −0 libr/util/mem.c
  256. +201 −0 libr/util/num.c
  257. +24 −0 libr/util/re.c
  258. +371 −0 libr/util/str.c
  259. +13 −0 libr/util/t/Makefile
  260. +71 −0 libr/util/t/ralloc.c
  261. +41 −0 libr/util/t/rax2.c
  262. +49 −0 libr/util/t/test.c
  263. +64 −0 libr/vapi/r_asm.vapi
  264. +81 −0 libr/vapi/r_bin.vapi
  265. +19 −0 libr/vapi/r_config.vapi
  266. +20 −0 libr/vapi/r_cons.vapi
  267. +43 −0 libr/vapi/r_core.vapi
  268. +1 −0 libr/vapi/r_hash.deps
  269. +51 −0 libr/vapi/r_hash.vapi
  270. +31 −0 libr/vapi/r_io.vapi
  271. +35 −0 libr/vapi/r_range.vapi
  272. +45 −0 libr/vapi/r_search.vapi
  273. +17 −0 libr/vapi/r_socket.vapi
  274. +29 −0 libr/vapi/r_syscall.vapi
  275. +55 −0 libr/vapi/t/Makefile
  276. +27 −0 libr/vapi/t/asm.vala
  277. +38 −0 libr/vapi/t/bin.vala
  278. +10 −0 libr/vapi/t/core.vala
  279. +31 −0 libr/vapi/t/hash.vala
  280. +12 −0 libr/vapi/t/sc.vala
  281. +24 −0 libr/vapi/t/search.vala
  282. +21 −0 libr/vapi/t/socket.vala
  283. +5 −0 libr/vm/Makefile
  284. +25 −0 libr/vm/extra.c
  285. +51 −0 libr/vm/mmu.c
  286. +102 −0 libr/vm/op.c
  287. +205 −0 libr/vm/reg.c
  288. +28 −0 libr/vm/setup.c
  289. +24 −0 libr/vm/stack.c
  290. +579 −0 libr/vm/vm.c
1,432 ChangeLog

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,5 @@
all:
cd libr && make
clean:
cd libr && make clean
6 README
@@ -0,0 +1,6 @@
____ ___ ____ ___ ____ ___ ______ ____
| _ \/ \' \/ \ _ \/ _ \ \__ | / \
| < V . T . V < _/ .--'_/ | () |
|_|\__|_|__|___/|_|_|_|\__\___/ |_____(_)____/
@@ -0,0 +1,45 @@
# XXX
PREFIX=/tmp/libr-install
# Libraries
LIBLIST=io io/plugins util bin macro hash print config flags cons line lib syscall range socket cmd asm search core diff debug reg
# Under development
#LIBLIST+=print
#LIBLIST+=util
#LIBLIST+=search
# TODO : generate single library linking against the rest
#LIBSO=libr.so
#LIBAR=libr.a
all:
for lib in ${LIBLIST}; do ( cd $${lib} && ${MAKE} all ); done
@echo Build done for: ${LIBLIST}
install:
# libraries
@mkdir -p ${PREFIX}/lib
@for a in `find * | grep -e '\.so$$'` ; do \
echo " $$a "; cp $$a ${PREFIX}/lib ; done
# object archives
@for a in `find * | grep -e '\.a$$'` ; do \
echo " $$a"; cp $$a ${PREFIX}/lib ; done
# includes
@mkdir -p ${PREFIX}/include
cp -f include/* ${PREFIX}/include
# programs
@mkdir -p ${PREFIX}/bin
cp -f util/t/rax2 ${PREFIX}/bin
# test programs
@mkdir -p ${PREFIX}/bin-test
@for a in `find */t -perm /u+x -type f`; \
do echo " $$a"; cp $$a ${PREFIX}/bin-test ; done
@echo libr aka radare2 has been installed in PREFIX=${PREFIX}
todo:
grep -re TODO *
clean:
for lib in ${LIBLIST}; do ( cd $${lib} && ${MAKE} clean ); done
@@ -0,0 +1,20 @@
=========================
libr - codename 'radare2'
=========================
LibR is the refactoring of the old radare1 core in a set of libraries
defining the APIs of radare2.
The library 'libr' is composed by different modules, each one implementing
working modules of radare, so then, we get a complete set of libraries for
analyzing code, disassembling bytes, dumping bytes, plugin handling, etc..
The 'R' is for refactoring, reversing, radare, ...
Each module has its own test directory (t/) which contains simple applications
using the upper directory code and linking against the direct dependencies.
This enables a fine-grained test level for checking all functionalities in
one shot and give us the opportunity to write radare2 as test programs.
--pancake
@@ -0,0 +1,79 @@
____ ___ ____ ___ ____ ___ ______ ____
| _ \/ \' \/ \ _ \/ _ \ \__ | / \
| < V . T . V < _/ .--'_/ | () |
|_|\__|_|__|___/|_|_|_|\__\___/ |_____(_)____/
----------------------------------------[ todo
|| asm ||
---------
- Add support for more architectures
- Add lua disassembler
- Add java, dalvik, xtensa achiecture (mm cpu)
- http://git.linux-xtensa.org/cgi-bin/git.cgi?p=buildroot/buildroot-xtensa;a=blob;f=toolchain/binutils/binutils-xtensa_dc232b.tgz;h=214164399158c540a3033e52b3bb9f65c55289af;hb=HEAD
- Vala API should not use State
- Fix cpp issues
- Fix endianess issues
|| anal || **MISSING**
----------
- define api, write vapi, integrate in core, etc..
|| bin ||
---------
- No Vala api yet
- Add support for PE64, mach0 and java class
- Add dex format support (android)
|| cmd ||
---------
- long commands not yet tested at all
- added interface to export command list into an autocompletable
argc, argv for dietline
|| line ||
----------
- make it work with state like teh rest
- add support for readline callbacks
|| config ||
------------
- missing default callback for int assign
|| cons ||
----------
- add pipe_to_buffer..not only file descriptors
- major cleanup
- split in multiple files
- get_real_columns() should be renamed to get_columns()
|| flags ||
-----------
- Define a way to iterate flags from vala
- We probably need more methods
|| hash ||
----------
- Drop State() ?
|| diff ||
----------
- Needs to fix the delta diffing algorithm
- Reimplement delta diffing in C
|| sign ||
----------
- Define attributes and weights
- Decide collissions based on these patterns
|| meta || **MISSING**
----------
|| lib ||
---------
- Cleanup and test w32/osx support
|| debug ||
-----------
- define plugin extensions (use vm from here)
@@ -0,0 +1,50 @@
NAME=r_asm
OBJ=asm.o
CFLAGS+=-Iarch/include
# XXX
CFLAGS+=-DLIL_ENDIAN=1
# X86
OBJ+=arch/x86/asm.o
OBJ+=arch/x86/pseudo.o
OBJ+=arch/x86/realloc.o
# udis86
OBJ+=arch/x86/udis86/syn.o
OBJ+=arch/x86/udis86/input.o
OBJ+=arch/x86/udis86/udis86.o
OBJ+=arch/x86/udis86/decode.o
OBJ+=arch/x86/udis86/itab.o
OBJ+=arch/x86/udis86/syn-intel.o
OBJ+=arch/x86/udis86/syn-att.o
# olly
OBJ+=arch/x86/ollyasm/disasm.o
OBJ+=arch/x86/ollyasm/asmserv.o
OBJ+=arch/x86/ollyasm/assembl.o
# ARM
OBJ+=arch/arm/asm.o
# gnu arm-dis
OBJ+=arch/arm/gnu/arm-dis.o
# MIPS
OBJ+=arch/mips/asm.o
# gnu mips-dis
OBJ+=arch/mips/gnu/mips-dis.o
OBJ+=arch/mips/gnu/mips16-opc.o
OBJ+=arch/mips/gnu/mips-opc.o
# SPARC
OBJ+=arch/sparc/asm.o
# gnu sparc-dis
OBJ+=arch/sparc/gnu/sparc-dis.o
OBJ+=arch/sparc/gnu/sparc-opc.o
# PPC
OBJ+=arch/ppc/asm.o
# ppc-disasm
OBJ+=arch/ppc/ppc_disasm/ppc_disasm.o
# BF
OBJ+=arch/bf/asm.o
include ../rules.mk
@@ -0,0 +1,88 @@
/* radare - LGPL - Copyright 2009 nibble<.ds@gmail.com> */
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <r_types.h>
#include <r_util.h>
#include <r_asm.h>
#include "dis-asm.h"
static int arm_mode = 0;
static unsigned long Offset = 0;
static char *buf_global = NULL;
static unsigned char bytes[4];
static int arm_buffer_read_memory (bfd_vma memaddr, bfd_byte *myaddr, unsigned int length, struct disassemble_info *info)
{
memcpy (myaddr, bytes, length);
return 0;
}
static int symbol_at_address(bfd_vma addr, struct disassemble_info * info)
{
return 0;
}
static void memory_error_func(int status, bfd_vma memaddr, struct disassemble_info *info)
{
//--
}
static void print_address(bfd_vma address, struct disassemble_info *info)
{
char tmp[32];
if (buf_global == NULL)
return;
sprintf(tmp, "0x%08llx", (u64)address);
strcat(buf_global, tmp);
}
static int buf_fprintf(void *stream, const char *format, ...)
{
va_list ap;
char *tmp;
if (buf_global == NULL)
return 0;
va_start(ap, format);
tmp = alloca(strlen(format)+strlen(buf_global)+2);
sprintf(tmp, "%s%s", buf_global, format);
vsprintf(buf_global, tmp, ap);
va_end(ap);
return 0;
}
int r_asm_arm_disasm(struct r_asm_t *a, u8 *buf, u64 len)
{
struct disassemble_info disasm_obj;
int ret;
buf_global = a->buf_asm;
Offset = a->pc;
memcpy(bytes, buf, 4); // TODO handle thumb
r_hex_bin2str(bytes, 4, a->buf_hex);
/* prepare disassembler */
memset(&disasm_obj,'\0', sizeof(struct disassemble_info));
arm_mode = a->bits;
//info.arch = ARM_EXT_V1|ARM_EXT_V4T|ARM_EXT_V5;
disasm_obj.buffer = bytes;
disasm_obj.read_memory_func = &arm_buffer_read_memory;
disasm_obj.symbol_at_address_func = &symbol_at_address;
disasm_obj.memory_error_func = &memory_error_func;
disasm_obj.print_address_func = &print_address;
disasm_obj.endian = !a->big_endian;
disasm_obj.fprintf_func = &buf_fprintf;
disasm_obj.stream = stdout;
a->buf_asm[0]='\0';
ret = print_insn_arm((bfd_vma)Offset, &disasm_obj);
if (ret == -1)
strcpy(a->buf_asm, " (data)");
return ret;
}
Oops, something went wrong.

0 comments on commit c5e588e

Please sign in to comment.