qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Blue Swirl <blauwirbel@gmail.com>
To: Toni <tonygio04@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Qemu user-mode MacOS
Date: Sat, 22 Aug 2009 18:14:02 +0300	[thread overview]
Message-ID: <f43fc5580908220814r20686151pe75c5702aaca5a29@mail.gmail.com> (raw)
In-Reply-To: <526ddcfc0908201743x2d37a468s29c9388007060f6f@mail.gmail.com>

On Fri, Aug 21, 2009 at 3:43 AM, Toni<tonygio04@gmail.com> wrote:
> Hi,
> I have a problem: I'm trying to install on Mac OS qemu user-mode, I need it,
> and so I find out that the only way is correct the wrong part of the source
> code of qemu darwin_user, I correct some errors, but now I found out
> something that I don't undestand:
>   CC    i386-darwin-user/cpu-exec.o
> /Users/ToNy/Desktop/qemu-0.10.5_prova/cpu-exec.c: In function
> ‘cpu_x86_signal_handler’:
> /Users/ToNy/Desktop/qemu-0.10.5_prova/cpu-exec.c:1182: error: dereferencing
> pointer to incomplete type
> /Users/ToNy/Desktop/qemu-0.10.5_prova/cpu-exec.c:1183: error: dereferencing
> pointer to incomplete type
> /Users/ToNy/Desktop/qemu-0.10.5_prova/cpu-exec.c:1186: error: dereferencing
> pointer to incomplete type
> /Users/ToNy/Desktop/qemu-0.10.5_prova/cpu-exec.c:1187: error: dereferencing
> pointer to incomplete type

> the problem may be the ucontext definition of the uc variable, that is
> defined in sys/ucontext.h, that call _structs.h where finally we found the
> struct:

Maybe struct mcontext is not defined? You could try splitting the code
to pieces, each trying one step in the pointer reference chain:

Instead of
# define EIP_sig(context)  (*((unsigned long*)&(context)->uc_mcontext->ss.eip))
you could try something like
struct mcontext *mc;
struct sigaltstack *ss;

mc = uc->uc_mcontext;
ss = mc->ss;
pc = ss->eip;

      reply	other threads:[~2009-08-22 15:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-21  0:43 [Qemu-devel] Qemu user-mode MacOS Toni
2009-08-22 15:14 ` Blue Swirl [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f43fc5580908220814r20686151pe75c5702aaca5a29@mail.gmail.com \
    --to=blauwirbel@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=tonygio04@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).