This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] testcases: Fix assorted problems related to powerpc


Jan Kratochvil <jan.kratochvil@redhat.com> writes:

> --- src/gdb/testsuite/gdb.base/watchpoint.exp	2010/09/04 15:30:09	1.31
> +++ src/gdb/testsuite/gdb.base/watchpoint.exp	2010/11/09 04:44:17	1.32
> @@ -683,7 +683,13 @@
>  	    "$watchpoint_msg \[0-9\]+: \\*\\(int \\*\\) 0"
>  	delete_breakpoints
>  
> -	gdb_test "watch *global_ptr" "$watchpoint_msg \[0-9\]+: \\*global_ptr"
> +	# This step requires two HW watchpoints.  Since PPC Server only has
> +	# a single one, it will use a SW watchpoint in this case.
> +	if [istarget powerpc64-*] {

Why powerpc64?

> +	    set watchpoint_msg "Watchpoint"
> +	}
> +
> +	gdb_test "watch *global_ptr" "$watchpoint_msg \[0-9\]+: \\\*global_ptr"

That has an extra backslash.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]