Skip to content

the simple python scripts to help disassemble ARM instructions in MagicCode log files.

Notifications You must be signed in to change notification settings

lialan/MagicCode-ARM-disasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

  1. apply the patch to your MagicCode repo.
git apply annotate.patch
  1. download darm into this folder:
git clone git://github.com/jbremer/darm.git
  1. compile darm:
cd darm; make;
  1. call get_nm.py to populate the dynamic relocation symbols to /tmp/sopickle
get_nm.py sofilename1.so sofilename2.so ...
  1. run annotate.py:
annotate logcat_file.txt

Step 4 will generate the annotated file at:

/tmp/annotated_logcat.txt

The idea behind this is very simple: let MagicCode to print out the ARM instruction encoding, and then grep it and replace it with ARM disassembler along with the offset to the function.

Notes: This script uses nm for arm, you can change the actual nm command in get_nm.py

ARM_NM_NAME = 'arm-none-eabi-nm'

About

the simple python scripts to help disassemble ARM instructions in MagicCode log files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages