This is the mail archive of the gdb-patches@sources.redhat.com 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: [RFC] gdb.base/float.exp and gdb.base/commands.exp patch


> > If I change the current value of 57 to 82, the test will pass in powerpc
> > but fail on intel. Coz the generated line numbers on intel(57) and
> > PowerPC(82) are different.
>
> That's why you should accept both of them.
>


Here is the patch accepting both values.

------------------ patch -----------------------
diff -Naurp ./old/src/gdb/testsuite/gdb.base/commands.exp
./new/src/gdb/testsuite/gdb.base/commands.exp
--- ./old/src/gdb/testsuite/gdb.base/commands.exp       2005-03-07
13:19:16.000000000 -0600
+++ ./new/src/gdb/testsuite/gdb.base/commands.exp       2005-03-07
13:21:49.000000000 -0600
@@ -331,7 +331,7 @@ proc watchpoint_command_test {} {
     }
     send_gdb "continue\n"
     gdb_expect {
-       -re "Continuing.*\[Ww\]atchpoint $wp_id deleted because the
program has left the block in.*which its expression is
valid.*run.c:57.*$gdb_prompt $" {
+       -re "Continuing.*\[Ww\]atchpoint $wp_id deleted because the
program has left the block in.*which its expression is
valid.*run.c:(57|82).*$gdb_prompt $" {
            pass "continue with watch"
        }
        -re "$gdb_prompt $"   {fail "continue with watch"}
------------------- end patch ----------------------


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