All of lore.kernel.org
 help / color / mirror / Atom feed
From: "alex" <void@aleksoft.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] mingw compile error patch
Date: Mon, 21 Aug 2006 17:24:14 -0700	[thread overview]
Message-ID: <ecdirf$98a$1@sea.gmane.org> (raw)

Hi,
The patch below allows me to compile qemu on Windows, however it is still
not working.
The program exits immediately reporting that it can't open the hard disk
image.
GDB reports the offensive pies of code is in malloc(), which does not make
sense to me.
Am I doing something wrong?

qemu_mallocz (size=2680) at c:/qemu/osdep.c:190
190         ptr = qemu_malloc(size);
(gdb)
188     {
(gdb)
190         ptr = qemu_malloc(size);
(gdb)
qemu_malloc (size=2680) at c:/qemu/osdep.c:56
56          return malloc(size);
(gdb)

Program exited with code 01.
(gdb) where
(gdb) No stack.

---------patch------------

RCS file: /sources/qemu/qemu/block-raw.c,v
retrieving revision 1.7
diff -r1.7 block-raw.c
821a822,823
> static int find_cdrom(char *cdrom_name, int cdrom_name_size);
> static int find_device_type(const char *filename);
1095c1097
<     LARGE_INTEGER l;
---
>     ULARGE_INTEGER l;
1098c1100
<     switch(s->ftype) {
---
>     switch(s->type) {
1185c1187
<     memset(drives, 0, sizeof(drivers));
---
>     memset(drives, 0, sizeof(drives));
1204c1206
<
---
>     char drive_letter[2];
1207,1209c1209,1211
<         s->drive_letter[0] = p[0];
<         s->drive_letter[1] = '\0';
<         type = GetDriveType(s->drive_letter);
---
>         drive_letter[0] = p[0];
>         drive_letter[1] = '\0';
>         type = GetDriveType(drive_letter);

             reply	other threads:[~2006-08-22  0:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-22  0:24 alex [this message]
2006-08-22  4:22 ` [Qemu-devel] mingw compile error patch Kazu
2006-08-22  5:18   ` [Qemu-devel] " Alex
2006-08-22  7:45     ` Kazu
2006-08-23 16:01       ` [Qemu-devel] " alex

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='ecdirf$98a$1@sea.gmane.org' \
    --to=void@aleksoft.net \
    --cc=qemu-devel@nongnu.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.