diff options
author | sbd <sbd> | 2011-12-05 19:34:41 +0000 |
---|---|---|
committer | sbd <sbd> | 2011-12-05 19:34:41 +0000 |
commit | c7e0ba5ea844b315888c56f4e299784c25d60ee2 (patch) | |
tree | 7ef841f200963677cd81aa12939a1c83e4b02075 /devel/gdb | |
parent | 6f1633edba4746b88eec4d17fc24bc3112f2a3cb (diff) | |
download | pkgsrc-c7e0ba5ea844b315888c56f4e299784c25d60ee2.tar.gz |
alloca(3) is not avalible with glibc on linux if -fno-builtin is used.
Diffstat (limited to 'devel/gdb')
-rw-r--r-- | devel/gdb/distinfo | 3 | ||||
-rw-r--r-- | devel/gdb/patches/patch-gdb_gdbserver_gdbreplay.c | 26 |
2 files changed, 28 insertions, 1 deletions
diff --git a/devel/gdb/distinfo b/devel/gdb/distinfo index 253c562026f..0b300b6544a 100644 --- a/devel/gdb/distinfo +++ b/devel/gdb/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.13 2011/03/05 09:14:23 obache Exp $ +$NetBSD: distinfo,v 1.14 2011/12/05 19:34:41 sbd Exp $ SHA1 (gdb-5.3.tar.gz) = 24a6c9da6e89b1b82b7508f27f94098d989ff662 RMD160 (gdb-5.3.tar.gz) = 3f88dc11115de08708c50c73b10acaf00ed25e96 @@ -24,6 +24,7 @@ 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_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 new file mode 100644 index 00000000000..82a8aa96359 --- /dev/null +++ b/devel/gdb/patches/patch-gdb_gdbserver_gdbreplay.c @@ -0,0 +1,26 @@ +$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); + } + |