Displaying 4 results from an estimated 4 matches for "outstringsize".
2011 Dec 19
3
[LLVMdev] Disassembly arbitrary machine-code byte arrays
...n are specified in the
* parameter Bytes, and contains at least BytesSize number of bytes. The
* instruction is at the address specified by the PC parameter. If a valid
* instruction can be disassembled, its string is returned indirectly in
* OutString whose size is specified in the parameter OutStringSize. This
* function returns the number of bytes in the instruction or zero if there was
* no valid instruction.
*/
size_t LLVMDisasmInstruction(LLVMDisasmContextRef DC, uint8_t *Bytes,
uint64_t BytesSize, uint64_t PC,
char *OutString, size_...
2011 Dec 20
0
[LLVMdev] Disassembly arbitrary machine-code byte arrays
...he
> * parameter Bytes, and contains at least BytesSize number of bytes. The
> * instruction is at the address specified by the PC parameter. If a valid
> * instruction can be disassembled, its string is returned indirectly in
> * OutString whose size is specified in the parameter OutStringSize. This
> * function returns the number of bytes in the instruction or zero if there was
> * no valid instruction.
> */
> size_t LLVMDisasmInstruction(LLVMDisasmContextRef DC, uint8_t *Bytes,
> uint64_t BytesSize, uint64_t PC,
> ...
2011 Dec 19
0
[LLVMdev] Disassembly arbitrary machine-code byte arrays
Hi Aiden,
The easiest thing I can do is to point you to the source of the "llvm-mc" tool, which does exactly what you ask in its "-disassemble" mode. The code is rather small, so it should be easy to work out.
tools/llvm-mc
Cheers,
James
-----Original Message-----
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Aidan Steele
Sent:
2011 Dec 19
2
[LLVMdev] Disassembly arbitrary machine-code byte arrays
Hi,
My apologies if this appears to be a very trivial question -- I have
tried to solve this on my own and I am stuck. Any assistance that
could be provided would be immensely appreciated.
What is the absolute bare minimum that I need to do to disassemble an
array of, say, ARM machine code bytes? Or an array of Thumb machine
code bytes? For example, I might have an array of unsigned chars --
how