2011-05-31 Pedro Alves <pedro@codesourcery.com>
gdb/gdbserver/ * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in assertion. * win32-i386-low.c (i386_dr_low_get_addr): Ditto. gdb/testsuite/ * gdb.arch/i386-dr3-watch.c: New file. * gdb.arch/i386-dr3-watch.exp: New file.
This commit is contained in:
parent
74ce8de7ca
commit
0a5b1e09bf
6 changed files with 105 additions and 2 deletions
|
@ -508,7 +508,7 @@ i386_dr_low_get_addr (int regnum)
|
|||
ptid_t ptid = ptid_of (lwp);
|
||||
|
||||
/* DR6 and DR7 are retrieved with some other way. */
|
||||
gdb_assert (DR_FIRSTADDR <= regnum && regnum < DR_LASTADDR);
|
||||
gdb_assert (DR_FIRSTADDR <= regnum && regnum <= DR_LASTADDR);
|
||||
|
||||
return x86_linux_dr_get (ptid, regnum);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue