From 37385645af1a226df5fefb59aeed1cace35efa79 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 | 9 +++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) 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" -- cgit v1.2.1