qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] qemu gdb issue


From: Mulyadi Santosa
Subject: Re: [Qemu-devel] qemu gdb issue
Date: Fri, 16 Mar 2012 00:13:04 +0700

Hi...

On Thu, Mar 15, 2012 at 23:03, Jacques <address@hidden> wrote:
> I'm running an application in qemu through the userspace qemu-i386 and
> attaching to the process with gdb. I have pygdb scripts that then
> interact with gdb.
>
> The issue is that at some point I want to change $eip and redirect
> instruction flow. I then set $eip to the value I need which gives me the
> following:
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x46367046 in ?? ()

I am not keen in this kind of situation,but I think you hit "non
existing" EIP. By that, I mean  maybe you think such EIP truly exist
(based on ELF info perhaps?), but in reality since qemu user mode do
dynamic translations and not really following ELF offset, you got
segfault.


-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]