This is the mail archive of the
archer-commits@sourceware.org
mailing list for the Archer project.
[SCM] archer-jankratochvil-fedora12: Merge remote branch 'origin/archer-pmuldoon-next-over-throw' into archer-jankratochvil-fedora12
- From: jkratoch at sourceware dot org
- To: archer-commits at sourceware dot org
- Date: 26 Nov 2009 18:27:13 -0000
- Subject: [SCM] archer-jankratochvil-fedora12: Merge remote branch 'origin/archer-pmuldoon-next-over-throw' into archer-jankratochvil-fedora12
The branch, archer-jankratochvil-fedora12 has been updated
via 2ff1047d27034e44f7e9a4dc1eb7e9b0b908e81b (commit)
via 608e0e8e342f34495ca13e6723f3d6903becaa85 (commit)
from b125345fb36abbb9bd00128e2093dc636a859da5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 2ff1047d27034e44f7e9a4dc1eb7e9b0b908e81b
Merge: b125345fb36abbb9bd00128e2093dc636a859da5 608e0e8e342f34495ca13e6723f3d6903becaa85
Author: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date: Thu Nov 26 19:26:54 2009 +0100
Merge remote branch 'origin/archer-pmuldoon-next-over-throw' into archer-jankratochvil-fedora12
-----------------------------------------------------------------------
Summary of changes:
gdb/testsuite/gdb.java/jnpe.exp | 23 ++++++++++++++---------
gdb/testsuite/gdb.java/jnpe.java | 2 +-
2 files changed, 15 insertions(+), 10 deletions(-)
First 500 lines of diff:
diff --git a/gdb/testsuite/gdb.java/jnpe.exp b/gdb/testsuite/gdb.java/jnpe.exp
index 74d4d58..e71391e 100644
--- a/gdb/testsuite/gdb.java/jnpe.exp
+++ b/gdb/testsuite/gdb.java/jnpe.exp
@@ -20,10 +20,10 @@ if $tracelevel then {
load_lib "java.exp"
set testfile "jnpe"
-set srcfile ${srcdir}/$subdir/${testfile}.java
+set srcfile ${testfile}.java
set binfile ${objdir}/${subdir}/${testfile}
-if { [compile_java_from_source ${srcfile} ${binfile} "-g"] != "" } {
- untested "Couldn't compile ${srcfile}"
+if { [compile_java_from_source ${srcdir}/$subdir/${srcfile} ${binfile} "-g"] != "" } {
+ untested "Couldn't compile ${srcdir}/$subdir/${srcfile}"
return -1
}
@@ -41,7 +41,7 @@ set line [gdb_get_line_number "break here" $testfile.java]
gdb_test "break $testfile.java:$line" ""
gdb_test "run" \
- "Current language.*java" \
+ "// break here.*" \
"run java next-over-throw"
# See whether we have the needed unwinder hooks.
@@ -50,9 +50,10 @@ gdb_test_multiple "print _Unwind_DebugHook" "check for unwinder hook in java" {
-re "= .*_Unwind_DebugHook.*\r\n$gdb_prompt $" {
pass "check for unwinder hook in java"
}
- -re "No symbol .* in current context.\r\n$gdb_prompt $" {
+ -re "No symbol .* in current context.?\r\n$gdb_prompt $" {
# Pass the test so we don't get bogus fails in the results.
- pass "check for unwinder hook in java"
+ setup_xfail *-*-*
+ fail "check for unwinder hook in java"
set ok 0
}
}
@@ -65,8 +66,12 @@ gdb_test "handle SIGSEGV nostop noprint" \
"SIGSEGV.*fault" \
"disable SIGSEGV for next-over-NPE"
-# We sometimes stop at line 37, not line 35. This seems to be a gcj
-# oddity -- another next will solve it.
+# The line where we stop differ according to gcj; check just we did not already
+# execute the catch point.
+
gdb_test "next" \
- "3\[57\].*" \
+ "" \
"next over NPE"
+
+gdb_breakpoint [gdb_get_line_number "catch point"]
+gdb_continue_to_breakpoint "catch point" ".*// catch point.*"
diff --git a/gdb/testsuite/gdb.java/jnpe.java b/gdb/testsuite/gdb.java/jnpe.java
index ffca3ab..3524830 100644
--- a/gdb/testsuite/gdb.java/jnpe.java
+++ b/gdb/testsuite/gdb.java/jnpe.java
@@ -32,7 +32,7 @@ public class jnpe
}
catch (NullPointerException n)
{
- System.out.println ("success");
+ System.out.println ("success"); // catch point
}
}
}
hooks/post-receive
--
Repository for Project Archer.