diff options
author | Pedro Alves <palves@redhat.com> | 2011-05-31 21:18:56 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2011-05-31 21:18:56 +0000 |
commit | 0a5b1e09bf62fcbe776eb641640f802f64bb6169 (patch) | |
tree | dd65006627e5bfe52013d110020fb5255e17a3c7 /gdb/gdbserver/linux-x86-low.c | |
parent | 74ce8de7cab5dd5a4e098f226235256b976b5165 (diff) | |
download | gdb-0a5b1e09bf62fcbe776eb641640f802f64bb6169.zip gdb-0a5b1e09bf62fcbe776eb641640f802f64bb6169.tar.gz gdb-0a5b1e09bf62fcbe776eb641640f802f64bb6169.tar.bz2 |
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.
Diffstat (limited to 'gdb/gdbserver/linux-x86-low.c')
-rw-r--r-- | gdb/gdbserver/linux-x86-low.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbserver/linux-x86-low.c b/gdb/gdbserver/linux-x86-low.c index 027a563..dd69379 100644 --- a/gdb/gdbserver/linux-x86-low.c +++ b/gdb/gdbserver/linux-x86-low.c @@ -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); } |