Magic Lantern Firmware Wiki
(Created page with ' Parent: http://magiclantern.wikia.com/wiki/2.0.4_AJ ===<u>'''Your camera needs you #1 '''(and so do I!) </u>=== Would someone like to hack together an IDA script? …')
 
No edit summary
Line 1: Line 1:
   
Parent: [[http://magiclantern.wikia.com/wiki/2.0.4_AJ]]
+
Parent: http://magiclantern.wikia.com/wiki/2.0.4_AJ
   
   
===<u>'''Your camera needs you #1 '''(and so do I!)
+
===<u>'''Your camera needs you #1 '''(and so do I!)
 
</u>===
 
</u>===
   
   
Would someone like to hack together an IDA script?
+
Would someone like to hack together an IDA script?
   
   
Line 16: Line 16:
   
   
Details below. If you need incentive ... I'll post you a Beer! (or one of the random alcoholic bevages hiding in my drinks cabinet)
+
Details below. If you need incentive ... I'll post you a Beer! (or one of the random alcoholic bevages hiding in my drinks cabinet)
   
   
Line 39: Line 39:
 
 
 
If there are No comments in the subroutine - then do nothing.
 
If there are No comments in the subroutine - then do nothing.
 
 
 
:)
 
:)
 
 
   
 
Antony
 
Antony

Revision as of 17:59, 24 June 2010

Parent: http://magiclantern.wikia.com/wiki/2.0.4_AJ


===Your camera needs you #1 (and so do I!) ===


Would someone like to hack together an IDA script?


What I am looking for is simple script to AUTO name them if there is a comment in the subroutine.
There are about 15,000 unnamed ones ... this will save me a Huge amount of time.


Details below. If you need incentive ... I'll post you a Beer! (or one of the random alcoholic bevages hiding in my drinks cabinet)


'Script 1:  Naming of 'sub_' routines' using debug comments

Most of the names that I populating are found by looking at the comments in IDA.
I find a undefined subroutine name, I scroll down the subroutine, and I used the first string - and use it:

-------------------------------------
FF98D7BC sub_FF987DBC
........
FF98D7E8      ADR R2, aH264rapperPout ; "[H264Rapper] pOutputAddress=0x%08X"
-------------------------------------

Would become:

-------------------------------------
FF98D7BC AUTO_'H264Rapper_pOutputAddress'
........
FF98D7E8      ADR R2, aH264rapperPout ; "[H264Rapper] pOutputAddress=0x%08X"
-------------------------------------

If there are No comments in the subroutine - then do nothing.
)

Antony