mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 20:14:06 +08:00
properly parenthesize two macros
I happened to notice that a couple of macros in target.h weren't properly using parens and as a result had a strange definition. This patch adds the parens and then fixes the macros to be written as must have been intended. Tested by rebuilding. I'm pushing this as obvious. 2014-07-25 Tom Tromey <tromey@redhat.com> * target.h (target_stopped_data_address) (target_watchpoint_addr_within_range): Use "->", not ".". Fix parentheses.
This commit is contained in:
parent
7d0d9d2bee
commit
d8be293957
@ -1,3 +1,9 @@
|
||||
2014-07-25 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* target.h (target_stopped_data_address)
|
||||
(target_watchpoint_addr_within_range): Use "->", not ".". Fix
|
||||
parentheses.
|
||||
|
||||
2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
|
||||
|
||||
* avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
|
||||
|
@ -1822,12 +1822,12 @@ extern int target_ranged_break_num_registers (void);
|
||||
target_stopped_by_watchpoint, in such case place it to *ADDR_P. Only the
|
||||
INFERIOR_PTID task is being queried. */
|
||||
#define target_stopped_data_address(target, addr_p) \
|
||||
(*target.to_stopped_data_address) (target, addr_p)
|
||||
(*(target)->to_stopped_data_address) (target, addr_p)
|
||||
|
||||
/* Return non-zero if ADDR is within the range of a watchpoint spanning
|
||||
LENGTH bytes beginning at START. */
|
||||
#define target_watchpoint_addr_within_range(target, addr, start, length) \
|
||||
(*target.to_watchpoint_addr_within_range) (target, addr, start, length)
|
||||
(*(target)->to_watchpoint_addr_within_range) (target, addr, start, length)
|
||||
|
||||
/* Return non-zero if the target is capable of using hardware to evaluate
|
||||
the condition expression. In this case, if the condition is false when
|
||||
|
Loading…
Reference in New Issue
Block a user