forked from Imagelibrary/binutils-gdb
target_ops mask_watchpoint: change int to target_hw_bp_type
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.
This commit is contained in:
committed by
Simon Marchi
parent
653090d321
commit
f4b0a6714a
@@ -1719,7 +1719,7 @@ get_trigger_type (enum target_hw_bp_type type)
|
||||
|
||||
static int
|
||||
ppc_linux_insert_mask_watchpoint (struct target_ops *ops, CORE_ADDR addr,
|
||||
CORE_ADDR mask, int rw)
|
||||
CORE_ADDR mask, enum target_hw_bp_type rw)
|
||||
{
|
||||
struct lwp_info *lp;
|
||||
struct ppc_hw_breakpoint p;
|
||||
@@ -1747,7 +1747,7 @@ ppc_linux_insert_mask_watchpoint (struct target_ops *ops, CORE_ADDR addr,
|
||||
|
||||
static int
|
||||
ppc_linux_remove_mask_watchpoint (struct target_ops *ops, CORE_ADDR addr,
|
||||
CORE_ADDR mask, int rw)
|
||||
CORE_ADDR mask, enum target_hw_bp_type rw)
|
||||
{
|
||||
struct lwp_info *lp;
|
||||
struct ppc_hw_breakpoint p;
|
||||
|
||||
Reference in New Issue
Block a user