[Lldb-commits] [lldb] [lldb] Make LineEntry class and make AddressRange member optional (PR #158811)

2025-09-16 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben created https://github.com/llvm/llvm-project/pull/158811 None >From 8ccfc58fd99356e88a16337f1fee21f104c49aa5 Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Tue, 16 Sep 2025 01:10:16 -0700 Subject: [PATCH] [lldb] Make LineEntry class and make AddressRang

[Lldb-commits] [lldb] [lldb] Turn LineEntry into a class and make AddressRange member optional (PR #158811)

2025-09-16 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben edited https://github.com/llvm/llvm-project/pull/158811 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Turn LineEntry into a class and make AddressRange member optional (PR #158811)

2025-09-16 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben edited https://github.com/llvm/llvm-project/pull/158811 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [clang] [clang-tools-extra] [compiler-rt] [lldb] [Clang] [Sema] Make `-Wincompatible-pointer-types` an error by default (PR #157364)

2025-09-15 Thread Med Ismail Bennani via lldb-commits
medismailben wrote: Thanks, feel free to merge whenever https://github.com/llvm/llvm-project/pull/157364 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb/API] Mark SBValue with error as invalid (PR #158759)

2025-09-15 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben updated https://github.com/llvm/llvm-project/pull/158759 >From b204ad16b8584a796585fb376b5258e3240fa71b Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Mon, 15 Sep 2025 18:09:34 -0700 Subject: [PATCH] [lldb/API] Mark SBValue with error as invalid This pa

[Lldb-commits] [lldb] [lldb/API] Mark SBValue with error as invalid (PR #158759)

2025-09-15 Thread Med Ismail Bennani via lldb-commits
medismailben wrote: I fixed the formatting most of the failures. I only need to find the right way to return the errors through DAP: prior to this change, errors were returned as part of the value object string, since the object was still considered valid but now that it's marked invalid, the

[Lldb-commits] [lldb] [lldb/API] Mark SBValue with error as invalid (PR #158759)

2025-09-15 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben updated https://github.com/llvm/llvm-project/pull/158759 >From 9744d606c8ddc03aeba105c89647af4c009dac28 Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Mon, 15 Sep 2025 18:04:48 -0700 Subject: [PATCH] [lldb/API] Mark SBValue with error as invalid This pa

[Lldb-commits] [lldb] [LLDB] [Tests] Downgrade -Wincompatible-pointer-types to a warning in some tests (PR #158756)

2025-09-15 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben approved this pull request. https://github.com/llvm/llvm-project/pull/158756 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb/docs] Breakdown python reference into multiple files (PR #158331)

2025-09-13 Thread Med Ismail Bennani via lldb-commits
medismailben wrote: > > The one downside to this is that any links that we've handed out to the > > documentation in the past will get broken. Is there any way that we can > > keep the links that used to be in python-reference.rst, but have them > > redirected to the new files? > > Other than

[Lldb-commits] [lldb] Add a scripted way to re-present a stop location (PR #158128)

2025-09-13 Thread Med Ismail Bennani via lldb-commits
@@ -0,0 +1,45 @@ +import lldb + +class FacadeExample: +def __init__(self, bkpt, extra_args, dict): +self.bkpt = bkpt +self.extra_args = extra_args +self.base_sym = None +self.facade_locs = [] +self.facade_locs_desc = [] +self.cur

[Lldb-commits] [lldb] Add a scripted way to re-present a stop location (PR #158128)

2025-09-13 Thread Med Ismail Bennani via lldb-commits
@@ -0,0 +1,45 @@ +import lldb + +class FacadeExample: +def __init__(self, bkpt, extra_args, dict): +self.bkpt = bkpt +self.extra_args = extra_args +self.base_sym = None +self.facade_locs = [] +self.facade_locs_desc = [] +self.cur

[Lldb-commits] [lldb] [lldb/docs] Breakdown python reference into multiple files (PR #158331)

2025-09-13 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben edited https://github.com/llvm/llvm-project/pull/158331 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Add a scripted way to re-present a stop location (PR #158128)

2025-09-12 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben edited https://github.com/llvm/llvm-project/pull/158128 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Add a scripted way to re-present a stop location (PR #158128)

2025-09-12 Thread Med Ismail Bennani via lldb-commits
@@ -529,6 +561,20 @@ class Breakpoint : public std::enable_shared_from_this, m_name_list.erase(name_to_remove); } + enum TypeDisplay { medismailben wrote: Can we add a comment for this ? https://github.com/llvm/llvm-project/pull/158128

[Lldb-commits] [lldb] [lldb/docs] Breakdown python reference into multiple files (PR #158331)

2025-09-12 Thread Med Ismail Bennani via lldb-commits
@@ -0,0 +1,420 @@ +# Writing Custom Commands + +### Create a new command using a Python function + +Python functions can be used to create new LLDB command interpreter commands, +which will work like all the natively defined lldb commands. This provides a +very flexible and easy w

[Lldb-commits] [lldb] [lldb/docs] Breakdown python reference into multiple files (PR #158331)

2025-09-12 Thread Med Ismail Bennani via lldb-commits
@@ -0,0 +1,420 @@ +# Writing Custom Commands + +### Create a new command using a Python function + +Python functions can be used to create new LLDB command interpreter commands, +which will work like all the natively defined lldb commands. This provides a +very flexible and easy w

[Lldb-commits] [lldb] Add a scripted way to re-present a stop location (PR #158128)

2025-09-12 Thread Med Ismail Bennani via lldb-commits
@@ -0,0 +1,45 @@ +import lldb + +class FacadeExample: +def __init__(self, bkpt, extra_args, dict): +self.bkpt = bkpt +self.extra_args = extra_args +self.base_sym = None +self.facade_locs = [] +self.facade_locs_desc = [] +self.cur

[Lldb-commits] [lldb] [lldb/docs] Breakdown python reference into multiple files (PR #158331)

2025-09-12 Thread Med Ismail Bennani via lldb-commits
medismailben wrote: > The one downside to this is that any links that we've handed out to the > documentation in the past will get broken. Is there any way that we can keep > the links that used to be in python-reference.rst, but have them redirected > to the new files? > > Other than that it

[Lldb-commits] [lldb] [lldb/docs] Breakdown python reference into multiple files (PR #158331)

2025-09-12 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben closed https://github.com/llvm/llvm-project/pull/158331 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Add a scripted way to re-present a stop location (PR #158128)

2025-09-12 Thread Med Ismail Bennani via lldb-commits
@@ -0,0 +1,45 @@ +import lldb + +class FacadeExample: +def __init__(self, bkpt, extra_args, dict): +self.bkpt = bkpt +self.extra_args = extra_args +self.base_sym = None +self.facade_locs = [] +self.facade_locs_desc = [] +self.cur

[Lldb-commits] [lldb] Add a scripted way to re-present a stop location (PR #158128)

2025-09-12 Thread Med Ismail Bennani via lldb-commits
@@ -0,0 +1,45 @@ +import lldb + +class FacadeExample: +def __init__(self, bkpt, extra_args, dict): +self.bkpt = bkpt +self.extra_args = extra_args +self.base_sym = None +self.facade_locs = [] +self.facade_locs_desc = [] +self.cur

[Lldb-commits] [lldb] [lldb] Introduce ScriptedFrame affordance (PR #149622)

2025-09-07 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben updated https://github.com/llvm/llvm-project/pull/149622 >From d5d9e01134e0cf78974cd5f50f028bd71756c24f Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Thu, 4 Sep 2025 14:59:44 -0700 Subject: [PATCH] [lldb] Introduce ScriptedFrame affordance This patch i

[Lldb-commits] [lldb] [lldb] Introduce ScriptedFrame affordance (PR #149622)

2025-09-07 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben closed https://github.com/llvm/llvm-project/pull/149622 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Correct style of error messages (PR #156774)

2025-09-06 Thread Med Ismail Bennani via lldb-commits
medismailben wrote: Great! May be we should do this for: - `Status::Status(std::string err_str)` - `static Status FromErrorString(const char *str)` - `static Status FromErrorStringWithFormat(const char *format, ...)` - ` template static Status FromErrorStringWithFormatv(const char *format, Arg

[Lldb-commits] [lldb] [lldb] Correct style of error messages (PR #156774)

2025-09-04 Thread Med Ismail Bennani via lldb-commits
medismailben wrote: Also, it would be great if we had a clang-tidy checker as part of the CI testing to catching this inconsistencies earlier 👀 https://github.com/llvm/llvm-project/pull/156774 ___ lldb-commits mailing list lldb-commits@lists.llvm.org

[Lldb-commits] [lldb] [lldb] Introduce ScriptedFrame affordance (PR #149622)

2025-09-04 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben updated https://github.com/llvm/llvm-project/pull/149622 >From 440e6ce8e00130621ec57160ffd80e54e179a5d2 Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Thu, 4 Sep 2025 10:52:00 -0700 Subject: [PATCH] [lldb] Introduce ScriptedFrame affordance This patch i

[Lldb-commits] [lldb] [lldb] Introduce ScriptedFrame affordance (PR #149622)

2025-09-04 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben updated https://github.com/llvm/llvm-project/pull/149622 >From a38ed4d99315224889c503d2ce31362be28b28eb Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Wed, 3 Sep 2025 18:32:22 -0700 Subject: [PATCH] [lldb] Introduce ScriptedFrame affordance This patch i

[Lldb-commits] [lldb] [lldb] Introduce ScriptedFrame affordance (PR #149622)

2025-09-04 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben updated https://github.com/llvm/llvm-project/pull/149622 >From df4c41ddc529dce9aac96a698199cb6ed4506000 Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Thu, 4 Sep 2025 10:21:46 -0700 Subject: [PATCH] [lldb] Introduce ScriptedFrame affordance This patch i

[Lldb-commits] [lldb] [lldb] Introduce ScriptedFrame (PR #149622)

2025-09-03 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben edited https://github.com/llvm/llvm-project/pull/149622 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Introduce ScriptedFrame affordance (PR #149622)

2025-09-03 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben edited https://github.com/llvm/llvm-project/pull/149622 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Introduce ScriptedFrame (PR #149622)

2025-09-02 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben updated https://github.com/llvm/llvm-project/pull/149622 >From 583a83e1001a824fcfbc9a0811af3fbaf446e5ca Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Tue, 2 Sep 2025 17:36:27 -0700 Subject: [PATCH 1/2] [lldb] Mark scripted frames as synthetic instead of

[Lldb-commits] [lldb] [lldb] Introduce ScriptedFrame affordance (PR #149622)

2025-09-02 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben ready_for_review https://github.com/llvm/llvm-project/pull/149622 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] WIP: Stop using replicated variable ids (PR #124232)

2025-08-27 Thread Med Ismail Bennani via lldb-commits
medismailben wrote: @Anthony-Eid Almost there! Looks like all the tests are passing now you just need to fix the formatting for the python changes (you can run `pip3 install darker && darker -r HEAD~ $LLVM/lldb`) and mark the PR ready for review. Once you do that I'll add some reviewer to this

[Lldb-commits] [lldb] WIP: Stop using replicated variable ids (PR #124232)

2025-08-27 Thread Med Ismail Bennani via lldb-commits
medismailben wrote: Looking at the logs: - `TestDAP_variables.py` fails on [line 290](https://github.com/llvm/llvm-project/blob/47f0fb9057c0c3c3d0c294dd608df0702706d990/lldb/test/API/tools/lldb-dap/variables/TestDAP_variables.py#L290). It looks like we call `self.set_local("argc", 123)`. I went

[Lldb-commits] [lldb] WIP: Stop using replicated variable ids (PR #124232)

2025-08-27 Thread Med Ismail Bennani via lldb-commits
medismailben wrote: > @medismailben lldb-dap is usable from Zed with my most recent commit now! Do > you have time this week to pair on getting this mergable? I'm pretty sure > using new variable ids is going to break some tests and idk if there's > formatters or anything else I have to fix to

[Lldb-commits] [lldb] WIP: Stop using replicated variable ids (PR #124232)

2025-08-27 Thread Med Ismail Bennani via lldb-commits
medismailben wrote: Sounds good, let me know when you're ready 🙂 https://github.com/llvm/llvm-project/pull/124232 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] WIP: Stop using replicated variable ids (PR #124232)

2025-08-23 Thread Med Ismail Bennani via lldb-commits
medismailben wrote: @Anthony-Eid could you rebase this PR, that'd be better to look at it https://github.com/llvm/llvm-project/pull/124232 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-co

[Lldb-commits] [lldb] [lldb] Add Pythonic API to SBStructuredData extension (PR #155061)

2025-08-23 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben approved this pull request. Very cool! LGTM! https://github.com/llvm/llvm-project/pull/155061 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb/crashlog] Implement speculative binary lookup for target creation (PR #154975)

2025-08-22 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben updated https://github.com/llvm/llvm-project/pull/154975 >From 97d05a3a6ab2d8c9d61f20383dbabe84891e17a2 Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Fri, 22 Aug 2025 14:18:01 -0700 Subject: [PATCH] [lldb/crashlog] Implement speculative binary lookup fo

[Lldb-commits] [lldb] [lldb/crashlog] Implement speculative binary lookup for target creation (PR #154975)

2025-08-22 Thread Med Ismail Bennani via lldb-commits
@@ -340,11 +341,101 @@ def find_matching_slice(self): print( ( "error\nerror: unable to locate '%s' with UUID %s" -% (self.path, self.get_normalized_uuid_string()) +

[Lldb-commits] [lldb] [lldb/crashlog] Implement speculative binary lookup for target creation (PR #154975)

2025-08-22 Thread Med Ismail Bennani via lldb-commits
@@ -340,11 +341,101 @@ def find_matching_slice(self): print( ( "error\nerror: unable to locate '%s' with UUID %s" -% (self.path, self.get_normalized_uuid_string()) +

[Lldb-commits] [lldb] [lldb/crashlog] Implement speculative binary lookup for target creation (PR #154975)

2025-08-22 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben created https://github.com/llvm/llvm-project/pull/154975 This patch changes the way the main executable gets looked up when creating the target in the crashlog script. On macOS, when a process crashes while being built from a user home directory, the path to th

[Lldb-commits] [lldb] [lldb/crashlog] Avoid StopAtEntry when launch crashlog in interactive mode (PR #154651)

2025-08-21 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben updated https://github.com/llvm/llvm-project/pull/154651 >From 04db318bbd6b3c4e9245a11a711960cd016dcb19 Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Thu, 21 Aug 2025 22:55:59 -0700 Subject: [PATCH] [lldb/crashlog] Avoid StopAtEntry when launch crashlog

[Lldb-commits] [lldb] [lldb/crashlog] Avoid StopAtEntry when launch crashlog in interactive mode (PR #154651)

2025-08-21 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben ready_for_review https://github.com/llvm/llvm-project/pull/154651 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb/crashlog] Avoid StopAtEntry when launch crashlog in interactive mode (PR #154651)

2025-08-21 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben updated https://github.com/llvm/llvm-project/pull/154651 >From 5bd75225a9a934be76ce7b337c1defb1e25e9153 Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Wed, 20 Aug 2025 17:07:33 -0700 Subject: [PATCH] [lldb/crashlog] Avoid StopAtEntry when launch crashlog

[Lldb-commits] [lldb] [lldb/API] Add setters to SBStructuredData (PR #154445)

2025-08-20 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben updated https://github.com/llvm/llvm-project/pull/154445 >From 65b7e3a056f7b3c76217364d700e577f029e4190 Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Wed, 20 Aug 2025 16:59:25 -0700 Subject: [PATCH] [lldb/API] Add setters to SBStructuredData This patch

[Lldb-commits] [lldb] [lldb/API] Add setters to SBStructuredData (PR #154445)

2025-08-20 Thread Med Ismail Bennani via lldb-commits
@@ -109,6 +109,22 @@ class SBStructuredData { /// Return the generic pointer if this data structure is a generic type. lldb::SBScriptObject GetGenericValue() const; + void SetValueForKey(const char *key, SBStructuredData &value) const; medismailben wrote:

[Lldb-commits] [lldb] [lldb] Add "settings modified" command (PR #152338)

2025-08-08 Thread Med Ismail Bennani via lldb-commits
medismailben wrote: I'm with @DavidSpickett here: I think we should just show the original value next to the modified value: ``` (lldb) settings set use-color false (lldb) settings show use-color use-color (boolean) = false (default: true) ``` It makes discovery easier. We could also change th

[Lldb-commits] [lldb] [lldb] Support the Python stable C API in PythonString::AsUTF8 (PR #152599)

2025-08-08 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben approved this pull request. https://github.com/llvm/llvm-project/pull/152599 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Only use PyConfig when LLDB_EMBED_PYTHON_HOME is enabled (PR #152588)

2025-08-07 Thread Med Ismail Bennani via lldb-commits
@@ -134,9 +115,30 @@ struct InitializePythonRAII { PyImport_AppendInittab("_lldb", LLDBSwigPyInit); } +#if LLDB_EMBED_PYTHON_HOME medismailben wrote: Was moving the initialization past the `if (!Py_IsInitialized()) {` needed ? https://github.com/ll

[Lldb-commits] [lldb] [lldb] Introduce ScriptedFrame (PR #149622)

2025-08-05 Thread Med Ismail Bennani via lldb-commits
@@ -204,9 +209,64 @@ bool ScriptedThread::LoadArtificialStackFrames() { SymbolContext sc; symbol_addr.CalculateSymbolContext(&sc); -StackFrameSP synth_frame_sp = std::make_shared( +return std::make_shared( this->shared_from_this(), idx, idx, cfa, cfa_i

[Lldb-commits] [lldb] [lldb] Introduce ScriptedFrame (PR #149622)

2025-08-05 Thread Med Ismail Bennani via lldb-commits
@@ -0,0 +1,192 @@ +//===-- ScriptedFrame.cpp -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[Lldb-commits] [lldb] [lldb] Introduce ScriptedFrame (PR #149622)

2025-08-05 Thread Med Ismail Bennani via lldb-commits
@@ -0,0 +1,192 @@ +//===-- ScriptedFrame.cpp -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[Lldb-commits] [lldb] [lldb] Introduce ScriptedFrame (PR #149622)

2025-08-05 Thread Med Ismail Bennani via lldb-commits
@@ -0,0 +1,192 @@ +//===-- ScriptedFrame.cpp -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[Lldb-commits] [lldb] [lldb] Introduce ScriptedFrame (PR #149622)

2025-08-05 Thread Med Ismail Bennani via lldb-commits
@@ -0,0 +1,192 @@ +//===-- ScriptedFrame.cpp -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[Lldb-commits] [lldb] [lldb] Reimplement PythonObject::Dump using the limited API (PR #152055)

2025-08-04 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben approved this pull request. https://github.com/llvm/llvm-project/pull/152055 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Reimplement PythonObject::Dump using the limited API (PR #152055)

2025-08-04 Thread Med Ismail Bennani via lldb-commits
@@ -131,23 +132,30 @@ void StructuredPythonObject::Serialize(llvm::json::OStream &s) const { // PythonObject void PythonObject::Dump(Stream &strm) const { - if (m_py_obj) { -FILE *file = llvm::sys::RetryAfterSignal(nullptr, ::tmpfile); -if (file) { - ::PyObject_

[Lldb-commits] [lldb] [lldb] Use Python Bytes instead of Buffer for Binary I/O (NFC) (PR #152031)

2025-08-04 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben approved this pull request. https://github.com/llvm/llvm-project/pull/152031 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Reimplement PythonObject::Dump using the limited API (PR #152055)

2025-08-04 Thread Med Ismail Bennani via lldb-commits
@@ -131,23 +132,30 @@ void StructuredPythonObject::Serialize(llvm::json::OStream &s) const { // PythonObject void PythonObject::Dump(Stream &strm) const { - if (m_py_obj) { -FILE *file = llvm::sys::RetryAfterSignal(nullptr, ::tmpfile); -if (file) { - ::PyObject_

[Lldb-commits] [lldb] [lldb] Fix TLS support on Darwin platforms (PR #151601)

2025-08-04 Thread Med Ismail Bennani via lldb-commits
@@ -10,10 +10,12 @@ touch_shared(); // Create some TLS storage within the static executable. __thread int var_static = 44; +__thread int var_static2 = 22; void *fn_static(void *param) { var_static *= 2; + var_static2 *= 3; medismailben wrote: ind

[Lldb-commits] [lldb] [lldb] Eliminate PyGILState_Check (NFC) (PR #152006)

2025-08-04 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben approved this pull request. https://github.com/llvm/llvm-project/pull/152006 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Eliminate InitializePythonRAII::InitializeThreadsPrivate (NFC) (PR #151780)

2025-08-01 Thread Med Ismail Bennani via lldb-commits
@@ -137,7 +137,16 @@ struct InitializePythonRAII { config.install_signal_handlers = 0; Py_InitializeFromConfig(&config); PyConfig_Clear(&config); -InitializeThreadsPrivate(); + +// The only case we should go further and acquire the GIL: it is unlocked. +

[Lldb-commits] [lldb] [lldb] Reimplment PyRun_SimpleString using the Python stable C API (PR #151777)

2025-08-01 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/151777 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][rpc] Use Clang attributes to keep track of pointer plus len (PR #148981)

2025-07-28 Thread Med Ismail Bennani via lldb-commits
medismailben wrote: I have some reservations about the effectiveness of this new approach: Instead of having a list in lldb-rpc with your ptr + length exceptions, now we need to mark manually every single method at the SBAPI level. If a new method gets added the SBAPI and the contributor doesn

[Lldb-commits] [lldb] Switch the ScriptedBreakpointResolver over to the ScriptedInterface form (PR #150720)

2025-07-26 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben approved this pull request. Beautiful! LGTM with comments! https://github.com/llvm/llvm-project/pull/150720 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-c

[Lldb-commits] [lldb] Switch the ScriptedBreakpointResolver over to the ScriptedInterface form (PR #150720)

2025-07-26 Thread Med Ismail Bennani via lldb-commits
@@ -0,0 +1,100 @@ +//===-- ScriptedBreakpointPythonInterface.cpp ---===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier:

[Lldb-commits] [lldb] Switch the ScriptedBreakpointResolver over to the ScriptedInterface form (PR #150720)

2025-07-26 Thread Med Ismail Bennani via lldb-commits
@@ -0,0 +1,100 @@ +//===-- ScriptedBreakpointPythonInterface.cpp ---===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier:

[Lldb-commits] [lldb] Switch the ScriptedBreakpointResolver over to the ScriptedInterface form (PR #150720)

2025-07-26 Thread Med Ismail Bennani via lldb-commits
@@ -50,8 +50,28 @@ void BreakpointResolverScripted::CreateImplementationIfNeeded( if (!script_interp) return; - m_implementation_sp = script_interp->CreateScriptedBreakpointResolver( - m_class_name.c_str(), m_args, breakpoint_sp); + m_interface_sp = script_interp

[Lldb-commits] [lldb] [lldb][rpc] Upstream RPC Client Library Emitters (PR #147655)

2025-07-24 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben approved this pull request. Overall, LGTM with comments and linking failure addressed. https://github.com/llvm/llvm-project/pull/147655 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi

[Lldb-commits] [lldb] [lldb][rpc] Upstream RPC Client Library Emitters (PR #147655)

2025-07-24 Thread Med Ismail Bennani via lldb-commits
medismailben wrote: Looks like there is a linking issue on Linux: ``` 2025-07-24T23:47:48.0834355Z [6326/6332] Linking CXX executable bin/lldb-rpc-gen 2025-07-24T23:47:48.0834814Z FAILED: bin/lldb-rpc-gen 2025-07-24T23:47:48.0852723Z : && /opt/llvm/bin/clang++ -gmlt -fPIC -fno-semantic-interpo

[Lldb-commits] [lldb] [lldb][rpc] Upstream RPC Client Library Emitters (PR #147655)

2025-07-24 Thread Med Ismail Bennani via lldb-commits
@@ -306,6 +348,28 @@ bool EmitAmalgamatedServerHeader(const std::vector &Files) { return true; } +bool EmitAmalgamatedLibraryHeader(const std::vector &Files) { medismailben wrote: Not sure what "Amalgamated" means here, I'd like a more self-explaining name

[Lldb-commits] [lldb] [lldb][rpc] Upstream RPC Client Library Emitters (PR #147655)

2025-07-24 Thread Med Ismail Bennani via lldb-commits
@@ -46,6 +48,12 @@ static std::string GetServerOutputDirectory() { return std::string(Path); } +static std::string GetLibraryOutputDirectory() { + llvm::SmallString<128> Path(OutputDir.getValue()); medismailben wrote: nit: I was wondering if we should make

[Lldb-commits] [lldb] [lldb][rpc] Upstream RPC Client Library Emitters (PR #147655)

2025-07-24 Thread Med Ismail Bennani via lldb-commits
@@ -0,0 +1,20 @@ +#ifndef LLDB_API_SBRPC_CHECKARRAYPTR_H +#define LLDB_API_SBRPC_CHECKARRAYPTR_H + +#include +#include medismailben wrote: Make sure to remove this from every test https://github.com/llvm/llvm-project/pull/147655 __

[Lldb-commits] [lldb] [lldb][rpc] Upstream RPC Client Library Emitters (PR #147655)

2025-07-24 Thread Med Ismail Bennani via lldb-commits
@@ -0,0 +1,20 @@ +#ifndef LLDB_API_SBRPC_CHECKARRAYPTR_H +#define LLDB_API_SBRPC_CHECKARRAYPTR_H + +#include +#include + +#include "lldb/API/SBDefines.h" + +namespace lldb { +class LLDB_API SBRPC_CHECKARRAYPTR { medismailben wrote: +1 https://github.com/llvm/l

[Lldb-commits] [lldb] [lldb] Document the SBDebugger public interface (PR #147621)

2025-07-09 Thread Med Ismail Bennani via lldb-commits
@@ -153,70 +249,221 @@ class LLDB_API SBDebugger { /// lldb::SBStructuredData settings = debugger.GetSetting("target.arg0"); /// lldb::SBStructuredData settings = debugger.GetSetting("target"); /// - /// \param[out] setting + /// \param[in] setting /// Property set

[Lldb-commits] [lldb] [lldb] Document the SBDebugger public interface (PR #147621)

2025-07-09 Thread Med Ismail Bennani via lldb-commits
@@ -106,44 +124,122 @@ class LLDB_API SBDebugger { bool &is_debugger_specific); #endif + /// Get structured progress data from an event. + /// + /// \param [in] event + /// The event to extract the progress information from. + /

[Lldb-commits] [lldb] [lldb] Document the SBDebugger public interface (PR #147621)

2025-07-09 Thread Med Ismail Bennani via lldb-commits
@@ -106,44 +124,122 @@ class LLDB_API SBDebugger { bool &is_debugger_specific); #endif + /// Get structured progress data from an event. + /// + /// \param [in] event + /// The event to extract the progress information from. + /

[Lldb-commits] [lldb] [lldb] Document the SBDebugger public interface (PR #147621)

2025-07-09 Thread Med Ismail Bennani via lldb-commits
@@ -106,44 +124,122 @@ class LLDB_API SBDebugger { bool &is_debugger_specific); #endif + /// Get structured progress data from an event. medismailben wrote: nit: ```suggestion /// Get progress structured data from

[Lldb-commits] [lldb] [lldb] Document the SBDebugger public interface (PR #147621)

2025-07-09 Thread Med Ismail Bennani via lldb-commits
medismailben wrote: > We definitely need more documentation, but I do sometimes get annoyed by it > when it obscures browsing through the source code by stretching out the class > definition. If that includes important information about the API, then I > think it's worth it, but some of these

[Lldb-commits] [lldb] [lldb][RPC] Upstream lldb-rpc-gen tool (PR #138031)

2025-07-03 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben approved this pull request. https://github.com/llvm/llvm-project/pull/138031 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb/crashlog] Make registers always available & fix x29/x30 parsing (PR #145104)

2025-06-20 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben updated https://github.com/llvm/llvm-project/pull/145104 >From c83fa6be0c41102d4c0df424574b215d4f83f5f2 Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Fri, 20 Jun 2025 14:45:11 -0700 Subject: [PATCH 1/2] [lldb/crashlog] Fix register parsing for arm64 usi

[Lldb-commits] [lldb] [lldb/crashlog] Make registers always available & fix x29/x30 parsing (PR #145104)

2025-06-20 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben created https://github.com/llvm/llvm-project/pull/145104 This patch addresses 2 issues: 1. It makes registers available on non-crashed threads all the time 2. It fixes arm64 registers parsing for registers that don't use the `x` prefix (`fp` -> `x29` / `lr` -> `x

[Lldb-commits] [lldb] [lldb] Add support for x86_64h to scripted process (NFC) (PR #145099)

2025-06-20 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben created https://github.com/llvm/llvm-project/pull/145099 This patch adds support to the haswell sub-architecture (x86_64h) to scripted processes. rdar://147208252 >From bf21c2e9c59939956230d3093d5705e3e8fde12e Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani

[Lldb-commits] [lldb] [lldb/cmake] Plugin layering enforcement mechanism (PR #144543)

2025-06-20 Thread Med Ismail Bennani via lldb-commits
medismailben wrote: Cool stuff! https://github.com/llvm/llvm-project/pull/144543 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb/crashlog] Make interactive mode the new default (PR #144839)

2025-06-18 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben closed https://github.com/llvm/llvm-project/pull/144839 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb/crashlog] Make interactive mode the new default (PR #144839)

2025-06-18 Thread Med Ismail Bennani via lldb-commits
medismailben wrote: This is just fixing the test failure introduced by #94575 https://github.com/llvm/llvm-project/pull/144839 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb/crashlog] Make interactive mode the new default (PR #144839)

2025-06-18 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben created https://github.com/llvm/llvm-project/pull/144839 This patch makes interactive mode as the default when using the crashlog command. It replaces the existing `-i|--interactive` flag with a new `-m|--mode` option, that can either be `interactive` or `batch`

[Lldb-commits] [lldb] [lldb][target] Add progress report for wait-attaching to process (PR #144768)

2025-06-18 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben edited https://github.com/llvm/llvm-project/pull/144768 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][target] Add progress report for wait-attaching to process (PR #144768)

2025-06-18 Thread Med Ismail Bennani via lldb-commits
@@ -3546,6 +3546,8 @@ llvm::Expected Target::GetTraceOrCreate() { } Status Target::Attach(ProcessAttachInfo &attach_info, Stream *stream) { + std::unique_ptr attach_progress; + attach_progress = std::make_unique("Waiting to attach to process"); medismailben

[Lldb-commits] [lldb] [lldb][target] Add progress report for wait-attaching to process (PR #144768)

2025-06-18 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben approved this pull request. Cool! LGTM with comment addressed. https://github.com/llvm/llvm-project/pull/144768 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/ll

[Lldb-commits] [lldb] [lldb][target] Add progress report for wait-attaching to process (PR #144768)

2025-06-18 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben edited https://github.com/llvm/llvm-project/pull/144768 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Add a python JIT loader class. (PR #142514)

2025-06-03 Thread Med Ismail Bennani via lldb-commits
medismailben wrote: > Hey @clayborg, this is pretty cool. I'm glad you were able to use and extend > the ScriptedPythonInterface to implement this, hopefully it wasn't too > complicated. LGTM! I meant LGTM on the scripting side of things. I still thing we should address Jim's comments: > For

[Lldb-commits] [lldb] Add a pythin JIT loader class. (PR #142514)

2025-06-03 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben approved this pull request. Hey @clayborg, this is pretty cool. I'm glad you were able to use and extend the ScriptedPythonInterface to implement this, hopefully it wasn't too complicated. LGTM! https://github.com/llvm/llvm-project/pull/142514 __

[Lldb-commits] [lldb] [lldb] Add Python properties to SBBreakpoint(Location) (PR #142215)

2025-05-30 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben approved this pull request. https://github.com/llvm/llvm-project/pull/142215 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Add Python properties to SBBreakpoint(Location) (PR #142215)

2025-05-30 Thread Med Ismail Bennani via lldb-commits
medismailben wrote: Cool! Would be nice to change some of the existing tests to make sure these work as expected. https://github.com/llvm/llvm-project/pull/142215 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin

[Lldb-commits] [lldb] [lldb-dap] attempt to fix test_disassemble (PR #140975)

2025-05-21 Thread Med Ismail Bennani via lldb-commits
medismailben wrote: That doesn't solve the issue: ``` File "/Users/mib/Developer/open-source/llvm.org/lldb/test/API/tools/lldb-dap/disassemble/TestDAP_disassemble.py", line 28, in test_disassemble self.assertIn("location", pc_assembly, "Source location missing.") AssertionError: 'locatio

[Lldb-commits] [lldb] [lldb-dap] fix disassembly request instruction offset handling (PR #140486)

2025-05-21 Thread Med Ismail Bennani via lldb-commits
medismailben wrote: Hey @eronnen, I think this change broke the macOS lldb incremental bot: https://green.lab.llvm.org/job/llvm.org/view/LLDB/job/as-lldb-cmake/26259/execution/node/106/log/?consoleFull Let me know if you need help to investigate it or if we should revert it if you don't have t

[Lldb-commits] [lldb] [lldb] Convert Maintainers file from reStructuredText -> Markdown (PR #140958)

2025-05-21 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben approved this pull request. https://github.com/llvm/llvm-project/pull/140958 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Restore ObjC incomplete type dereferencing fix (PR #139567)

2025-05-12 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben approved this pull request. https://github.com/llvm/llvm-project/pull/139567 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Restore ObjC incomplete type dereferencing fix (PR #139567)

2025-05-12 Thread Med Ismail Bennani via lldb-commits
medismailben wrote: > @felipepiovezan I don't have a machine to run ObjC tests on, could you apply > this patch and see if it fixes the issue in #135843 ? The test pass after applying this patch. Feel free to land this whenever :) https://github.com/llvm/llvm-project/pull/139567 _

  1   2   3   4   5   6   7   8   9   10   >