From 864de6eaf5a3c6e5dd8314ba0910c9d10e0c7dba Mon Sep 17 00:00:00 2001 From: Jie Zhang Date: Wed, 10 Mar 2010 10:33:44 -0500 Subject: gdb: bfin: add some Blackfin-specific tests Not sure this is still needed ... Signed-off-by: Jie Zhang Signed-off-by: Mike Frysinger --- gdb/testsuite/gdb.asm/asm-source.exp | 12 +++++++++++- gdb/testsuite/gdb.base/dump.exp | 7 +++++++ 2 files changed, 18 insertions(+), 1 deletion(-) 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} -- cgit v1.1