Skip to contentSkip to conversation

Read location of memory poits esp register

Qemu-devel Davide Ferraretto 2 participants 3 messages May 7, 2012

lore
Share & tools
lore
#0 lore raw

how can I read location of memory poits by esp register (i386 cpu)??

#1 lore raw
Quoted 3 lines · Davide Ferraretto

how can I read location of memory poits by esp register (i386 cpu)??

CMIIW, using gdb stub hooked to Qemu, it should be:
p $esp
<get the number>
x <from the number above>

Signature · 7 lines
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
#2 lore raw

But, I work into qemu code. Is there a c qemu function for this??

Quoted 10 lines · Mulyadi Santosa
Quoted 3 lines · Davide Ferraretto

how can I read location of memory poits by esp register (i386 cpu)??

CMIIW, using gdb stub hooked to Qemu, it should be:
p $esp
<get the number>
x<from the number above>