From 9219ce5de79cff8e503d6e25695bd370ccd52586 Mon Sep 17 00:00:00 2001 From: sbd Date: Mon, 5 Dec 2011 22:05:29 +0000 Subject: 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 --- devel/gdb/patches/patch-gdb_gdbserver_gdbreplay.c | 26 ----------------------- 1 file changed, 26 deletions(-) delete mode 100644 devel/gdb/patches/patch-gdb_gdbserver_gdbreplay.c (limited to 'devel/gdb/patches') 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); - } - -- cgit v1.2.3