Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Fix cygwin build error with i386-linux-tdep.c
@ 2009-08-30 13:56 Hui Zhu
  2009-08-30 14:09 ` Mark Kettenis
  2009-08-30 15:22 ` Jiang Jilin
  0 siblings, 2 replies; 23+ messages in thread
From: Hui Zhu @ 2009-08-30 13:56 UTC (permalink / raw)
  To: gdb-patches ml; +Cc: Michael Snyder

Hi guys,

When I try to build gdb in cygwin with "--enable-targets=all
--enable-64-bits-bfd".  I got some error.

gcc -g -O2   -I. -I../../src/gdb -I../../src/gdb/common
-I../../src/gdb/config -DLOCALEDIR="\"/usr/local/share/locale\""
-DHAVE_CONFIG_H -I../
. -I../bfd -I../../src/gdb/../bfd -I../../src/gdb/../include
-I../libdecnumber -I../../src/gdb/../libdecnumber
-I../../src/gdb/gnulib -Ignuli
tatement -Wpointer-arith -Wformat-nonliteral -Wno-unused -Wno-switch
-Wno-char-subscripts -Werror -c -o i386-linux-tdep.o -MT
i386-linux-tdep.
6-linux-tdep.c
../../src/gdb/i386-linux-tdep.c: In function
`i386_linux_intx80_sysenter_record':
../../src/gdb/i386-linux-tdep.c:376: warning: unsigned int format,
uint32_t arg (arg 2)
../../src/gdb/i386-linux-tdep.c:376: warning: unsigned int format,
uint32_t arg (arg 2)
make[2]: *** [i386-linux-tdep.o] Error 1
make[2]: Leaving directory `/home/hzhu/gdb/bgdb/gdb'
make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory `/home/hzhu/gdb/bgdb'
make: *** [all] Error 2

I make a patch to fix it.

Please help me review it.

Thanks,
Hui


2009-08-29  Hui Zhu  <teawater@gmail.com>

	* i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Add
	(unsigned) before tmpu32.

Index: gdb/i386-linux-tdep.c
===================================================================
--- gdb.orig/i386-linux-tdep.c	2009-08-23 21:17:37.000000000 +0800
+++ gdb/i386-linux-tdep.c	2009-08-30 20:19:53.828125000 +0800
@@ -374,7 +374,7 @@
   if (tmpu32 > 499)
     {
       printf_unfiltered (_("Process record and replay target doesn't "
-                           "support syscall number %u\n"), tmpu32);
+                           "support syscall number %u\n"), (unsigned) tmpu32);
       return -1;
     }


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

end of thread, other threads:[~2009-09-09  5:59 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-30 13:56 [PATCH] Fix cygwin build error with i386-linux-tdep.c Hui Zhu
2009-08-30 14:09 ` Mark Kettenis
2009-08-30 14:20   ` Hui Zhu
2009-08-30 15:00     ` Hui Zhu
2009-08-31  8:46       ` Hui Zhu
2009-08-31  8:49         ` Jiang Jilin
2009-08-31 12:05           ` Hui Zhu
2009-08-31 16:33             ` Mark Kettenis
2009-09-01  2:15               ` Hui Zhu
2009-09-05 20:34         ` Michael Snyder
2009-09-05 21:15           ` Joel Brobecker
2009-09-06  4:15             ` Hui Zhu
2009-09-09  2:22               ` Hui Zhu
2009-09-09  3:31                 ` Michael Snyder
2009-09-09  5:59                   ` Hui Zhu
2009-08-30 14:37   ` Andreas Schwab
2009-08-30 15:14     ` Hui Zhu
2009-08-30 15:22 ` Jiang Jilin
2009-08-30 18:00   ` Hui Zhu
2009-08-30 23:43     ` Jiang Jilin
2009-08-30 23:53       ` Hui Zhu
2009-08-31  0:32         ` Jiang Jilin
2009-08-31  2:52           ` Jiang Jilin

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