From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20438 invoked by alias); 6 May 2009 11:20:19 -0000 Received: (qmail 20424 invoked by uid 22791); 6 May 2009 11:20:18 -0000 X-SWARE-Spam-Status: No, hits=-0.7 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_24,J_CHICKENPOX_25,J_CHICKENPOX_28,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from ti-out-0910.google.com (HELO ti-out-0910.google.com) (209.85.142.189) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 06 May 2009 11:20:12 +0000 Received: by ti-out-0910.google.com with SMTP id a1so3081tib.12 for ; Wed, 06 May 2009 04:20:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.110.52.1 with SMTP id z1mr79022tiz.54.1241608810095; Wed, 06 May 2009 04:20:10 -0700 (PDT) In-Reply-To: References: <200904301028.29435.pedro@codesourcery.com> <200905061038.11004.pedro@codesourcery.com> Date: Wed, 06 May 2009 11:20:00 -0000 Message-ID: Subject: Re: Build failure for x86_64-pc-mingw32 target From: Hui Zhu To: Pedro Alves , Mark Kettenis , Kai Tietz Cc: gdb-patches ml Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-05/txt/msg00111.txt.bz2 The patch is checked in. 2009-05-06 Hui Zhu * i386-tdep.c (i386_process_record): Change bzero to memset. Thanks, Hui RCS file: /cvs/src/src/gdb/i386-tdep.c,v retrieving revision 1.271 retrieving revision 1.272 diff -u -r1.271 -r1.272 --- src/gdb/i386-tdep.c 2009/05/01 08:09:16 1.271 +++ src/gdb/i386-tdep.c 2009/05/06 11:16:40 1.272 @@ -2993,7 +2993,7 @@ uint32_t opcode; struct i386_record_s ir; - bzero (&ir, sizeof (struct i386_record_s)); + memset (&ir, 0, sizeof (struct i386_record_s)); ir.regcache =3D regcache; ir.addr =3D addr; ir.aflag =3D 1; On Wed, May 6, 2009 at 18:46, Hui Zhu wrote: > OK. =A0I will post a patch to change bzero to memset. > > Thanks for your help guys. > > Hui > > On Wed, May 6, 2009 at 17:38, Pedro Alves wrote: >> On Wednesday 06 May 2009 10:05:09, Hui Zhu wrote: >>> mingw32 don't have bzero? >>> Could you please help me try to build some code that have bzero in ming= w? >> >> Please don't use bzero, use memset instead. =A0Patch doing that pre-appr= oved. >> >> (Kai, please don't reply to unrelated threads to start a new topic. =A0S= tart >> a new thread instead.) >> >> -- >> Pedro Alves >> >