2
0
mirror of git://git.code.sf.net/p/openocd/code synced 2025-08-05 17:40:16 +10:00
openocd/src
Evgeniy Naydanov fd62626dff target/breakpoints: fix types in watchpoint_add_internal()
There was a conflict:
1. commit 2cd8ebf44d ("breakpoints: use 64-bit type for watchpoint mask
   and value")
2. commit 0bf3373e80 ("target/breakpoints: Use 'unsigned int' for
   length")

The second commit was created erlier, but merged later so the types of
`mask` and `value` became `uint32_t` in `watchpoint_add_internal()`.

This created a bug:
`WATCHPOINT_IGNORE_DATA_VALUE_MASK` is defined as `(~(uint64_t)0)`.
Truncation to uint32_t makes it so the comparisons with the constant
don't work.

Change-Id: I19c414c351f52aff72a60330d83c29db7bbca375
Signed-off-by: Evgeniy Naydanov <evgeniy.naydanov@syntacore.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8500
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-by: Jan Matyas <jan.matyas@codasip.com>
Tested-by: jenkins
Reviewed-by: zapb <dev@zapb.de>
Reviewed-by: Karl Palsson <karlp@tweak.au>
2024-11-11 17:33:56 +00:00
..
flash flash: convert 'unsigned' to 'unsigned int' 2024-11-02 21:03:19 +00:00
helper gdb_server: Improve const correctness 2024-10-20 09:25:25 +00:00
jtag adapter/parport: Coding style changes 2024-11-02 21:06:05 +00:00
pld
rtos OpenOCD: drop comparison with true/false 2024-10-05 15:49:04 +00:00
rtt
server server: convert 'unsigned' to 'unsigned int' 2024-11-02 21:03:04 +00:00
svf openocd: convert 'unsigned' to 'unsigned int' 2024-10-05 15:46:25 +00:00
target target/breakpoints: fix types in watchpoint_add_internal() 2024-11-11 17:33:56 +00:00
transport openocd: convert 'unsigned' to 'unsigned int' 2024-10-05 15:46:25 +00:00
xsvf openocd: convert 'unsigned' to 'unsigned int' 2024-10-05 15:46:25 +00:00
hello.c
hello.h
main.c
Makefile.am
openocd.c openocd: convert 'unsigned' to 'unsigned int' 2024-10-05 15:46:25 +00:00
openocd.h