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:13 +0700 |
commit | 864de6eaf5a3c6e5dd8314ba0910c9d10e0c7dba (patch) | |
tree | bb1b109b7c3e826d14cd666dcb6bed4bb1ccd142 | |
parent | dd3115e159a05aadac3a36cc82a09281bbd376b2 (diff) | |
download | gdb-864de6eaf5a3c6e5dd8314ba0910c9d10e0c7dba.zip gdb-864de6eaf5a3c6e5dd8314ba0910c9d10e0c7dba.tar.gz gdb-864de6eaf5a3c6e5dd8314ba0910c9d10e0c7dba.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 | 7 |
2 files changed, 18 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp index d56a507..1b8633c 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 c7dd1b1..c811953 100644 --- a/gdb/testsuite/gdb.base/dump.exp +++ b/gdb/testsuite/gdb.base/dump.exp @@ -17,6 +17,13 @@ # 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} |