summaryrefslogtreecommitdiff
path: root/packages/gdb/10.2/0001-uclibc-no-gettimeofday-clobber.patch
diff options
context:
space:
mode:
authorAlexey Brodkin <abrodkin@synopsys.com>2020-05-27 10:10:31 (GMT)
committerChris Packham <judge.packham@gmail.com>2021-08-24 22:12:56 (GMT)
commit5463ab4bf6a0ba13e77c0d5d9cb4c2a4656639ca (patch)
treedf21473f332257b4b4bd2af45bac800f26f358c0 /packages/gdb/10.2/0001-uclibc-no-gettimeofday-clobber.patch
parentcf53d3736f014436431a1ac6ecae08d94ec7c9c0 (diff)
gdb: Add gdb-10.2
In GDB 10.x gdbserver was promoted to the top-level folder, see https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=919adfe8409211c726c1d05b47ca59890ee648f1 Which means it is no longer a subfolder in "gdb" and so we have to build gdbserver now exactly in the same way as normal native GDB. One interesting detail is gdbserver doesn't need to deal with target description in .xml so it doesn't depend on libexpat on target, thus we need to move libexpat explicit selection from do_gdb_backend() to its callers when building native [full] gdb as well as cross-gdb for the host. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> [cp: support old/new layout, regenerate patches] Signed-off-by: Chris Packham <judge.packham@gmail.com>
Diffstat (limited to 'packages/gdb/10.2/0001-uclibc-no-gettimeofday-clobber.patch')
-rw-r--r--packages/gdb/10.2/0001-uclibc-no-gettimeofday-clobber.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/packages/gdb/10.2/0001-uclibc-no-gettimeofday-clobber.patch b/packages/gdb/10.2/0001-uclibc-no-gettimeofday-clobber.patch
new file mode 100644
index 0000000..11cf2fb
--- /dev/null
+++ b/packages/gdb/10.2/0001-uclibc-no-gettimeofday-clobber.patch
@@ -0,0 +1,35 @@
+Improve gnulib in gdb's guess work, gettimeofday() works in uClibcm promise.
+
+This patch helps building x86_64-unknown-linux-uclibc toolchains, the final
+gdb-native step otherwise fails when linking the libinproctrace.so
+
+Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
+Signed-off-by: Alexey Neyman <stilor@att.net>
+
+---
+ gnulib/configure | 2 ++
+ gnulib/import/m4/gettimeofday.m4 | 2 ++
+ 2 files changed, 4 insertions(+)
+
+--- a/gnulib/configure
++++ b/gnulib/configure
+@@ -20745,6 +20745,8 @@
+ case "$host_os" in
+ # Guess all is fine on glibc systems.
+ *-gnu* | gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
++ # Guess all is fine on uclibc systems.
++ *-uclibc*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
+ # Guess all is fine on musl systems.
+ *-musl*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
+ # Guess no on native Windows.
+--- a/gnulib/import/m4/gettimeofday.m4
++++ b/gnulib/import/m4/gettimeofday.m4
+@@ -105,6 +105,8 @@
+ case "$host_os" in
+ # Guess all is fine on glibc systems.
+ *-gnu* | gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
++ # Guess all is fine on uclibc systems.
++ *-uclibc*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
+ # Guess all is fine on musl systems.
+ *-musl*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
+ # Guess no on native Windows.