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

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

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.