]> 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>
Thu, 10 Nov 2022 18:44:13 +0000 (01:44 +0700)
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 d56a5076b442dab455dd1ab6044468b02df5d715..1b8633c0ce289cf4b05d826e54e43065a9fa5b07 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 c7dd1b139fc08347186a1867f84767df335be81e..c811953491757553ca53c1baaf8a1adca245ad8a 100644 (file)
 # This is a test for the gdb command "dump".
 
 
+# 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
+}
+
 standard_testfile
 
 set options  {debug}