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: [win32] Fix watchpoint support


Pierre Muller wrote:
Great,

I tried it out and it seems indeed to work.
I got +35 expected passes and -14 unexpected failures,
there difference is probably due to several tests that are
not performed because of previous errors within the same
test.


I frequently see intermitent problems like:


 Running ../../../gdb-server_submit/src/gdb/testsuite/gdb.base/langs.exp ...
 PASS: gdb.base/langs.exp: break on nonexistent function in langs.exp
-PASS: gdb.base/langs.exp: show language at csub in langs.exp
-PASS: gdb.base/langs.exp: backtrace in langs.exp
-PASS: gdb.base/langs.exp: up to foo in langs.exp
-PASS: gdb.base/langs.exp: show language at foo in langs.exp
-PASS: gdb.base/langs.exp: up to cppsub_ in langs.exp
-PASS: gdb.base/langs.exp: show language at cppsub_ in langs.exp
-PASS: gdb.base/langs.exp: up to fsub in langs.exp
-PASS: gdb.base/langs.exp: show language at fsub in langs.exp
-PASS: gdb.base/langs.exp: up to langs0__2do in langs.exp
-PASS: gdb.base/langs.exp: show language at langs0__2do in langs.exp
-PASS: gdb.base/langs.exp: up to main in langs.exp
-PASS: gdb.base/langs.exp: show language at main in langs.exp
-PASS: gdb.base/langs.exp: continue to exit in langs.exp
+ERROR: Couldn't send show language to GDB.
+UNRESOLVED: gdb.base/langs.exp: show language at csub in langs.exp
+ERROR: Couldn't send bt to GDB.
+UNRESOLVED: gdb.base/langs.exp: backtrace in langs.exp
+ERROR: Couldn't send up to GDB.
+UNRESOLVED: gdb.base/langs.exp: up to foo in langs.exp
+ERROR: Couldn't send show language to GDB.
+UNRESOLVED: gdb.base/langs.exp: show language at foo in langs.exp
+ERROR: Couldn't send up to GDB.
+UNRESOLVED: gdb.base/langs.exp: up to cppsub_ in langs.exp
+ERROR: Couldn't send show language to GDB.
+UNRESOLVED: gdb.base/langs.exp: show language at cppsub_ in langs.exp

Or like:

(...)
-PASS: gdb.base/return2.exp: continue to double_func
-PASS: gdb.base/return2.exp: return from double_func
-PASS: gdb.base/return2.exp: double value returned successfully
-PASS: gdb.base/return2.exp: validate result value not equal to program return value
+gdb compile failed, exit status is 1
+UNTESTED: gdb.base/return2.exp: return2.exp

The test that fails tends to change between runs.

I find myself redoing those tests that failed to be sure
it wasn't a regression.

  Just out of curiosity, why did you choose 0xfff0ff0
for dr[6].

The 80386 Programmer's Reference Manual says the debug handler should move zeros to DR6 to avoid confusion, but I've read somewhere that Windows expects it to be set to 0xffff0ff0 (undefined bits set to 1, could be 0xffff1ff0 too). Can't find the reference now. Bummer. In fact, if you search for it on google.com/codesearch, you'll see a lot of people choosing it too. I don't think it really makes a difference -- but that's no reason to keep a TODO there. I've tested with 0 and 0xffff0ff0, and saw no difference.

--
Cheers,
Pedro Alves




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