An interactive DIsassembly viewer (upd. 2021-01-31) - page 2 - General Discussion and Assistance - CHDK Forum

An interactive DIsassembly viewer (upd. 2021-01-31)

  • 14 Replies
  • 10503 Views
*

Offline Ant

  • *****
  • 509
Re: An interactive DIsassembly viewer
« Reply #10 on: 26 / July / 2017, 08:21:33 »
Advertisements
Should it work with xtensa blobs?
« Last Edit: 26 / July / 2017, 16:34:50 by Ant »

*

Offline srsa_4c

  • ******
  • 4451
Re: An interactive DIsassembly viewer
« Reply #11 on: 26 / July / 2017, 14:58:36 »
Should it work with xtensa blobs?
No. Only ARM and Thumb are implemented at the moment (see first post and the included .txt file). I'm already working on it, but it might take a while until it becomes usable and published.

*

Offline srsa_4c

  • ******
  • 4451
Re: An interactive DIsassembly viewer
« Reply #12 on: 27 / July / 2017, 14:43:32 »
already working on it
Attached is a very early stage.
It supports Xtensa, but it's not tested well, and likely has many bugs.
It relies on the user to recognize and re-do parts of disassembly that are disassembled incorrectly. Make sure you load all 3 required blobs in order to get string references and functions. You'll need to rescan references manually after fixing parts of the disassembly. Virustotal.

edit:
attachment removed

adi_170727_win32_wip.7z (668.6 kB - downloaded 6 times.)
« Last Edit: 03 / August / 2017, 16:17:58 by srsa_4c »

*

Offline srsa_4c

  • ******
  • 4451
Re: An interactive DIsassembly viewer
« Reply #13 on: 03 / August / 2017, 16:24:09 »
Uploaded an updated version to 1st post that now has Xtensa specific improvements.
Note that Xtensa disassembly made with the previously published version will look a bit odd - re-doing the disassembly is advised.
Also fixed are several bugs (memory leak when searching strings, selection acting strangely, etc.).


*

Offline srsa_4c

  • ******
  • 4451
Re: An interactive DIsassembly viewer
« Reply #14 on: 26 / August / 2017, 11:26:16 »
Update.

- A project can now be imported, using a properly set up CHDK source tree or a directory containing the required files (trunk only at time of writing). Disassembly, scanning for references and strings still has to be done manually.
- The custom control that displays disassembly or hex dump now can be focused/unfocused. However, the only visual indicator is the status bar. Click on it to focus. If the control is not in focus, it does not react to keyboard.
- The search box on disasm pages can now accept regular expressions.
- Symbol handling should now work properly.

edit:
Project import should now work using a copy of CHDK trunk r4903 or newer.
« Last Edit: 26 / August / 2017, 12:49:09 by srsa_4c »

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal