Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] testsuite/gdb.arch/i386-prologue.c: Fix compiling on Cygwin
@ 2004-06-28 11:41 Corinna Vinschen
  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
  0 siblings, 1 reply; 2+ messages in thread
From: Corinna Vinschen @ 2004-06-28 11:41 UTC (permalink / raw)
  To: gdb-patches

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-06-28 11:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-28 11:41 [RFA] testsuite/gdb.arch/i386-prologue.c: Fix compiling on Cygwin Corinna Vinschen
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox