Ticket #33468: gdb-7.4.1.patch

File gdb-7.4.1.patch, 1.5 KB (added by robsonpeixoto@…, 12 years ago)

Version 7.4.1

  • files/buggy-memset.patch

     
    1 diff -Naurp gdb-7.3.orig/bfd/bfdio.c gdb-7.3/bfd/bfdio.c
    2 --- gdb-7.3.orig/bfd/bfdio.c    2010-06-09 06:28:31.000000000 -0700
    3 +++ gdb-7.3/bfd/bfdio.c 2012-03-29 15:52:22.000000000 -0700
    4 @@ -577,7 +577,7 @@ memory_bstat (bfd *abfd, struct stat *st
    5  {
    6    struct bfd_in_memory *bim = (struct bfd_in_memory *) abfd->iostream;
    7  
    8 -  memset (statbuf, 0, sizeof (statbuf));
    9 +  memset (statbuf, 0, sizeof (*statbuf));
    10    statbuf->st_size = bim->size;
    11  
    12    return 0;
  • Portfile

     
    55PortGroup       muniversal 1.0
    66
    77name            gdb
    8 version         7.3
     8version         7.4.1
    99revision        1
    1010categories      devel
    1111maintainers     dweber openmaintainer
     
    3333
    3434use_bzip2       yes
    3535
    36 checksums       sha1    fefd90275d6decdca00c5c29c533e2ef3d439664 \
    37                 rmd160  3df9a15e2d276f4f7f30e5d2a7d86a8c63f30a34
     36checksums       sha1    1b0f8c3778d4b10c8d2be6922ac01a9900e8116c \
     37                rmd160  a1273705aafd0c4d38b5836d0b096bbdbc6ee897
    3838
    3939depends_build   port:gettext
    4040
     
    4646    }
    4747}
    4848
    49 patch.pre_args -p1
    50 patchfiles buggy-memset.patch
    51 
    5249configure.args-append \
    5350    --infodir=${prefix}/share/info \
    5451    --mandir=${prefix}/share/man \