diff options
author | sbd <sbd@pkgsrc.org> | 2011-12-05 22:05:29 +0000 |
---|---|---|
committer | sbd <sbd@pkgsrc.org> | 2011-12-05 22:05:29 +0000 |
commit | b92f8cc0cf9d459b2bac664bb6f35cdd8b7d2d32 (patch) | |
tree | 5c678021f6aa81a6c6363954a51c5c57ca131f58 /devel/gdb | |
parent | bb9c7b8456a15c8db69b40eaec161afc9b7fa088 (diff) | |
download | pkgsrc-b92f8cc0cf9d459b2bac664bb6f35cdd8b7d2d32.tar.gz |
Revert commit:
Module Name: pkgsrc
Committed By: sbd
Date: Mon Dec 5 19:34:41 UTC 2011
Modified Files:
pkgsrc/devel/gdb: distinfo
Added Files:
pkgsrc/devel/gdb/patches: patch-gdb_gdbserver_gdbreplay.c
Log Message:
alloca(3) is not avalible with glibc on linux if -fno-builtin is used.
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 pkgsrc/devel/gdb/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/devel/gdb/patches/patch-gdb_gdbserver_gdbreplay.c
Diffstat (limited to 'devel/gdb')
-rw-r--r-- | devel/gdb/distinfo | 4 | ||||
-rw-r--r-- | devel/gdb/patches/patch-gdb_gdbserver_gdbreplay.c | 26 |
2 files changed, 1 insertions, 29 deletions
diff --git a/devel/gdb/distinfo b/devel/gdb/distinfo index 147eb5548f0..c7a3ac20c9f 100644 --- a/devel/gdb/distinfo +++ b/devel/gdb/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.15 2011/12/05 19:36:18 sbd Exp $ +$NetBSD: distinfo,v 1.16 2011/12/05 22:05:29 sbd Exp $ SHA1 (gdb-5.3.tar.gz) = 24a6c9da6e89b1b82b7508f27f94098d989ff662 RMD160 (gdb-5.3.tar.gz) = 3f88dc11115de08708c50c73b10acaf00ed25e96 @@ -24,8 +24,6 @@ SHA1 (patch-as) = 77a2f8eb5e1f076cba915c80113cfe5bf617efaf SHA1 (patch-bfd_po_Make-in) = 9e09652c95dbea0d7017102546c4e959abc199da SHA1 (patch-gdb_Makefile.in) = 229c14522ddf8f5ddfdd414d77be1ddefc5635db SHA1 (patch-gdb_doc_Makefile.in) = 44f1fc8db2f37dae1ba0db3ae1192ec8ef47f4a3 -SHA1 (patch-gdb_gdbserver_Makefile.in) = 00e0015600847401ecd4471afd53c7e5030e1f15 -SHA1 (patch-gdb_gdbserver_gdbreplay.c) = cc19d75e78561d9ec2eb036435087d43b1af4cc7 SHA1 (patch-mmalloc_Makefile.in) = 1c45f0b326b838d442979e4ada45c0e5fc2da1c5 SHA1 (patch-ob) = 52c017dfa9f535edc9520144efa8ef04a8020832 SHA1 (patch-opcodes_po_Make-in) = c4f9d3d19a52acab6c18454b1ff95c9e1302c5bf diff --git a/devel/gdb/patches/patch-gdb_gdbserver_gdbreplay.c b/devel/gdb/patches/patch-gdb_gdbserver_gdbreplay.c deleted file mode 100644 index 82a8aa96359..00000000000 --- a/devel/gdb/patches/patch-gdb_gdbserver_gdbreplay.c +++ /dev/null @@ -1,26 +0,0 @@ -$NetBSD: patch-gdb_gdbserver_gdbreplay.c,v 1.1 2011/12/05 19:34:41 sbd Exp $ - -alloca(3) is not avalible with glibc on linux if -fno-builtin is used. - ---- gdb/gdbserver/gdbreplay.c.orig 2002-07-09 17:38:58.000000000 +0000 -+++ gdb/gdbserver/gdbreplay.c -@@ -62,12 +62,19 @@ perror_with_name (char *string) - char *combined; - - err = (errno < sys_nerr) ? sys_errlist[errno] : "unknown error"; -+#ifdef __linux__ -+ combined = (char *) malloc (strlen (err) + strlen (string) + 3); -+#else - combined = (char *) alloca (strlen (err) + strlen (string) + 3); -+#endif - strcpy (combined, string); - strcat (combined, ": "); - strcat (combined, err); - fprintf (stderr, "\n%s.\n", combined); - fflush (stderr); -+#ifdef __linux__ -+ free(combined); -+#endif - exit (1); - } - |