From fc6e2f03be9f8b49cc017413f7d2c4f3645f46df Mon Sep 17 00:00:00 2001 From: Gary Benson Date: Tue, 17 Jun 2014 13:11:56 +0100 Subject: Whitespace changes This commit fixes various whitespace differences between i386-nat.c and i386-low.c. gdb/ 2014-06-18 Gary Benson * i386-nat.c: Whitespace changes. gdb/gdbserver/ 2014-06-18 Gary Benson * i386-low.c: Whitespace changes. --- gdb/gdbserver/i386-low.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'gdb/gdbserver/i386-low.c') diff --git a/gdb/gdbserver/i386-low.c b/gdb/gdbserver/i386-low.c index de2d11a4555..304d6f3e1f0 100644 --- a/gdb/gdbserver/i386-low.c +++ b/gdb/gdbserver/i386-low.c @@ -115,7 +115,7 @@ } while (0) /* Set in DR7 the RW and LEN fields for the I'th debug register. */ -#define I386_DR_SET_RW_LEN(state, i,rwlen) \ +#define I386_DR_SET_RW_LEN(state, i, rwlen) \ do { \ (state)->dr_control_mirror &= \ ~(0x0f << (DR_CONTROL_SHIFT + DR_CONTROL_SIZE * (i))); \ @@ -136,7 +136,7 @@ /* Types of operations supported by i386_handle_nonaligned_watchpoint. */ typedef enum { WP_INSERT, WP_REMOVE, WP_COUNT } i386_wp_op_t; - + /* Implementation. */ /* Clear the reference counts and forget everything we knew about the @@ -446,14 +446,16 @@ i386_low_insert_watchpoint (struct i386_debug_reg_state *state, && !(TARGET_HAS_DR_LEN_8 && len == 8)) || addr % len != 0) { - retval = i386_handle_nonaligned_watchpoint (&local_state, WP_INSERT, + retval = i386_handle_nonaligned_watchpoint (&local_state, + WP_INSERT, addr, len, type); } else { unsigned len_rw = i386_length_and_rw_bits (len, type); - retval = i386_insert_aligned_watchpoint (&local_state, addr, len_rw); + retval = i386_insert_aligned_watchpoint (&local_state, + addr, len_rw); } if (retval == 0) @@ -483,14 +485,16 @@ i386_low_remove_watchpoint (struct i386_debug_reg_state *state, && !(TARGET_HAS_DR_LEN_8 && len == 8)) || addr % len != 0) { - retval = i386_handle_nonaligned_watchpoint (&local_state, WP_REMOVE, + retval = i386_handle_nonaligned_watchpoint (&local_state, + WP_REMOVE, addr, len, type); } else { unsigned len_rw = i386_length_and_rw_bits (len, type); - retval = i386_remove_aligned_watchpoint (&local_state, addr, len_rw); + retval = i386_remove_aligned_watchpoint (&local_state, + addr, len_rw); } if (retval == 0) -- cgit v1.2.1