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 | 9219ce5de79cff8e503d6e25695bd370ccd52586 (patch) | |
tree | 5c678021f6aa81a6c6363954a51c5c57ca131f58 /devel/gdb/patches | |
parent | 6e5ff61a8abfc07fe5f6933e60086523843ecd8d (diff) | |
download | pkgsrc-9219ce5de79cff8e503d6e25695bd370ccd52586.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/patches')
-rw-r--r-- | devel/gdb/patches/patch-gdb_gdbserver_gdbreplay.c | 26 |
1 files changed, 0 insertions, 26 deletions
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); - } - |