diff options
author | Jie Zhang <jie@codesourcery.com> | 2010-03-10 10:33:44 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-11-11 01:44:17 +0700 |
commit | 37385645af1a226df5fefb59aeed1cace35efa79 (patch) | |
tree | 8b424ec8739edc895c3ff7a22f4e838a092fb8aa | |
parent | bb386bf4b7d2c6558ee476de3a7f9e5c4270bd98 (diff) | |
download | binutils-gdb-37385645af1a226df5fefb59aeed1cace35efa79.tar.gz |
gdb: bfin: add some Blackfin-specific tests
Not sure this is still needed ...
Signed-off-by: Jie Zhang <jie@codesourcery.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r-- | gdb/testsuite/gdb.asm/asm-source.exp | 12 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/dump.exp | 9 |
2 files changed, 20 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp index d56a5076b44..1b8633c0ce2 100644 --- a/gdb/testsuite/gdb.asm/asm-source.exp +++ b/gdb/testsuite/gdb.asm/asm-source.exp @@ -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 diff --git a/gdb/testsuite/gdb.base/dump.exp b/gdb/testsuite/gdb.base/dump.exp index c7dd1b139fc..bb1c312c4dc 100644 --- a/gdb/testsuite/gdb.base/dump.exp +++ b/gdb/testsuite/gdb.base/dump.exp @@ -19,6 +19,15 @@ 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" |