diff options
author | Jie Zhang <jie@codesourcery.com> | 2010-03-10 10:33:44 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2024-01-01 18:23:25 -0500 |
commit | d07460446a94b5a1a3b68c9cdaee2b6b25227d67 (patch) | |
tree | 0041c68cb5a08844938073ac39621eb6578c8313 | |
parent | 0da902b23f5306c877d74ab9882b511967497731 (diff) | |
download | gdb-d07460446a94b5a1a3b68c9cdaee2b6b25227d67.zip gdb-d07460446a94b5a1a3b68c9cdaee2b6b25227d67.tar.gz gdb-d07460446a94b5a1a3b68c9cdaee2b6b25227d67.tar.bz2 |
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 af852b7..1043822 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 b361d05..831af4a 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" |