This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] testcases: Fix assorted problems related to powerpc
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: Luis Machado <luisgpm at linux dot vnet dot ibm dot com>, gdb-patches at sourceware dot org, Pedro Alves <pedro at codesourcery dot com>, Edjunior Barbosa Machado <emachado at linux dot vnet dot ibm dot com>
- Date: Sat, 27 Nov 2010 23:08:55 +0100
- Subject: Re: [PATCH] testcases: Fix assorted problems related to powerpc
- References: <1285767241.3709.3.camel@gargoyle> <20101109044704.GA24214@host0.dyn.jankratochvil.net>
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."