This weekend i was offline and i has spend some dead times coding for radare in my ipod touch, yeah, thumb typing is not as optimal as a full keyboard, but enought to manage a shell, gcc
and vim.

After some local hacky patches i moved the repo to my laptop and prepared some patches to fix the build of the debugger layer for the osx-arm target and fixed so many bugs in the dietmach0 library (some endian related, added support for reading registers from mach0 headers for x86, arm and powerpc), and fixed an issue with the io.paddr (the virtual physical address used while mapping physical files in memory) that allowed me to properly run radare with debugger on the ipod, get all symbols properly and identify entrypoint and analyze some functions.

The port of the debugger was about 1h, yeah, i has already told this so many times, porting
radare to new os/archs is really easy (and hacky too), but fast to do.

The "not-so-good" news is that the debugger doesn't actually works on ARM. This is because apple has decided to change some things in the initialization steps for attaching to a process are different compared to the ones in x86-osx or powerpc-osx. But this is a "minor" issue, that i
plan to fix before the next release.

About the mach0 support i want to make it complete for r1 and then rewrite it for r2 for r_bin allowing the insertion/deletion/manipulation of new sections, symbols, etc.. but this will come later. Actually im just playing with it to give an almost basic support for this new platform.

For the people interested on trying it, just retrieve the last snapshot in radare.org/get/shot or pull the last hg tip. To compile it, i'm using a native gcc inside, so, no SDKs or weird
software required to build on.

The current snapshot requires some include files that not shipped with the default gcc from cydia. But they can be retrieved from an SDK, but they can be easily ignored, they are just dummy structures and enums that i can hardcode in core and make it more independent.

Betatesting is welcome for radare on osx-arm/x86/ppc (i only own arm/ppc)

--pancake
_______________________________________________
radare mailing list
[email protected]
http://lists.nopcode.org/listinfo.cgi/radare-nopcode.org

Reply via email to