diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:36:23 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:46:02 -0500 |
commit | c583a2520616c2736cffc389c89a48b159366e6c (patch) | |
tree | b4925f26506fcee96c16119431c01760f05db95d /gdb/nat/mips-linux-watch.h | |
parent | ca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff) | |
download | binutils-users/simark/clang-format.zip binutils-users/simark/clang-format.tar.gz binutils-users/simark/clang-format.tar.bz2 |
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdb/nat/mips-linux-watch.h')
-rw-r--r-- | gdb/nat/mips-linux-watch.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gdb/nat/mips-linux-watch.h b/gdb/nat/mips-linux-watch.h index c38669e..fb108f0 100644 --- a/gdb/nat/mips-linux-watch.h +++ b/gdb/nat/mips-linux-watch.h @@ -27,10 +27,11 @@ have hardware watchpoint-related structures. Define them below. */ #ifndef PTRACE_GET_WATCH_REGS -# define PTRACE_GET_WATCH_REGS 0xd0 -# define PTRACE_SET_WATCH_REGS 0xd1 +#define PTRACE_GET_WATCH_REGS 0xd0 +#define PTRACE_SET_WATCH_REGS 0xd1 -enum pt_watch_style { +enum pt_watch_style +{ pt_watch_style_mips32, pt_watch_style_mips64 }; @@ -67,6 +68,7 @@ struct mips64_watch_regs struct pt_watch_regs { enum pt_watch_style style; + union { struct mips32_watch_regs mips32; @@ -106,8 +108,8 @@ void mips_linux_watch_set_watchlo (struct pt_watch_regs *regs, int n, uint32_t mips_linux_watch_get_watchhi (struct pt_watch_regs *regs, int n); void mips_linux_watch_set_watchhi (struct pt_watch_regs *regs, int n, uint16_t value); -int mips_linux_watch_try_one_watch (struct pt_watch_regs *regs, - CORE_ADDR addr, int len, uint32_t irw); +int mips_linux_watch_try_one_watch (struct pt_watch_regs *regs, CORE_ADDR addr, + int len, uint32_t irw); void mips_linux_watch_populate_regs (struct mips_watchpoint *current_watches, struct pt_watch_regs *regs); uint32_t mips_linux_watch_type_to_irw (enum target_hw_bp_type type); |