summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.mi
diff options
context:
space:
mode:
authorqiyao <qiyao>2011-08-14 15:58:39 +0000
committerqiyao <qiyao>2011-08-14 15:58:39 +0000
commita6af9ecb64b951167cfb8ba2b6114ee6823d09a5 (patch)
treed4de0c7b90c5298ec1d7df6f4c37d391e23184c7 /gdb/testsuite/gdb.mi
parent14a099b7953934872c85fbd60e5bd15b5a5dd545 (diff)
downloadgdb-a6af9ecb64b951167cfb8ba2b6114ee6823d09a5.tar.gz
gdb/testsuite/
* gdb.base/maint.exp: set data_section to ".neardata". * gdb.base/savedregs.c (thrower): Trigger SIGILL on NO-MMU machine. * gdb.base/savedregs.exp: Handle SIGILL. * gdb.mi/mi-syn-frame.c (bar): Trigger SIGILL on NO-MMU machine. * gdb.xml/tdesc-regs.exp: Set core-regs for tic6x-*-*.
Diffstat (limited to 'gdb/testsuite/gdb.mi')
-rw-r--r--gdb/testsuite/gdb.mi/mi-syn-frame.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-syn-frame.c b/gdb/testsuite/gdb.mi/mi-syn-frame.c
index ddfc08e39d9..332f246a788 100644
--- a/gdb/testsuite/gdb.mi/mi-syn-frame.c
+++ b/gdb/testsuite/gdb.mi/mi-syn-frame.c
@@ -25,9 +25,18 @@ foo (void)
void
bar (void)
{
- char *nuller = 0;
+ *(char *)0 = 0; /* try to cause a segfault */
+
+ /* On MMU-less system, previous memory access to address zero doesn't
+ trigger a SIGSEGV. Trigger a SIGILL. Each arch should define its
+ own illegal instruction here. */
+#if defined(__arm__)
+ asm(".word 0xf8f00000");
+#elif defined(__TMS320C6X__)
+ asm(".word 0x56454313");
+#else
+#endif
- *nuller = 'a'; /* try to cause a segfault */
}
void