4dsdev
Views: 1,383,900 Main | Rules/FAQ | Memberlist | Active users | Last posts | Calendar | Stats | Online users | Search 03-29-24 04:50 AM
Guest:

0 users reading Debugging ARM9 with IDA and Qemu problems | 1 bot

Main - Reverse-engineering - Debugging ARM9 with IDA and Qemu problems Hide post layouts | New reply


iamn1ck
Posted on 12-13-14 04:07 PM Link | #64
Hello, recently I've been trying to debug some of Kan49's archive posted a while back on GBAtemp. I am running IDA 6.1 with Qemu .11. I installed Qemu following this guide http://www.hexblog.com/?p=111.

Now my problem occurs when I start to debug a process. I can set break points in the code but when as soon as I start debugging it crashes. Very few files I have loaded have ever let me start the debug process, otherwise it crashes as soon as I continue past the first break.

I have a screen capture of what happens if it helps clarify my issue. Sorry for the quality, I thought it would be better.
https://www.dropbox.com/s/yfdns81yn754h4i/2014-12-13-0958-35.flv?dl=0

The second prompt when I start to debug says "Segment 'ROM' lies outside of valid memory regions. The program will likely fail to load or work properly. If possible, rebase the program or edit the memory map.

Any help would be greatly appreciated. Thanks

StapleButter
Posted on 12-13-14 04:28 PM Link | #65
Debugging is something I never tried to do with IDA, so I'm afraid I can't give much help there.

Regarding the "Segment 'ROM' lies outside of valid memory regions" part, you should check that your segments have the proper size defined. You may also need to manually add a BSS segment.

____________________
blargSNES -- SNES emu for 3DS
More cool stuff

iamn1ck
Posted on 12-16-14 12:09 AM Link | #67
I only get the "outside of valid memory regions" error with the arm9 ram dumps. I have tinkered around with some of the p3ds dumps he's made, but there is a lot to know about the 3ds memory layout. There are many dumps/leaked kernel files other than Kanes (st4rks cfw), but piecing it all together is very challenging.


Main - Reverse-engineering - Debugging ARM9 with IDA and Qemu problems Hide post layouts | New reply

Page rendered in 0.015 seconds. (2048KB of memory used)
MySQL - queries: 26, rows: 67/67, time: 0.009 seconds.
[powered by Acmlm] Acmlmboard 2.064 (2018-07-20)
© 2005-2008 Acmlm, Xkeeper, blackhole89 et al.