aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.tgt
diff options
context:
space:
mode:
authorTiezhu Yang <yangtiezhu@loongson.cn>2022-02-11 20:17:56 +0800
committerTiezhu Yang <yangtiezhu@loongson.cn>2022-02-11 20:17:56 +0800
commitd203a0647fc73cad89307c37ae060b45aa28eab4 (patch)
tree295343d40a360fcea7a240b23d7923abf0d99bf0 /gdb/configure.tgt
parenta8c39d4c00d785febec3e340e6653611ce43329a (diff)
downloadgdb-d203a0647fc73cad89307c37ae060b45aa28eab4.zip
gdb-d203a0647fc73cad89307c37ae060b45aa28eab4.tar.gz
gdb-d203a0647fc73cad89307c37ae060b45aa28eab4.tar.bz2
gdb: LoongArch: Add Makefile, configure and NEWS
This commit adds Makefile, configure and NEWS for LoongArch. Signed-off-by: Zhensong Liu <liuzhensong@loongson.cn> Signed-off-by: Qing zhang <zhangqing@loongson.cn> Signed-off-by: Youling Tang <tangyouling@loongson.cn> Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Diffstat (limited to 'gdb/configure.tgt')
-rw-r--r--gdb/configure.tgt11
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/configure.tgt b/gdb/configure.tgt
index 56cdfef..65f3bf6 100644
--- a/gdb/configure.tgt
+++ b/gdb/configure.tgt
@@ -91,6 +91,11 @@ ia64*-*-*)
cpu_obs="ia64-tdep.o"
;;
+loongarch*-*-*)
+ # Target: LoongArch baremetal
+ cpu_obs="loongarch-tdep.o arch/loongarch.o"
+ ;;
+
riscv*-*-*)
cpu_obs="riscv-tdep.o riscv-none-tdep.o arch/riscv.o \
ravenscar-thread.o riscv-ravenscar-thread.o";;
@@ -341,6 +346,12 @@ lm32-*-*)
gdb_target_obs="lm32-tdep.o"
;;
+loongarch*-*-linux*)
+ # Target: LoongArch running Linux
+ gdb_target_obs="loongarch-linux-tdep.o glibc-tdep.o \
+ linux-tdep.o solib-svr4.o"
+ ;;
+
m32c-*-*)
# Target: Renesas M32C family
gdb_target_obs="m32c-tdep.o"