This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Build failure for x86_64-pc-mingw32 target


gdb-patches-owner@sourceware.org wrote on 06.05.2009 13:20:10:

> The patch is checked in.
> 
> 2009-05-06  Hui Zhu  <teawater@gmail.com>
> 
>    * 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 = regcache;
>    ir.addr = addr;
>    ir.aflag = 1;
> 
> 
> On Wed, May 6, 2009 at 18:46, Hui Zhu <teawater@gmail.com> wrote:
> > OK.  I 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 <pedro@codesourcery.com> 
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 
mingw?
> >>
> >> Please don't use bzero, use memset instead.  Patch doing that 
pre-approved.
> >>
> >> (Kai, please don't reply to unrelated threads to start a new topic. 
 Start
> >> a new thread instead.)
> >>
> >> --
> >> Pedro Alves
> >>
> >
> 

Hello,

I test build for x64 and it works now again.

Pedro, sorry. Wasn't by intention.

Hui, thanks for fixing it,

Cheers,
Kai

|  (\_/)  This is Bunny. Copy and paste Bunny
| (='.'=) into your signature to help him gain
| (")_(") world domination.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]