diff options
author | Chris Packham <judge.packham@gmail.com> | 2021-09-15 08:20:47 (GMT) |
---|---|---|
committer | Chris Packham <judge.packham@gmail.com> | 2021-09-15 08:20:57 (GMT) |
commit | f7e3d756271001782dafcffc311e76f146334993 (patch) | |
tree | 066ff738b0063888f411241e75534cb9f5e84c91 /packages/gdb/10.2/0004-xtensa-Fix-compilation-of-gdbserver.patch | |
parent | e5aaa1ca7a7876861d3b3900251c67d280bfafdf (diff) | |
parent | 8099a7475083e04429990c53cd490cda9eb63d68 (diff) |
Merge branch 'gdb10-arc-fixes' of https://github.com/foss-for-synopsys-dwc-arc-processors/crosstool-ng
Signed-off-by: Chris Packham <judge.packham@gmail.com>
Diffstat (limited to 'packages/gdb/10.2/0004-xtensa-Fix-compilation-of-gdbserver.patch')
-rw-r--r-- | packages/gdb/10.2/0004-xtensa-Fix-compilation-of-gdbserver.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/packages/gdb/10.2/0004-xtensa-Fix-compilation-of-gdbserver.patch b/packages/gdb/10.2/0004-xtensa-Fix-compilation-of-gdbserver.patch new file mode 100644 index 0000000..7ccfa68 --- /dev/null +++ b/packages/gdb/10.2/0004-xtensa-Fix-compilation-of-gdbserver.patch @@ -0,0 +1,30 @@ +From 6f110500ed04148e3734f5b6a4fc573477c8398a Mon Sep 17 00:00:00 2001 +From: Alexey Brodkin <abrodkin@synopsys.com> +Date: Tue, 24 Aug 2021 12:29:18 -0700 +Subject: [PATCH] xtensa: Fix compilation of gdbserver + +Otherwise a lot of errors like the following happen: +--------------------------->8--------------------------------- +Error: .../gdb/xtensa-linux-nat.c:66:17: error: 'gdbarch_pc_regnum' was not declared in this scope +Error: .../gdb/xtensa-linux-nat.c:68:17: error: 'gdbarch_ps_regnum' was not declared in this scope +Error: .../gdb/xtensa-linux-nat.c:71:38: error: no matching function for call to 'gdbarch_tdep::gdbarch_tdep(gdbarch*&)' +... +--------------------------->8--------------------------------- + +Initially caught by https://github.com/crosstool-ng/crosstool-ng/pull/1573/checks?check_run_id=3361561567 + +Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> +--- + gdb/xtensa-linux-nat.c | 1 + + 1 file changed, 1 insertion(+) + +--- a/gdb/xtensa-linux-nat.c ++++ b/gdb/xtensa-linux-nat.c +@@ -34,6 +34,7 @@ + #include "nat/gdb_ptrace.h" + #include <asm/ptrace.h> + ++#include "gdbarch.h" + #include "gregset.h" + #include "xtensa-tdep.h" + |