)]}'
{
  "commit": "b48dee387cae1f77c282fa0a899741b464f8d597",
  "tree": "a1addaaaf84dfad52b2b5d1f358fee3add235ca3",
  "parents": [
    "0f4b2f0d7144f78ef04636acf7ea2be030c61d4c"
  ],
  "author": {
    "name": "Med Ismail Bennani",
    "email": "ismail@bennani.ma",
    "time": "Fri Nov 13 09:54:26 2026 -0800"
  },
  "committer": {
    "name": "Med Ismail Bennani",
    "email": "ismail@bennani.ma",
    "time": "Fri Nov 13 17:32:08 2026 -0800"
  },
  "message": "[lldb] Let the user pick which debug scripts to load\n\nWhen `target.load-script-from-symbol-file` asks LLDB to warn about a debug\nscript instead of loading it, LLDB prints a warning for each script with the\ncommand to load it. In an interactive session, this patch replaces those\nwarnings with an `IOHandlerPicker`. It lists every such script with its name,\nmodule, status, and path, shows trusted scripts in green, and checks them by\ndefault. LLDB loads the scripts the user leaves checked.\n\nModules can load on any thread, including while the process runs and reads\nthe terminal, so `ModuleList` queues the scripts on the `Target`, and the\npicker shows up once the process stops. Each script is only offered once per\ntarget, even when its module loads again. Outside of an interactive session,\nLLDB keeps printing the warnings.\n\nThe picker now ignores ANSI escape codes when measuring values, so that\nthey can be colored, and can call back once it closes, so that a picker\nstarted with `RunIOHandlerAsync` can act on its result. This patch also adds `testing.trusted-auto-load-modules`,\navailable only in builds with assertions, so that tests can mark a module\u0027s\ndebug scripts as trusted without signing its symbol file.\n\nAssisted-by: Claude\nSigned-off-by: Med Ismail Bennani \u003cismail@bennani.ma\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "80effb981f24c281505a848809cff372d19c786b",
      "old_mode": 33188,
      "old_path": "lldb/include/lldb/Core/Debugger.h",
      "new_id": "1c13267bc06a76bd72c8666e7da4b5f92830ead5",
      "new_mode": 33188,
      "new_path": "lldb/include/lldb/Core/Debugger.h"
    },
    {
      "type": "modify",
      "old_id": "ad171d6e0118a037f8c03b1e8f2311204d09dd4c",
      "old_mode": 33188,
      "old_path": "lldb/include/lldb/Core/IOHandlerPicker.h",
      "new_id": "92c2db9ad55cea69d966c3070c473514849dc571",
      "new_mode": 33188,
      "new_path": "lldb/include/lldb/Core/IOHandlerPicker.h"
    },
    {
      "type": "modify",
      "old_id": "781683caf2db631411929d47338ef7e33381db85",
      "old_mode": 33188,
      "old_path": "lldb/include/lldb/Target/Target.h",
      "new_id": "765b96730ba1f476ca9eb989abc235277b53d447",
      "new_mode": 33188,
      "new_path": "lldb/include/lldb/Target/Target.h"
    },
    {
      "type": "modify",
      "old_id": "5f90c6b8283e094a74dbed1973afa3ccd71464ea",
      "old_mode": 33188,
      "old_path": "lldb/source/Core/CoreProperties.td",
      "new_id": "b92248df1dbc9127ce5ea0d90239ad520b959f46",
      "new_mode": 33188,
      "new_path": "lldb/source/Core/CoreProperties.td"
    },
    {
      "type": "modify",
      "old_id": "887853004b29e242e6a427bdcb3ea4e63e4bd676",
      "old_mode": 33188,
      "old_path": "lldb/source/Core/Debugger.cpp",
      "new_id": "1924c35cdcb707bdcecd389907f4e2908084ce53",
      "new_mode": 33188,
      "new_path": "lldb/source/Core/Debugger.cpp"
    },
    {
      "type": "modify",
      "old_id": "01cc4d67f06d7ff971b090a4489f044136bfecff",
      "old_mode": 33188,
      "old_path": "lldb/source/Core/IOHandlerPicker.cpp",
      "new_id": "0a6c4e6c37220ff03d8739f325fd6e81bec04771",
      "new_mode": 33188,
      "new_path": "lldb/source/Core/IOHandlerPicker.cpp"
    },
    {
      "type": "modify",
      "old_id": "807be5c29deb4d8f87171d1d997eee5d4ee26b2e",
      "old_mode": 33188,
      "old_path": "lldb/source/Core/ModuleList.cpp",
      "new_id": "7520ca14eb7d05725012c72b9330716e76cdd94c",
      "new_mode": 33188,
      "new_path": "lldb/source/Core/ModuleList.cpp"
    },
    {
      "type": "modify",
      "old_id": "262b559623edb5ee348b1e05b5cdee7f225dfbb3",
      "old_mode": 33188,
      "old_path": "lldb/source/Target/Target.cpp",
      "new_id": "1ffcd73a3dab062a749f72ffe7951d2e14c601d9",
      "new_mode": 33188,
      "new_path": "lldb/source/Target/Target.cpp"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "437e6ac22458516e610402d5eda8789fe69b5c6f",
      "new_mode": 33188,
      "new_path": "lldb/test/API/iohandler/picker-debug-scripts/Makefile"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "41c579f28f6253b3edecf4d2a90ae3c8d7470d0c",
      "new_mode": 33188,
      "new_path": "lldb/test/API/iohandler/picker-debug-scripts/TestPickerDebugScripts.py"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "236d95e3f0ed722a1392de6ef80667cb4e8f9bf2",
      "new_mode": 33188,
      "new_path": "lldb/test/API/iohandler/picker-debug-scripts/alpha.c"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "147142074e02dffb28a5af3e06e4ea8940899687",
      "new_mode": 33188,
      "new_path": "lldb/test/API/iohandler/picker-debug-scripts/beta.c"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "ef39028ce60c416a0e5c4e203295dbaeeecf62e4",
      "new_mode": 33188,
      "new_path": "lldb/test/API/iohandler/picker-debug-scripts/gamma.c"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "2d231792e6b82ebd92d5829734dd5d290aab2b32",
      "new_mode": 33188,
      "new_path": "lldb/test/API/iohandler/picker-debug-scripts/main.c"
    }
  ]
}
