]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: bfin: add some Blackfin-specific tests
authorJie Zhang <jie@codesourcery.com>
Wed, 10 Mar 2010 15:33:44 +0000 (10:33 -0500)
committerMike Frysinger <vapier@gentoo.org>
Mon, 1 Jan 2024 23:23:25 +0000 (18:23 -0500)
Not sure this is still needed ...

Signed-off-by: Jie Zhang <jie@codesourcery.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
gdb/testsuite/gdb.asm/asm-source.exp
gdb/testsuite/gdb.base/dump.exp

index af852b731f5ee73ab560aaed1b75f45b4ea4a246..10438229e7eec49a4613e2057c2c75a866c63711 100644 (file)
@@ -43,8 +43,18 @@ switch -glob -- [istarget] {
     "aarch64*-*-*" {
        set asm-arch aarch64
     }
-    "bfin-*-*" {
+    "bfin-*-elf" {
         set asm-arch bfin
+       set debug-flags "-g"
+    }
+    "bfin-*-uclinux" {
+        set asm-arch bfin
+       set debug-flags "-g"
+       if ![target_info exists use_binfmt_flat] {
+           verbose "Skipping asm-source.exp for bfin-uclinux fdpic."
+           continue;
+       }
+       append link-flags " -elf2flt"
     }
     "frv-*-*" {
        set asm-arch frv
index b361d05d392f66ff5cb02f1cabb2289f93fcbd74..831af4af787e13e937de1ca22f76a3183010f54a 100644 (file)
 
 standard_testfile
 
+# Blackfin does not have MMU. The load address might change between
+# different invocations of application. So it is not guaranteed that
+# dump file from one invocation can be restored in another invocation.
+if { [istarget "bfin-*-uclinux"] || [istarget "bfin-*-linux-uclibc"] } then {
+    return 0
+}
+
+set testfile "dump"
+
 set options  {debug}
 
 set is64bitonly "no"