[Lldb-commits] [lldb] [lldb] Add lookup by name to SBValue.child (PR #118814)

2024-12-06 Thread Greg Clayton via lldb-commits
@@ -23,6 +23,13 @@ STRING_EXTENSION_OUTSIDE(SBValue) if -count <= key < count: key %= count return self.sbvalue.GetChildAtIndex(key) +elif isinstance(key, str): +if child :=

[Lldb-commits] [lldb] [lldb] Fix off by one in array index check in Objective C runtime code (PR #118995)

2024-12-06 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/118995 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Fix off by one in array index check in Objective C runtime plugin (PR #118995)

2024-12-06 Thread David Spickett via lldb-commits
DavidSpickett wrote: Seems obvious but perhaps Apple folks can confirm that there isn't some hidden detail here, or a larger mistake hiding in the background. https://github.com/llvm/llvm-project/pull/118995 ___ lldb-commits mailing list lldb-commits@

[Lldb-commits] [lldb] [lldb] Add lookup by name to SBValue.child (PR #118814)

2024-12-06 Thread Dave Lee via lldb-commits
@@ -23,6 +23,13 @@ STRING_EXTENSION_OUTSIDE(SBValue) if -count <= key < count: key %= count return self.sbvalue.GetChildAtIndex(key) +elif isinstance(key, str): +if child :=

[Lldb-commits] [lldb] Fix typo in `StackFrame.cpp` (PR #118991)

2024-12-06 Thread Ping Charoenwet via lldb-commits
https://github.com/phnx created https://github.com/llvm/llvm-project/pull/118991 None >From 70aaac37244f2eab385e69dbdd00ebe01caa2400 Mon Sep 17 00:00:00 2001 From: Ping Charoenwet Date: Fri, 6 Dec 2024 22:52:50 +0700 Subject: [PATCH] Fix typo in `StackFrame.cpp` --- lldb/source/Target/StackFr

[Lldb-commits] [lldb] [lldb] Fix typo in `StackFrame.cpp` (PR #118991)

2024-12-06 Thread Ping Charoenwet via lldb-commits
https://github.com/phnx edited https://github.com/llvm/llvm-project/pull/118991 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Fix typo in `StackFrame.cpp` (PR #118991)

2024-12-06 Thread via lldb-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[Lldb-commits] [lldb] [lldb] Fix typo in `StackFrame.cpp` (PR #118991)

2024-12-06 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Ping Charoenwet (phnx) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/118991.diff 1 Files Affected: - (modified) lldb/source/Target/StackFrame.cpp (+4-4) ``diff diff --git a/lldb/source/Target/StackFrame.cpp

[Lldb-commits] [lldb] [lldb] Add a compiler/interpreter of LLDB data formatter bytecode to lldb/examples (PR #113398)

2024-12-06 Thread Jonas Devlieghere via lldb-commits
@@ -0,0 +1,167 @@ +""" +This is the llvm::Optional data formatter from llvm/utils/lldbDataFormatters.py +with the implementation replaced by bytecode. +""" + +from __future__ import annotations +from formatter_bytecode import * +import lldb + + +def __lldb_init_module(debugger, in

[Lldb-commits] [lldb] [lldb] Add a per-CU API to read the SDK (PR #119022)

2024-12-06 Thread Adrian Prantl via lldb-commits
https://github.com/adrian-prantl created https://github.com/llvm/llvm-project/pull/119022 None >From aadb454d36e4c5058fffcc946a9ce97d7e25bf39 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Fri, 6 Dec 2024 12:09:27 -0800 Subject: [PATCH] [lldb] Add a per-CU API to read the SDK --- lldb/in

[Lldb-commits] [lldb] [lldb] Add a per-CU API to read the SDK (PR #119022)

2024-12-06 Thread Adrian Prantl via lldb-commits
https://github.com/adrian-prantl edited https://github.com/llvm/llvm-project/pull/119022 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Add a per-CU API to read the SDK (PR #119022)

2024-12-06 Thread via lldb-commits
https://github.com/Alexizx0078 approved this pull request. https://github.com/llvm/llvm-project/pull/119022 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [LLDB] Add SBProgress so Python scripts can also report progress (PR #119052)

2024-12-06 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond created https://github.com/llvm/llvm-project/pull/119052 Recently I've been working on a lot of internal Python tooling, and in certain cases I want to report async to the script over DAP. Progress.h already handles this, so I've exposed Progress via the SB API so Py

[Lldb-commits] [lldb] [LLDB] Add SBProgress so Python scripts can also report progress (PR #119052)

2024-12-06 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Jacob Lalonde (Jlalond) Changes Recently I've been working on a lot of internal Python tooling, and in certain cases I want to report async to the script over DAP. Progress.h already handles this, so I've exposed Progress via the SB API so

[Lldb-commits] [lldb] Convert the StackFrameList mutex to a shared mutex. (PR #117252)

2024-12-06 Thread via lldb-commits
jimingham wrote: Does this look better? The situation is that there are really only three "writer" API's: `GetOnlyConcreteFramesUpTo`,` `Clear` and the second half of `GetFramesUpTo`, and only Clear is called with the intention of changing the list contents. And none of these were client API

[Lldb-commits] [lldb] Convert the StackFrameList mutex to a shared mutex. (PR #117252)

2024-12-06 Thread via lldb-commits
@@ -771,24 +809,38 @@ void StackFrameList::SelectMostRelevantFrame() { LLDB_LOG(log, "No relevant frame!"); } -uint32_t StackFrameList::GetSelectedFrameIndex( -SelectMostRelevant select_most_relevant) { - std::lock_guard guard(m_mutex); +uint32_t +StackFrameList::GetS

<    1   2