Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Corinna Vinschen <vinschen@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: [RFA] testsuite/gdb.arch/i386-prologue.c: Fix compiling on Cygwin
Date: Mon, 28 Jun 2004 11:41:00 -0000	[thread overview]
Message-ID: <20040628114125.GB19325@cygbert.vinschen.de> (raw)

Hi,

the gdb.arch/i386-unwind.c testcase doesn't compile on Cygwin due to
the missing underscores, the same as with i386-prologue.c.

Corinna

	* gdb.arch/i386-unwind.c: Conditionalize label names to build
	on Cygwin.

Index: gdb.arch/i386-unwind.c
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.arch/i386-unwind.c,v
retrieving revision 1.1
diff -u -p -r1.1 i386-unwind.c
--- gdb.arch/i386-unwind.c	19 Nov 2003 17:42:43 -0000	1.1
+++ gdb.arch/i386-unwind.c	28 Jun 2004 11:38:42 -0000
@@ -34,9 +34,15 @@ asm(".text\n"
     "gdb1435:\n"
     "    pushl %ebp\n"
     "    mov   %esp, %ebp\n"
+#ifdef __CYGWIN__
+    "    call  _trap\n"
+    "    .globl _main\n"
+    "_main:\n"
+#else
     "    call  trap\n"
     "    .globl main\n"
     "main:\n"
+#endif
     "    pushl %ebp\n"
     "    mov   %esp, %ebp\n"
     "    call  gdb1435\n");

-- 
Corinna Vinschen
Cygwin Co-Project Leader
Red Hat, Inc.


             reply	other threads:[~2004-06-28 11:41 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-28 11:41 Corinna Vinschen [this message]
2004-06-28 11:46 ` [RFA] testsuite/gdb.arch/i386-unwind.c: ... (was Re: [RFA] testsuite/gdb.arch/i386-prologue.c: Fix compiling on Cygwin) Corinna Vinschen
  -- strict thread matches above, loose matches on Subject: below --
2004-06-29 18:16 [RFA] testsuite/gdb.arch/i386-prologue.c: Fix compiling on Cygwin Michael Elizabeth Chastain
2004-06-29 17:27 Michael Elizabeth Chastain
2004-06-29 17:53 ` Corinna Vinschen
2004-06-29 17:25 Michael Elizabeth Chastain
2004-06-28 17:57 Michael Elizabeth Chastain
2004-06-29  8:13 ` Corinna Vinschen
2004-06-28 17:54 Michael Elizabeth Chastain
2004-06-29  8:12 ` Corinna Vinschen
2004-06-28 11:35 Corinna Vinschen
2004-06-29 14:39 ` [RFA] testsuite/gdb.arch/i386-prologue.c: Fix compiling on cygwin Christopher Faylor

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=20040628114125.GB19325@cygbert.vinschen.de \
    --to=vinschen@redhat.com \
    --cc=gdb-patches@sources.redhat.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