[all-commits] [llvm/llvm-project] e8c8cb: [lldb] Don't adopt in the ExecutionContext from au...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Fri Apr 17 10:05:30 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e8c8cbb06a5285b19a009af15d05d3f9fd09bfee
      https://github.com/llvm/llvm-project/commit/e8c8cbb06a5285b19a009af15d05d3f9fd09bfee
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2026-04-17 (Fri, 17 Apr 2026)

  Changed paths:
    M lldb/source/Core/Debugger.cpp
    A lldb/test/API/functionalities/breakpoint/breakpoint_command_auto_continue/Makefile
    A lldb/test/API/functionalities/breakpoint/breakpoint_command_auto_continue/TestBreakpointCommandAutoContinue.py
    A lldb/test/API/functionalities/breakpoint/breakpoint_command_auto_continue/bpcmd.py
    A lldb/test/API/functionalities/breakpoint/breakpoint_command_auto_continue/main.cpp

  Log Message:
  -----------
  [lldb] Don't adopt in the ExecutionContext from auto-continue events (#191433)

When a breakpoint auto-continues, the event handler receives a "stopped
but restarted" event. During the transition where we step over the
breakpoint (before continuing), the public state hasn't yet been set to
running. This caused the `DefaultEventHandler` to call
`ExecutionContextRef` with `adopt_selected=true`, which would fetch
stale thread/frame state and needlessly (and incorrectly) interrupt the
target to compute the execution context (used by the statusline). This
PR fixes that by not doing that.

Fixes #190956

Co-authored-by: Jim Ingham <jingham at apple.com>



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