summaryrefslogtreecommitdiff
path: root/config
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 /config
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 'config')
-rw-r--r--config/debug/gdb.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/debug/gdb.in b/config/debug/gdb.in
index 7fc539e..d92cd62 100644
--- a/config/debug/gdb.in
+++ b/config/debug/gdb.in
@@ -40,3 +40,9 @@ config GDB_HAS_IPA_LIB
config GDB_CONST_GET_THREAD_AREA
bool
default y if GDB_older_than_7_12
+
+# As of GDB 10.x gdbserver is now at the toplevel of the distributed
+# tarball (instead of a subdirectory of gdb)
+config GDB_GDBSERVER_TOPLEVEL
+ def_bool y
+ depends on GDB_10_2_or_later