summaryrefslogtreecommitdiff
path: root/util/crossgcc/patches/gdb-7.9.1_pythonhome.patch
diff options
context:
space:
mode:
authorStefan Reinauer <stefan.reinauer@coreboot.org>2016-04-21 18:10:15 -0700
committerStefan Reinauer <stefan.reinauer@coreboot.org>2016-05-04 20:21:29 +0200
commit498f3d0cd59d3c3e6ff2ef43f24e205b249556f8 (patch)
treea32088167d3997503867b463bf4454d5463f1c9e /util/crossgcc/patches/gdb-7.9.1_pythonhome.patch
parentae8e3a0bbb1d028e9d18572304ec93e1495976f5 (diff)
downloadcoreboot-498f3d0cd59d3c3e6ff2ef43f24e205b249556f8.tar.xz
buildgcc: Update gdb and expat
Update gdb to 7.11 and expat to 2.1.1 riscv64-elf is still broken. Change-Id: Id7605f4274fcb15f9c3e366f5c492328f70f7956 Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-on: https://review.coreboot.org/14461 Tested-by: build bot (Jenkins) Reviewed-by: Idwer Vollering <vidwer@gmail.com>
Diffstat (limited to 'util/crossgcc/patches/gdb-7.9.1_pythonhome.patch')
-rw-r--r--util/crossgcc/patches/gdb-7.9.1_pythonhome.patch19
1 files changed, 0 insertions, 19 deletions
diff --git a/util/crossgcc/patches/gdb-7.9.1_pythonhome.patch b/util/crossgcc/patches/gdb-7.9.1_pythonhome.patch
deleted file mode 100644
index 7e34c7afa6..0000000000
--- a/util/crossgcc/patches/gdb-7.9.1_pythonhome.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-diff -ur gdb-7.9.1/gdb/python/python.c gdb-7.9.1.patched/gdb/python/python.c
---- gdb-7.9.1/gdb/python/python.c 2015-05-13 10:36:05.000000000 -0700
-+++ gdb-7.9.1.patched/gdb/python/python.c 2015-06-09 13:13:24.824178760 -0700
-@@ -1681,6 +1681,15 @@
- #endif
- #endif
-
-+ char readlinkbuffer[BUFSIZ];
-+ int readlinks = readlink("/proc/self/exe", readlinkbuffer, BUFSIZ - 1);
-+ readlinkbuffer[readlinks] = 0;
-+ char *executeablepath = dirname(readlinkbuffer);
-+ char *pythonhome = malloc(strlen(executeablepath) + strlen("/../") + 2);
-+ strcpy(pythonhome, executeablepath);
-+ strcat(pythonhome, "/../");
-+ setenv("PYTHONHOME", pythonhome, 1);
-+
- Py_Initialize ();
- PyEval_InitThreads ();
-