This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH c++ 04/12] target_ops masK_watchpoint: change int to target_hw_bp_type


On 11/03/2015 02:26 PM, Simon Marchi wrote:
> From: Simon Marchi <simon.marchi@polymtl.ca>
> 
> Fixes:
> 
> /home/simark/src/binutils-gdb/gdb/ppc-linux-nat.c: In function âint ppc_linux_insert_mask_watchpoint(target_ops*, CORE_ADDR, CORE_ADDR, int)â:
> /home/simark/src/binutils-gdb/gdb/ppc-linux-nat.c:1730:40: error: invalid conversion from âintâ to âtarget_hw_bp_typeâ [-fpermissive]
>    p.trigger_type = get_trigger_type (rw);
>                                         ^
> 
> gdb/ChangeLog:
> 
> 	* ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint): Change
> 	type of rw to enum target_hw_bp_type.
> 	(ppc_linux_remove_mask_watchpoint): Likewise.
> 	* target.c (target_insert_mask_watchpoint): Likewise.
> 	(target_remove_mask_watchpoint): Likewise.
> 	* target.h (target_insert_mask_watchpoint): Likewise.
> 	(target_remove_mask_watchpoint): Likewise.
> 	(struct target_ops) <to_insert_mask_watchpoint>: Likewise.
> 	(struct target_ops) <to_remove_mask_watchpoint>: Likewise.
> 	* target-delegates.c: Regenerate.

OK.  (nit: typo in subject)

Thanks,
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]