1

I'm trying to emulate a snippet of ARM assembly I have in IDA pro using QEMU. However I do not understand the output of the program.

When I start debugging the firmware, windows pop up for QEMU. However all the data in IDA turns into zeros, as can be seen in the picture below.

Why is this happening?

Is this normal behavior of the program?

the data is replaced by zeros

Other information:

the binary I am trying to emulate is for a device with:

  • armv7-m architecture

the gdb debug configuration command line is:

"C:\Program Files (x86)\qemu/qemu-system-arm" -S -gdb tcp::%p,ipv4 -kernel "%e" -M versatilepb -cpu cortex-a8

The initial SP is 0x20000000 and the memory map looks like this

enter image description here

  • In absence of other information, an obvious hypothesis would be that you misconfigured something. Check the guide you linked again. – Vitaly Osipov Sep 29 '16 at 3:58
  • @VitalyOsipov I added more information to the question. – HolyGuacamole Oct 12 '16 at 8:35
  • Did you ever find a solution to this? I have been running into this with remote GDB debugging. – Qndel Nov 20 '17 at 18:04
  • @ApertureSecurity No, as far as I remember I didn't. – HolyGuacamole Nov 24 '17 at 13:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.