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: Jacques
Subject: Re: [Qemu-devel] qemu gdb issue
Date: Fri, 16 Mar 2012 09:13:12 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1

Hi Mulyadi,

I see what you mean. How do I know if this is happening? When I do 'x/i
$eip' I get a completely sane result with exactly the instructions I want.

On 03/15/2012 07:13 PM, Mulyadi Santosa wrote:
> 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.
> 
> 

Attachment: 0x0B03082C.asc
Description: application/pgp-keys


reply via email to

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