aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2011-05-06 20:48:48 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2011-05-06 20:48:48 +0000
commita536c6d7e617a36585e04cb9b75639aa3d8037cd (patch)
treec032177c1a4e1ac99667acbbddd628fe3a9ae6ee /gdb/testsuite
parent7845b0133d5bcfc774246573cda7b369e226a6da (diff)
downloadgdb-a536c6d7e617a36585e04cb9b75639aa3d8037cd.zip
gdb-a536c6d7e617a36585e04cb9b75639aa3d8037cd.tar.gz
gdb-a536c6d7e617a36585e04cb9b75639aa3d8037cd.tar.bz2
ChangeLog:
* ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers. (ppu2spu_unwind_register): Mark pseudo registers unavailable. * spu-tdep.c (op_selb): Use correct value. testsuite/ChangeLog: * gdb.cell/bt.exp: Delete breakpoints before running to signal to avoid race condition. * gdb.cell/coremaker.c: Use small stack size. * gdb.cell/ea-standalone.exp: Use file name without path as argument to c_to. * gdb.cell/fork.exp: Allow other output when continuing to end.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog9
-rw-r--r--gdb/testsuite/gdb.cell/bt.exp1
-rw-r--r--gdb/testsuite/gdb.cell/coremaker.c9
-rw-r--r--gdb/testsuite/gdb.cell/ea-standalone.exp4
-rw-r--r--gdb/testsuite/gdb.cell/fork.exp2
5 files changed, 21 insertions, 4 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index ff015f0..c920d38 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,12 @@
+2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * gdb.cell/bt.exp: Delete breakpoints before running to signal
+ to avoid race condition.
+ * gdb.cell/coremaker.c: Use small stack size.
+ * gdb.cell/ea-standalone.exp: Use file name without path as
+ argument to c_to.
+ * gdb.cell/fork.exp: Allow other output when continuing to end.
+
2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdb.threads/corethreads.c: New file.
diff --git a/gdb/testsuite/gdb.cell/bt.exp b/gdb/testsuite/gdb.cell/bt.exp
index 8bff6f2..b1ee458 100644
--- a/gdb/testsuite/gdb.cell/bt.exp
+++ b/gdb/testsuite/gdb.cell/bt.exp
@@ -72,6 +72,7 @@ if ![runto_main] then {
return 0
}
+delete_breakpoints
gdb_test "continue" ".*Program received signal SIGABRT, Aborted.*"
gdb_test "backtrace" ".*abort.*crash_handler.*base.*offset.*<cross-architecture call>.*main.*speid.*argp.*envp.*at.*$spu2_file.c.*<cross-architecture call>.*spe_context_run.*indirect_handler.*base.*offset.*<cross-architecture call>.*main.*speid.*argp.*envp.*at.*$spu_file.c.*<cross-architecture call>.*spe_context_run.*spe_thread.*at.*$ppu_file.c.*"
diff --git a/gdb/testsuite/gdb.cell/coremaker.c b/gdb/testsuite/gdb.cell/coremaker.c
index f1754ce..48ad90c 100644
--- a/gdb/testsuite/gdb.cell/coremaker.c
+++ b/gdb/testsuite/gdb.cell/coremaker.c
@@ -43,18 +43,25 @@ int
main (void)
{
int thread_id[nr_t];
+ pthread_attr_t attr;
pthread_t pts[nr_t];
spe_context_ptr_t ctx[nr_t];
unsigned int value;
int cnt;
+ /* Use small thread stacks to speed up writing out core file. */
+ pthread_attr_init (&attr);
+ pthread_attr_setstacksize (&attr, 2*PTHREAD_STACK_MIN);
+
for (cnt = 0; cnt < nr_t; cnt++)
{
ctx[cnt] = spe_context_create (0, NULL);
thread_id[cnt]
- = pthread_create (&pts[cnt], NULL, &spe_thread, &ctx[cnt]);
+ = pthread_create (&pts[cnt], &attr, &spe_thread, &ctx[cnt]);
}
+ pthread_attr_destroy (&attr);
+
for (cnt = 0; cnt < nr_t; cnt++)
spe_out_intr_mbox_read (ctx[cnt], &value, 1, SPE_MBOX_ALL_BLOCKING);
diff --git a/gdb/testsuite/gdb.cell/ea-standalone.exp b/gdb/testsuite/gdb.cell/ea-standalone.exp
index 8753fa1..fd6f622 100644
--- a/gdb/testsuite/gdb.cell/ea-standalone.exp
+++ b/gdb/testsuite/gdb.cell/ea-standalone.exp
@@ -44,12 +44,12 @@ if ![runto_main] then {
return 0
}
-c_to "Marker SPUEA1" $srcfile
+c_to "Marker SPUEA1" $testfile.c
gdb_test "p myarray\[0\]" \
".*= 0" \
"p myarray\[0\]"
-c_to "Marker SPUEA2" $srcfile
+c_to "Marker SPUEA2" $testfile.c
gdb_test "p myarray\[0\]" \
".*= 1" \
"p myarray\[0\]"
diff --git a/gdb/testsuite/gdb.cell/fork.exp b/gdb/testsuite/gdb.cell/fork.exp
index ad5c75a..b8c603d 100644
--- a/gdb/testsuite/gdb.cell/fork.exp
+++ b/gdb/testsuite/gdb.cell/fork.exp
@@ -77,7 +77,7 @@ gdb_test_no_output "delete \$bpnum" "delete watchpoint"
gdb_test "continue" "Continuing\\..*Breakpoint \[0-9\]+, func \\(\\) at .*$spu_file.c:.*" \
"run until breakpoint hit"
-gdb_continue_to_end
+gdb_continue_to_end "" continue 1
gdb_exit