buildgcc: Remove GDB from crossgcc

It was added for a specific defunct project by a specific defunct
company.

Change-Id: Ib56ae0fdc1a50d24ff44c7879c43f8e94a5bfa95
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/58380
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by:  Felix Singer <felixsinger@posteo.net>
This commit is contained in:
Patrick Georgi
2021-10-16 10:50:00 +02:00
parent b5b22a74a6
commit f32eed1695
10 changed files with 18 additions and 161 deletions

View File

@ -1,14 +0,0 @@
diff -urN gdb-3.orig/gdb/configure.tgt gdb-8.3/gdb/configure.tgt
--- gdb-8.3.orig/gdb/configure.tgt 2019-02-27 05:51:48.000000000 +0100
+++ gdb-8.3/gdb/configure.tgt 2019-05-12 08:07:45.624984535 +0200
@@ -772,6 +772,10 @@
x86_64-*-rtems*)
gdb_target_obs="${amd64_tobjs} ${i386_tobjs} i386-bsd-tdep.o"
;;
+x86_64-*-*)
+ # Target: amd6
+ gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o"
+ ;;
xtensa*-*-*linux*)
# Target: GNU/Linux Xtensa
gdb_target_obs="xtensa-linux-tdep.o symfile-mem.o linux-tdep.o"

View File

@ -1,11 +0,0 @@
--- gdb-9.1.orig/gdb/Makefile.in 2020-02-08 13:50:14.000000000 +0100
+++ gdb-9.1/gdb/Makefile.in 2020-02-08 20:11:17.201244042 +0100
@@ -1606,7 +1606,7 @@
$(SUBDIR_TARGET_OBS) \
$(SUBDIR_GCC_COMPILE_OBS)
-SUBDIRS = doc @subdirs@ data-directory
+SUBDIRS = @subdirs@ data-directory
CLEANDIRS = $(SUBDIRS)
# List of subdirectories in the build tree that must exist.

View File

@ -1,19 +0,0 @@
diff -urN gdb-8.2.1.orig/gdb/python/python.c gdb-8.2.1/gdb/python/python.c
--- gdb-8.2.1.org/gdb/python/python.c 2019-01-04 12:48:32.440687758 +0100
+++ gdb-8.2.1/gdb/python/python.c 2019-01-04 12:54:09.917677688 +0100
@@ -1727,6 +1727,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 ();