diff options
author | Gary Benson <gbenson@redhat.com> | 2014-08-06 14:00:14 +0100 |
---|---|---|
committer | Gary Benson <gbenson@redhat.com> | 2014-08-28 15:06:46 +0100 |
commit | f7160e97410b4b65330e5f23d82e8879c908de50 (patch) | |
tree | cc38b2636046f15e9eda8bcc2c564503264e8b6f /gdb/gdbserver/ChangeLog | |
parent | 38e08fcac0966f52dac0ec97870fdea4de304d86 (diff) | |
download | gdb-f7160e97410b4b65330e5f23d82e8879c908de50.zip gdb-f7160e97410b4b65330e5f23d82e8879c908de50.tar.gz gdb-f7160e97410b4b65330e5f23d82e8879c908de50.tar.bz2 |
Convert fatal to gdb_assert in both i386_dr_low_set_addr
This commit converts if..fatal checks in both i386_dr_low_set_addr
implementations to gdb_asserts. It's not obvious from the context,
but the conditional in both cases is changed to match the equivalent
conditional in the i386_dr_low_get_addr implementations. Nothing
fundamental has changed because DR_FIRSTADDR is zero. This commit
also removes a vague comment in Linux i386_dr_low_get_addr. I could
have reworded the comment (and replicated it three times for the other
identical assertions) but I think the existence of specific functions
for the status and control registers makes it fairly obvious what is
going on.
gdb/gdbserver/ChangeLog:
* linux-x86-low.c (i386_dr_low_set_addr): Replace check with
gdb_assert.
(i386_dr_low_get_addr): Remove vague comment.
* win32-i386-low.c (i386_dr_low_set_addr): Replace check with
gdb_assert.
Diffstat (limited to 'gdb/gdbserver/ChangeLog')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 778500f..ec3fc93 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,5 +1,13 @@ 2014-08-28 Gary Benson <gbenson@redhat.com> + * linux-x86-low.c (i386_dr_low_set_addr): Replace check with + gdb_assert. + (i386_dr_low_get_addr): Remove vague comment. + * win32-i386-low.c (i386_dr_low_set_addr): Replace check with + gdb_assert. + +2014-08-28 Gary Benson <gbenson@redhat.com> + * inferiors.c (get_thread_process): Replace check with gdb_assert. * linux-low.c (linux_wait_for_event_filtered): Replace fatal with internal_error. |