[all-commits] [llvm/llvm-project] 21d912: [lldb][debugserver] Fix an off-by-one error in wat...

Jason Molenda via All-commits all-commits at lists.llvm.org
Mon Apr 7 11:11:53 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 21d912121c9f41385b165a736be787527f5bd7c2
      https://github.com/llvm/llvm-project/commit/21d912121c9f41385b165a736be787527f5bd7c2
  Author: Jason Molenda <jmolenda at apple.com>
  Date:   2025-04-07 (Mon, 07 Apr 2025)

  Changed paths:
    A lldb/test/API/functionalities/watchpoint/consecutive-watchpoints/Makefile
    A lldb/test/API/functionalities/watchpoint/consecutive-watchpoints/TestConsecutiveWatchpoints.py
    A lldb/test/API/functionalities/watchpoint/consecutive-watchpoints/main.c
    M lldb/tools/debugserver/source/DNBBreakpoint.cpp

  Log Message:
  -----------
  [lldb][debugserver] Fix an off-by-one error in watchpoint identification (#134314)

debugserver takes the address of a watchpoint exception and calculates
which watchpoint was responsible for it. There was an off-by-one error
in the range calculation which causes two watchpoints on consecutive
ranges to not correctly identify hits to the second watchpoint. The
result is that lldb wouldn't show the second watchpoint as ever being
hit.

rdar://145107575



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list