[Lldb-commits] [lldb] 3b3b9ba - [lldb/Commands] Fix outdated `breakpoint command add` help string

2020-09-21 Thread Dave Lee via lldb-commits
Author: Dave Lee Date: 2020-09-21T10:15:34-07:00 New Revision: 3b3b9ba1c7d89afe4909a42e2a795354bb79e062 URL: https://github.com/llvm/llvm-project/commit/3b3b9ba1c7d89afe4909a42e2a795354bb79e062 DIFF: https://github.com/llvm/llvm-project/commit/3b3b9ba1c7d89afe4909a42e2a795354bb79e062.diff LOG:

[Lldb-commits] [lldb] 9abd1e8 - [lldb] Remove lldb-perf remenant

2020-09-23 Thread Dave Lee via lldb-commits
Author: Dave Lee Date: 2020-09-23T08:23:50-07:00 New Revision: 9abd1e8f4e5ddd6e5e592306432fb32dd68f4c14 URL: https://github.com/llvm/llvm-project/commit/9abd1e8f4e5ddd6e5e592306432fb32dd68f4c14 DIFF: https://github.com/llvm/llvm-project/commit/9abd1e8f4e5ddd6e5e592306432fb32dd68f4c14.diff LOG:

[Lldb-commits] [lldb] ada1e2f - [lldb/examples] Add missing declaration in heap.py

2020-09-24 Thread Dave Lee via lldb-commits
Author: Dave Lee Date: 2020-09-24T08:44:45-07:00 New Revision: ada1e2ffa1172ede1790b4b42ef8ab01508d3a47 URL: https://github.com/llvm/llvm-project/commit/ada1e2ffa1172ede1790b4b42ef8ab01508d3a47 DIFF: https://github.com/llvm/llvm-project/commit/ada1e2ffa1172ede1790b4b42ef8ab01508d3a47.diff LOG:

[Lldb-commits] [lldb] 5d19eb5 - [lldb/docs] Remove manual codesigning documentation

2020-09-29 Thread Dave Lee via lldb-commits
Author: Dave Lee Date: 2020-09-29T12:50:45-07:00 New Revision: 5d19eb542db40fc5fe9f37c46246785ba5ae1e10 URL: https://github.com/llvm/llvm-project/commit/5d19eb542db40fc5fe9f37c46246785ba5ae1e10 DIFF: https://github.com/llvm/llvm-project/commit/5d19eb542db40fc5fe9f37c46246785ba5ae1e10.diff LOG:

[Lldb-commits] [lldb] 010d7a3 - [lldb/test] Catch invalid calls to expect()

2020-10-05 Thread Dave Lee via lldb-commits
Author: Dave Lee Date: 2020-10-05T12:41:52-07:00 New Revision: 010d7a388b146cafaf4bc0b28b952d5852d62b6a URL: https://github.com/llvm/llvm-project/commit/010d7a388b146cafaf4bc0b28b952d5852d62b6a DIFF: https://github.com/llvm/llvm-project/commit/010d7a388b146cafaf4bc0b28b952d5852d62b6a.diff LOG:

[Lldb-commits] [lldb] a52cc9b - [lldb] Handle alternative output in TestAbortExitCode

2020-10-12 Thread Dave Lee via lldb-commits
Author: Dave Lee Date: 2020-10-12T16:27:06-07:00 New Revision: a52cc9b4be362b12ca261000b723374d4b772a45 URL: https://github.com/llvm/llvm-project/commit/a52cc9b4be362b12ca261000b723374d4b772a45 DIFF: https://github.com/llvm/llvm-project/commit/a52cc9b4be362b12ca261000b723374d4b772a45.diff LOG:

[Lldb-commits] [lldb] 08924b5 - [lldb] Remove unused code in GetVersion (NFC)

2020-10-12 Thread Dave Lee via lldb-commits
Author: Dave Lee Date: 2020-10-12T16:31:14-07:00 New Revision: 08924b54debcfd47bcf22a8213308cec7d22b975 URL: https://github.com/llvm/llvm-project/commit/08924b54debcfd47bcf22a8213308cec7d22b975 DIFF: https://github.com/llvm/llvm-project/commit/08924b54debcfd47bcf22a8213308cec7d22b975.diff LOG:

[Lldb-commits] [lldb] f16cecf - [lldb] Implement ObjCExceptionThrowFrameRecognizer::GetName()

2020-10-16 Thread Dave Lee via lldb-commits
Author: Dave Lee Date: 2020-10-16T14:24:03-07:00 New Revision: f16cecf3752a7c168293934d2ba6472a6b405694 URL: https://github.com/llvm/llvm-project/commit/f16cecf3752a7c168293934d2ba6472a6b405694 DIFF: https://github.com/llvm/llvm-project/commit/f16cecf3752a7c168293934d2ba6472a6b405694.diff LOG:

[Lldb-commits] [lldb] ae4fe19 - [lldb] Enable cmake policy CMP0077 for option()

2020-10-17 Thread Dave Lee via lldb-commits
Author: Dave Lee Date: 2020-10-17T00:16:24-07:00 New Revision: ae4fe1984f0e47259b5e476a73749185cc24e1ac URL: https://github.com/llvm/llvm-project/commit/ae4fe1984f0e47259b5e476a73749185cc24e1ac DIFF: https://github.com/llvm/llvm-project/commit/ae4fe1984f0e47259b5e476a73749185cc24e1ac.diff LOG:

[Lldb-commits] [lldb] r365559 - [Docs] Replace SVN revisions with lldb versions

2019-07-09 Thread Dave Lee via lldb-commits
Author: kastiglione Date: Tue Jul 9 14:21:45 2019 New Revision: 365559 URL: http://llvm.org/viewvc/llvm-project?rev=365559&view=rev Log: [Docs] Replace SVN revisions with lldb versions Summary: Replaces references to svn commits with the lldb version number those commits first appeared in. Them

[Lldb-commits] [lldb] 0783ad9 - [lldb] Switch expect to runCmd in TestRecursiveTypes (NFC)

2020-11-11 Thread Dave Lee via lldb-commits
Author: Dave Lee Date: 2020-11-11T16:17:38-08:00 New Revision: 0783ad9e6a2c1156ca0bf5493473d6c98f006593 URL: https://github.com/llvm/llvm-project/commit/0783ad9e6a2c1156ca0bf5493473d6c98f006593 DIFF: https://github.com/llvm/llvm-project/commit/0783ad9e6a2c1156ca0bf5493473d6c98f006593.diff LOG:

[Lldb-commits] [lldb] dbcc692 - [lldb] Add examples and reword source-map help string

2020-11-20 Thread Dave Lee via lldb-commits
Author: Dave Lee Date: 2020-11-20T10:01:36-08:00 New Revision: dbcc69217a3f6b41cbf6e5b30c9a0ee9d3dfe0b4 URL: https://github.com/llvm/llvm-project/commit/dbcc69217a3f6b41cbf6e5b30c9a0ee9d3dfe0b4 DIFF: https://github.com/llvm/llvm-project/commit/dbcc69217a3f6b41cbf6e5b30c9a0ee9d3dfe0b4.diff LOG:

[Lldb-commits] [lldb] 012fd0b - [lldb] Remove unused IsFunctionType is_variadic_ptr parameter (NFC)

2020-12-08 Thread Dave Lee via lldb-commits
Author: Dave Lee Date: 2020-12-08T23:51:07-08:00 New Revision: 012fd0b17f30278a410055ead645f7f1c3c616d3 URL: https://github.com/llvm/llvm-project/commit/012fd0b17f30278a410055ead645f7f1c3c616d3 DIFF: https://github.com/llvm/llvm-project/commit/012fd0b17f30278a410055ead645f7f1c3c616d3.diff LOG:

[Lldb-commits] [lldb] 619e2e0 - [lldb] Convert assertTrue(a == b) to assertEqual(a, b)

2021-02-02 Thread Dave Lee via lldb-commits
Author: Dave Lee Date: 2021-02-02T12:39:03-08:00 New Revision: 619e2e095fb1cd1e60b745cf1a10af9f67a4cd41 URL: https://github.com/llvm/llvm-project/commit/619e2e095fb1cd1e60b745cf1a10af9f67a4cd41 DIFF: https://github.com/llvm/llvm-project/commit/619e2e095fb1cd1e60b745cf1a10af9f67a4cd41.diff LOG:

[Lldb-commits] [lldb] 3cc3762 - [lldb] Use assertIn/NotIn over assertTrue/False (NFC)

2021-02-06 Thread Dave Lee via lldb-commits
Author: Dave Lee Date: 2021-02-06T11:52:01-08:00 New Revision: 3cc37622921f39e4bdad7a37b7199defa58a213a URL: https://github.com/llvm/llvm-project/commit/3cc37622921f39e4bdad7a37b7199defa58a213a DIFF: https://github.com/llvm/llvm-project/commit/3cc37622921f39e4bdad7a37b7199defa58a213a.diff LOG:

[Lldb-commits] [lldb] 7dc324a - [lldb] Fix crash in FormatEntity for mangled-name

2021-02-08 Thread Dave Lee via lldb-commits
Author: Dave Lee Date: 2021-02-08T18:38:08-08:00 New Revision: 7dc324aafa2b17a4f9a992b9727a3642505053a6 URL: https://github.com/llvm/llvm-project/commit/7dc324aafa2b17a4f9a992b9727a3642505053a6 DIFF: https://github.com/llvm/llvm-project/commit/7dc324aafa2b17a4f9a992b9727a3642505053a6.diff LOG:

[Lldb-commits] [lldb] 2309392 - [lldb] Inline invariant params to AppleThreadPlanStepThrough (NFC)

2021-02-09 Thread Dave Lee via lldb-commits
Author: Dave Lee Date: 2021-02-09T08:03:51-08:00 New Revision: 2309392449376295a70354273500730be0f28510 URL: https://github.com/llvm/llvm-project/commit/2309392449376295a70354273500730be0f28510 DIFF: https://github.com/llvm/llvm-project/commit/2309392449376295a70354273500730be0f28510.diff LOG:

[Lldb-commits] [lldb] 606c3be - [lldb] Minor cleanups to ThreadPlan.h (NFC)

2021-02-10 Thread Dave Lee via lldb-commits
Author: Dave Lee Date: 2021-02-10T13:36:38-08:00 New Revision: 606c3be85d9252c0b9964bf4c799a947e3d16a8f URL: https://github.com/llvm/llvm-project/commit/606c3be85d9252c0b9964bf4c799a947e3d16a8f DIFF: https://github.com/llvm/llvm-project/commit/606c3be85d9252c0b9964bf4c799a947e3d16a8f.diff LOG:

[Lldb-commits] [lldb] 309d40f - [lldb] Use internal_dict name over dict in python examples

2021-02-10 Thread Dave Lee via lldb-commits
Author: Dave Lee Date: 2021-02-10T15:11:00-08:00 New Revision: 309d40f05228ef71860afe1c179a3c8dcc4d7e79 URL: https://github.com/llvm/llvm-project/commit/309d40f05228ef71860afe1c179a3c8dcc4d7e79 DIFF: https://github.com/llvm/llvm-project/commit/309d40f05228ef71860afe1c179a3c8dcc4d7e79.diff LOG:

[Lldb-commits] [lldb] [lldb] Escape ? for zsh (PR #112107)

2024-10-14 Thread Dave Lee via lldb-commits
kastiglione wrote: > so they know they have to escape it depending on their use case in the example shown, `"some arg?"` is quoted, which normally escapes a glob. Do we really need to force an additional level of escaping on users? Hopefully not but I can see that this is tricky. https://gith

[Lldb-commits] [lldb] [lldb] Set return status to Failed when Python command raises uncaught exception (PR #113996)

2024-10-29 Thread Dave Lee via lldb-commits
@@ -621,6 +623,9 @@ bool lldb_private::python::SWIGBridge::LLDBSwigPythonCallCommand( pfunc(debugger_arg, PythonString(args), SWIGBridge::ToSWIGWrapper(std::move(exe_ctx_ref_sp)), cmd_retobj_arg.obj(), dict); + if (PyErr_Occurred()) kastiglion

[Lldb-commits] [lldb] [lldb] Set return status to Failed when Python command raises uncaught exception (PR #113996)

2024-10-29 Thread Dave Lee via lldb-commits
@@ -621,6 +623,9 @@ bool lldb_private::python::SWIGBridge::LLDBSwigPythonCallCommand( pfunc(debugger_arg, PythonString(args), SWIGBridge::ToSWIGWrapper(std::move(exe_ctx_ref_sp)), cmd_retobj_arg.obj(), dict); + if (PyErr_Occurred()) kastiglion

[Lldb-commits] [lldb] [lldb] Set return status to Failed when Python command raises uncaught exception (PR #113996)

2024-10-29 Thread Dave Lee via lldb-commits
https://github.com/kastiglione updated https://github.com/llvm/llvm-project/pull/113996 >From 75f96b84c9bd2b3211edb5fa8806092711133251 Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Mon, 28 Oct 2024 15:49:50 -0700 Subject: [PATCH 1/3] [lldb] Set return status to Failed when Python command raise

[Lldb-commits] [lldb] [lldb] Set return status to Failed when Python command raises uncaught exception (PR #113996)

2024-10-29 Thread Dave Lee via lldb-commits
https://github.com/kastiglione updated https://github.com/llvm/llvm-project/pull/113996 >From 75f96b84c9bd2b3211edb5fa8806092711133251 Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Mon, 28 Oct 2024 15:49:50 -0700 Subject: [PATCH 1/4] [lldb] Set return status to Failed when Python command raise

[Lldb-commits] [lldb] [lldb] Set return status to Failed when Python command raises uncaught exception (PR #113996)

2024-10-29 Thread Dave Lee via lldb-commits
@@ -0,0 +1,27 @@ +import os +import lldb +from lldbsuite.test.decorators import * +from lldbsuite.test.lldbtest import * + + +class TestCase(TestBase): +NO_DEBUG_INFO_TESTCASE = True + +def test(self): +""" +Check that a Python command, which raises an unha

[Lldb-commits] [lldb] [lldb] Set return status to Failed when Python command raises uncaught exception (PR #113996)

2024-10-29 Thread Dave Lee via lldb-commits
https://github.com/kastiglione updated https://github.com/llvm/llvm-project/pull/113996 >From 75f96b84c9bd2b3211edb5fa8806092711133251 Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Mon, 28 Oct 2024 15:49:50 -0700 Subject: [PATCH 1/2] [lldb] Set return status to Failed when Python command raise

[Lldb-commits] [lldb] [lldb] Set return status to Failed when Python command raises uncaught exception (PR #113996)

2024-10-29 Thread Dave Lee via lldb-commits
@@ -0,0 +1,27 @@ +import os kastiglione wrote: What are the issues with a new file? https://github.com/llvm/llvm-project/pull/113996 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-

[Lldb-commits] [lldb] [lldb] Set return status to Failed when Python command raises uncaught exception (PR #113996)

2024-10-28 Thread Dave Lee via lldb-commits
https://github.com/kastiglione created https://github.com/llvm/llvm-project/pull/113996 None >From 75f96b84c9bd2b3211edb5fa8806092711133251 Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Mon, 28 Oct 2024 15:49:50 -0700 Subject: [PATCH] [lldb] Set return status to Failed when Python command rais

[Lldb-commits] [lldb] [lldb] Set return status to Failed when Python command raises uncaught exception (PR #113996)

2024-10-28 Thread Dave Lee via lldb-commits
https://github.com/kastiglione edited https://github.com/llvm/llvm-project/pull/113996 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Set return status to Failed when Python command raises uncaught exception (PR #113996)

2024-10-29 Thread Dave Lee via lldb-commits
https://github.com/kastiglione edited https://github.com/llvm/llvm-project/pull/113996 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Avoid unnecessary regex check in dwim-print (PR #114608)

2024-11-01 Thread Dave Lee via lldb-commits
https://github.com/kastiglione created https://github.com/llvm/llvm-project/pull/114608 None >From e244e4557a618c6d532f9d369624234ad739cf11 Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Fri, 1 Nov 2024 14:38:19 -0700 Subject: [PATCH] [lldb] Avoid unnecessary regex check in dwim-print --- lld

[Lldb-commits] [lldb] [lldb] Avoid unnecessary regex check in dwim-print (PR #114608)

2024-11-01 Thread Dave Lee via lldb-commits
https://github.com/kastiglione edited https://github.com/llvm/llvm-project/pull/114608 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Avoid unnecessary regex check in dwim-print (PR #114608)

2024-11-01 Thread Dave Lee via lldb-commits
kastiglione wrote: I will cherry-pick this downstream to swiftlang/llvm-project too. https://github.com/llvm/llvm-project/pull/114608 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Set return status to Failed when Python command raises uncaught exception (PR #113996)

2024-10-30 Thread Dave Lee via lldb-commits
@@ -621,6 +623,9 @@ bool lldb_private::python::SWIGBridge::LLDBSwigPythonCallCommand( pfunc(debugger_arg, PythonString(args), SWIGBridge::ToSWIGWrapper(std::move(exe_ctx_ref_sp)), cmd_retobj_arg.obj(), dict); + if (PyErr_Occurred()) kastiglion

[Lldb-commits] [lldb] [lldb] Avoid unnecessary regex check in dwim-print (PR #114608)

2024-11-01 Thread Dave Lee via lldb-commits
https://github.com/kastiglione edited https://github.com/llvm/llvm-project/pull/114608 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Improve command status when dwim-print has no result (PR #114478)

2024-11-01 Thread Dave Lee via lldb-commits
https://github.com/kastiglione closed https://github.com/llvm/llvm-project/pull/114478 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Highlight "note:" in CommandReturnObject (PR #114610)

2024-11-01 Thread Dave Lee via lldb-commits
https://github.com/kastiglione approved this pull request. https://github.com/llvm/llvm-project/pull/114610 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Avoid unnecessary regex check in dwim-print (PR #114608)

2024-11-01 Thread Dave Lee via lldb-commits
@@ -101,6 +101,10 @@ void CommandObjectDWIMPrint::DoExecute(StringRef command, // Add a hint if object description was requested, but no description // function was implemented. auto maybe_add_hint = [&](llvm::StringRef output) { +static bool note_shown = false; +

[Lldb-commits] [lldb] [lldb] Avoid unnecessary regex check in dwim-print (PR #114608)

2024-11-01 Thread Dave Lee via lldb-commits
@@ -101,6 +101,10 @@ void CommandObjectDWIMPrint::DoExecute(StringRef command, // Add a hint if object description was requested, but no description // function was implemented. auto maybe_add_hint = [&](llvm::StringRef output) { +static bool note_shown = false; +

[Lldb-commits] [lldb] [lldb] Avoid unnecessary regex check in dwim-print (PR #114608)

2024-11-01 Thread Dave Lee via lldb-commits
https://github.com/kastiglione edited https://github.com/llvm/llvm-project/pull/114608 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Proof of concept data formatter compiler for Python (PR #113734)

2024-10-25 Thread Dave Lee via lldb-commits
https://github.com/kastiglione edited https://github.com/llvm/llvm-project/pull/113734 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Remove broken comments originally written as table headers (NFC) (PR #116089)

2024-11-13 Thread Dave Lee via lldb-commits
https://github.com/kastiglione created https://github.com/llvm/llvm-project/pull/116089 Automatic formatting has removed the utility of these comments. >From ae7f7d7e2167743f68118d1342cdb907ad478a95 Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Wed, 13 Nov 2024 10:24:38 -0800 Subject: [PATCH]

[Lldb-commits] [lldb] [lldb] Improve command status when dwim-print has no result (PR #114478)

2024-10-31 Thread Dave Lee via lldb-commits
https://github.com/kastiglione created https://github.com/llvm/llvm-project/pull/114478 None >From 530e9db082ce2a3140045a1696c4e5c2f85a8f36 Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Thu, 31 Oct 2024 15:26:21 -0700 Subject: [PATCH] [lldb] Improve command status when dwim-print has no result

[Lldb-commits] [lldb] [lldb] Improve command status when dwim-print has no result (PR #114478)

2024-10-31 Thread Dave Lee via lldb-commits
https://github.com/kastiglione edited https://github.com/llvm/llvm-project/pull/114478 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Improve command status when dwim-print has no result (PR #114478)

2024-10-31 Thread Dave Lee via lldb-commits
https://github.com/kastiglione edited https://github.com/llvm/llvm-project/pull/114478 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Improve command status when dwim-print has no result (PR #114478)

2024-10-31 Thread Dave Lee via lldb-commits
https://github.com/kastiglione edited https://github.com/llvm/llvm-project/pull/114478 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Fix minor runCmd error message formatting (PR #110150)

2024-09-26 Thread Dave Lee via lldb-commits
https://github.com/kastiglione created https://github.com/llvm/llvm-project/pull/110150 None >From fb0c5eefa9d3f3500a4767a727a0c39f2dff01d2 Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Wed, 25 Sep 2024 15:07:34 -0700 Subject: [PATCH] [lldb] Fix minor runCmd error message formatting --- lldb

[Lldb-commits] [lldb] [lldb] Fix minor runCmd error message formatting (PR #110150)

2024-09-26 Thread Dave Lee via lldb-commits
https://github.com/kastiglione edited https://github.com/llvm/llvm-project/pull/110150 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Fix minor runCmd error message formatting (PR #110150)

2024-09-26 Thread Dave Lee via lldb-commits
https://github.com/kastiglione closed https://github.com/llvm/llvm-project/pull/110150 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Improve locking in PathMappingLists (NFC) (PR #114576)

2024-11-06 Thread Dave Lee via lldb-commits
@@ -264,34 +288,35 @@ PathMappingList::FindFile(const FileSpec &orig_spec) const { bool PathMappingList::Replace(llvm::StringRef path, llvm::StringRef new_path, bool notify) { - std::lock_guard lock(m_mutex); - uint32_t idx = FindIndexForPath(p

[Lldb-commits] [lldb] [lldb] Add builtin e alias for expression (PR #115359)

2024-11-07 Thread Dave Lee via lldb-commits
https://github.com/kastiglione closed https://github.com/llvm/llvm-project/pull/115359 ___ 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 compiler/interpreter of LLDB data formatter bytecode to lldb/examples (PR #113398)

2024-10-25 Thread Dave Lee via lldb-commits
kastiglione wrote: > Compiling languages into this is intriguing. @DavidSpickett A minimal example of Python compiling into this assembly for this bytecode: https://github.com/llvm/llvm-project/pull/113734 https://github.com/llvm/llvm-project/pull/113398 ___

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

2024-10-25 Thread Dave Lee via lldb-commits
@@ -0,0 +1,165 @@ +# A bytecode for (LLDB) data formatters + +## Background + +LLDB provides very rich customization options to display data types (see https://lldb.llvm.org/use/variable.html ). To use custom data formatters, developers typically need to edit the global `~/.lldb

[Lldb-commits] [lldb] [lldb] Proof of concept data formatter compiler for Python (PR #113734)

2024-10-25 Thread Dave Lee via lldb-commits
https://github.com/kastiglione created https://github.com/llvm/llvm-project/pull/113734 None >From 57223942e91c47d0a61b148a65247cd9cbb16496 Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Fri, 25 Oct 2024 12:56:00 -0700 Subject: [PATCH] [lldb] Proof of concept data formatter compiler for Python

[Lldb-commits] [lldb] [lldb] Proof of concept data formatter compiler for Python (PR #113734)

2024-10-25 Thread Dave Lee via lldb-commits
https://github.com/kastiglione converted_to_draft https://github.com/llvm/llvm-project/pull/113734 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Introduce Language::AreEquivalentFunctions (PR #112720)

2024-10-17 Thread Dave Lee via lldb-commits
kastiglione wrote: do we have in mind any other languages that will implement this? https://github.com/llvm/llvm-project/pull/112720 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Introduce Language::AreEquivalentFunctions (PR #112720)

2024-10-17 Thread Dave Lee via lldb-commits
@@ -363,6 +363,14 @@ class Language : public PluginInterface { return false; } + /// Returns a boolean indicating whether two symbol contexts correspond to + /// the same function. If the plugin has no opinion, it should return nullopt. + virtual std::optional + Are

[Lldb-commits] [lldb] [lldb] Remove lldbutil.get_stack_frames (NFC) (PR #117505)

2024-11-24 Thread Dave Lee via lldb-commits
https://github.com/kastiglione closed https://github.com/llvm/llvm-project/pull/117505 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Update dwim-print to show expanded objc instances (PR #117500)

2024-11-24 Thread Dave Lee via lldb-commits
https://github.com/kastiglione created https://github.com/llvm/llvm-project/pull/117500 When printing an ObjC object, which is a pointer, lldb has handled it like it treats any other pointer, printing only pointer address and class name. The object is not expanded, and its children are not sho

[Lldb-commits] [lldb] [lldb] Update dwim-print to show expanded objc instances (PR #117500)

2024-11-24 Thread Dave Lee via lldb-commits
https://github.com/kastiglione edited https://github.com/llvm/llvm-project/pull/117500 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Set return status to Failed when Python command raises uncaught exception (PR #113996)

2024-11-24 Thread Dave Lee via lldb-commits
https://github.com/kastiglione updated https://github.com/llvm/llvm-project/pull/113996 >From 75f96b84c9bd2b3211edb5fa8806092711133251 Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Mon, 28 Oct 2024 15:49:50 -0700 Subject: [PATCH 1/6] [lldb] Set return status to Failed when Python command raise

[Lldb-commits] [lldb] [lldb] Set return status to Failed when Python command raises uncaught exception (PR #113996)

2024-11-24 Thread Dave Lee via lldb-commits
@@ -642,6 +649,16 @@ bool lldb_private::python::SWIGBridge::LLDBSwigPythonCallCommandObject( pfunc(SWIGBridge::ToSWIGWrapper(std::move(debugger)), PythonString(args), SWIGBridge::ToSWIGWrapper(exe_ctx_ref_sp), cmd_retobj_arg.obj()); + if (PyErr_Occurred()) { +p

[Lldb-commits] [lldb] [lldb] Set return status to Failed when Python command raises uncaught exception (PR #113996)

2024-11-24 Thread Dave Lee via lldb-commits
@@ -592,6 +592,8 @@ void *lldb_private::python::LLDBSWIGPython_CastPyObjectToSBExecutionContext(PyOb return sb_ptr; } +#include "lldb/Interpreter/CommandReturnObject.h" kastiglione wrote: done https://github.com/llvm/llvm-project/pull/113996 _

[Lldb-commits] [lldb] [lldb] Update dwim-print to show expanded objc instances (PR #117500)

2024-11-27 Thread Dave Lee via lldb-commits
@@ -87,7 +87,8 @@ void CommandObjectDWIMPrint::DoExecute(StringRef command, DumpValueObjectOptions dump_options = m_varobj_options.GetAsDumpOptions( m_expr_options.m_verbosity, m_format_options.GetFormat()); - dump_options.SetHideRootName(suppress_result); + dump_opt

[Lldb-commits] [lldb] [lldb] Update dwim-print to show expanded objc instances (PR #117500)

2024-11-27 Thread Dave Lee via lldb-commits
@@ -87,7 +87,8 @@ void CommandObjectDWIMPrint::DoExecute(StringRef command, DumpValueObjectOptions dump_options = m_varobj_options.GetAsDumpOptions( m_expr_options.m_verbosity, m_format_options.GetFormat()); - dump_options.SetHideRootName(suppress_result); + dump_opt

[Lldb-commits] [lldb] [lldb] Update dwim-print to show expanded objc instances (PR #117500)

2024-11-27 Thread Dave Lee via lldb-commits
https://github.com/kastiglione edited https://github.com/llvm/llvm-project/pull/117500 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][Mach-O] Handle shared cache binaries correctly (PR #117832)

2024-11-28 Thread Dave Lee via lldb-commits
https://github.com/kastiglione approved this pull request. https://github.com/llvm/llvm-project/pull/117832 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Fix regex support in SBTarget.modules_access (PR #116452)

2024-11-18 Thread Dave Lee via lldb-commits
@@ -79,11 +79,11 @@ STRING_EXTENSION_LEVEL_OUTSIDE(SBTarget, lldb::eDescriptionLevelBrief) module = self.sbtarget.GetModuleAtIndex(idx) if module.uuid == key: return module -elif type(k

[Lldb-commits] [lldb] [lldb] Fix regex support in SBTarget.modules_access (PR #116452)

2024-11-18 Thread Dave Lee via lldb-commits
https://github.com/kastiglione closed https://github.com/llvm/llvm-project/pull/116452 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Fix regex support in SBTarget.modules_access (PR #116452)

2024-11-18 Thread Dave Lee via lldb-commits
@@ -79,11 +79,11 @@ STRING_EXTENSION_LEVEL_OUTSIDE(SBTarget, lldb::eDescriptionLevelBrief) module = self.sbtarget.GetModuleAtIndex(idx) if module.uuid == key: return module -elif type(k

[Lldb-commits] [lldb] [lldb] Fix comment in ~Thread (NFC) (PR #116850)

2024-11-19 Thread Dave Lee via lldb-commits
https://github.com/kastiglione created https://github.com/llvm/llvm-project/pull/116850 None >From f7462578ac8e5977310279ea8f9f01f01bbcedcd Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Mon, 18 Nov 2024 16:21:18 -0800 Subject: [PATCH] [lldb] Fix comment in ~Thread (NFC) --- lldb/source/Targe

[Lldb-commits] [lldb] [lldb] Fix comment in ~Thread (NFC) (PR #116850)

2024-11-20 Thread Dave Lee via lldb-commits
https://github.com/kastiglione closed https://github.com/llvm/llvm-project/pull/116850 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Fix regex support in SBTarget.modules_access (PR #116452)

2024-11-18 Thread Dave Lee via lldb-commits
@@ -79,11 +79,11 @@ STRING_EXTENSION_LEVEL_OUTSIDE(SBTarget, lldb::eDescriptionLevelBrief) module = self.sbtarget.GetModuleAtIndex(idx) if module.uuid == key: return module -elif type(k

[Lldb-commits] [lldb] [lldb] Support any flag to _regexp-bt (PR #116260)

2024-11-14 Thread Dave Lee via lldb-commits
https://github.com/kastiglione created https://github.com/llvm/llvm-project/pull/116260 In particular, this allows `bt -u`. >From bc771d2c7dc223c353fbfca9dbe491e08311950b Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Thu, 14 Nov 2024 09:03:33 -0800 Subject: [PATCH] [lldb] Support any flag to

[Lldb-commits] [lldb] [lldb] Support any flag to _regexp-bt (PR #116260)

2024-11-14 Thread Dave Lee via lldb-commits
https://github.com/kastiglione edited https://github.com/llvm/llvm-project/pull/116260 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Support any flag to _regexp-bt (PR #116260)

2024-11-14 Thread Dave Lee via lldb-commits
https://github.com/kastiglione updated https://github.com/llvm/llvm-project/pull/116260 >From bc771d2c7dc223c353fbfca9dbe491e08311950b Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Thu, 14 Nov 2024 09:03:33 -0800 Subject: [PATCH 1/2] [lldb] Support any flag to _regexp-bt In particular, this al

[Lldb-commits] [lldb] [lldb] Remove broken comments originally written as table headers (NFC) (PR #116089)

2024-11-14 Thread Dave Lee via lldb-commits
https://github.com/kastiglione closed https://github.com/llvm/llvm-project/pull/116089 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Fix regex support in SBTarget.modules_access (PR #116452)

2024-11-15 Thread Dave Lee via lldb-commits
https://github.com/kastiglione edited https://github.com/llvm/llvm-project/pull/116452 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Fix regex support in SBTarget.modules_access (PR #116452)

2024-11-15 Thread Dave Lee via lldb-commits
https://github.com/kastiglione created https://github.com/llvm/llvm-project/pull/116452 First, `SRE_Pattern` does not exist on newer Python's, use `type(re.compile(''))` like other Python extensions do. The dynamic type is because some earlier versions of Python 3 do not have `re.Pattern`. Seco

[Lldb-commits] [lldb] [lldb] Fix regex support in SBTarget.modules_access (PR #116452)

2024-11-15 Thread Dave Lee via lldb-commits
@@ -79,11 +79,11 @@ STRING_EXTENSION_LEVEL_OUTSIDE(SBTarget, lldb::eDescriptionLevelBrief) module = self.sbtarget.GetModuleAtIndex(idx) if module.uuid == key: return module -elif type(k

[Lldb-commits] [lldb] [lldb] Fix regex support in SBTarget.modules_access (PR #116452)

2024-11-15 Thread Dave Lee via lldb-commits
https://github.com/kastiglione edited https://github.com/llvm/llvm-project/pull/116452 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Support any flag to _regexp-bt (PR #116260)

2024-11-14 Thread Dave Lee via lldb-commits
https://github.com/kastiglione updated https://github.com/llvm/llvm-project/pull/116260 >From bc771d2c7dc223c353fbfca9dbe491e08311950b Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Thu, 14 Nov 2024 09:03:33 -0800 Subject: [PATCH 1/3] [lldb] Support any flag to _regexp-bt In particular, this al

[Lldb-commits] [lldb] [lldb] Support any flag to _regexp-bt (PR #116260)

2024-11-14 Thread Dave Lee via lldb-commits
@@ -851,8 +851,7 @@ void CommandInterpreter::LoadCommandDictionary() { // now "bt 3" is the preferred form, in line with gdb. if (bt_regex_cmd_up->AddRegexCommand("^([[:digit:]]+)[[:space:]]*$", "thread backtrace -c %1") && -

[Lldb-commits] [lldb] [lldb] Support any flag to _regexp-bt (PR #116260)

2024-11-14 Thread Dave Lee via lldb-commits
https://github.com/kastiglione edited https://github.com/llvm/llvm-project/pull/116260 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Support any flag to _regexp-bt (PR #116260)

2024-11-14 Thread Dave Lee via lldb-commits
https://github.com/kastiglione closed https://github.com/llvm/llvm-project/pull/116260 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Update dwim-print to support limited variable expression paths (PR #117452)

2024-11-23 Thread Dave Lee via lldb-commits
https://github.com/kastiglione updated https://github.com/llvm/llvm-project/pull/117452 >From cce676f2e8e0ed7a81ae1fa78082765cb698de85 Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Sat, 23 Nov 2024 14:37:10 -0800 Subject: [PATCH 1/2] [lldb] Update dwim-print to support limited variable express

[Lldb-commits] [lldb] [lldb] Update dwim-print to support limited variable expression paths (PR #117452)

2024-11-23 Thread Dave Lee via lldb-commits
https://github.com/kastiglione created https://github.com/llvm/llvm-project/pull/117452 `frame variable` supports nested variable access, which the API calls "variable expression paths". This change updates `dwim-print` to support a subset of supported variable expression paths. Consider the e

[Lldb-commits] [lldb] [lldb] Avoid unnecessary regex check in dwim-print (PR #114608)

2024-11-23 Thread Dave Lee via lldb-commits
@@ -101,6 +101,10 @@ void CommandObjectDWIMPrint::DoExecute(StringRef command, // Add a hint if object description was requested, but no description // function was implemented. auto maybe_add_hint = [&](llvm::StringRef output) { +static bool note_shown = false; +

[Lldb-commits] [lldb] [lldb] Update dwim-print to support limited variable expression paths (PR #117452)

2024-11-23 Thread Dave Lee via lldb-commits
https://github.com/kastiglione edited https://github.com/llvm/llvm-project/pull/117452 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Update dwim-print to support limited variable expression paths (PR #117452)

2024-12-02 Thread Dave Lee via lldb-commits
https://github.com/kastiglione closed https://github.com/llvm/llvm-project/pull/117452 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Update dwim-print to support limited variable expression paths (PR #117452)

2024-12-02 Thread Dave Lee via lldb-commits
@@ -154,5 +163,25 @@ def test_preserves_persistent_variables(self): def test_missing_type(self): """The expected output of po opaque is its address (no error)""" self.build() -lldbutil.run_to_source_breakpoint(self, "break here", lldb.SBFileSpec("ma

[Lldb-commits] [lldb] [lldb] Update dwim-print to support limited variable expression paths (PR #117452)

2024-12-02 Thread Dave Lee via lldb-commits
https://github.com/kastiglione updated https://github.com/llvm/llvm-project/pull/117452 >From cce676f2e8e0ed7a81ae1fa78082765cb698de85 Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Sat, 23 Nov 2024 14:37:10 -0800 Subject: [PATCH 1/3] [lldb] Update dwim-print to support limited variable express

[Lldb-commits] [lldb] [lldb] Update dwim-print to support limited variable expression paths (PR #117452)

2024-12-02 Thread Dave Lee via lldb-commits
@@ -151,10 +151,23 @@ void CommandObjectDWIMPrint::DoExecute(StringRef command, result.SetStatus(eReturnStatusSuccessFinishResult); }; - // First, try `expr` as the name of a frame variable. - if (frame) { -auto valobj_sp = frame->FindVariable(ConstString(expr)); -

[Lldb-commits] [lldb] [lldb] Remove lldbutil.get_stack_frames (NFC) (PR #117505)

2024-11-24 Thread Dave Lee via lldb-commits
https://github.com/kastiglione created https://github.com/llvm/llvm-project/pull/117505 None >From eda4536f9e9edcb36c64592f4afd7820c81d65f3 Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Sun, 24 Nov 2024 11:10:35 -0800 Subject: [PATCH] [lldb] Remove lldbutil.get_stack_frames (NFC) --- lldb/pa

[Lldb-commits] [lldb] [lldb] Remove lldbutil.get_stack_frames (NFC) (PR #117505)

2024-11-24 Thread Dave Lee via lldb-commits
https://github.com/kastiglione edited https://github.com/llvm/llvm-project/pull/117505 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Simplify DumpValueObjectOptions::PointerDepth (NFC) (PR #117504)

2024-11-24 Thread Dave Lee via lldb-commits
https://github.com/kastiglione created https://github.com/llvm/llvm-project/pull/117504 `Mode::Always` and `Mode::Default` are handled identically. `Mode::Never` is the same as having a count of 0. >From 92e1118f6f62aae0c98485fecc8598a95dc44ab7 Mon Sep 17 00:00:00 2001 From: Dave Lee Date: S

[Lldb-commits] [lldb] [lldb] Simplify DumpValueObjectOptions::PointerDepth (NFC) (PR #117504)

2024-11-24 Thread Dave Lee via lldb-commits
https://github.com/kastiglione edited https://github.com/llvm/llvm-project/pull/117504 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Simplify DumpValueObjectOptions::PointerDepth (NFC) (PR #117504)

2024-12-02 Thread Dave Lee via lldb-commits
https://github.com/kastiglione closed https://github.com/llvm/llvm-project/pull/117504 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Update dwim-print to show expanded objc instances (PR #117500)

2024-12-02 Thread Dave Lee via lldb-commits
https://github.com/kastiglione updated https://github.com/llvm/llvm-project/pull/117500 >From 3199d3ee3817a8551cda1f5fce6083fef1c079d9 Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Sat, 23 Nov 2024 18:25:22 -0800 Subject: [PATCH 1/3] [lldb] Update dwim-print to show expanded objc instances Whe

[Lldb-commits] [lldb] [lldb] Update dwim-print to show expanded objc instances (PR #117500)

2024-12-02 Thread Dave Lee via lldb-commits
https://github.com/kastiglione updated https://github.com/llvm/llvm-project/pull/117500 >From 3199d3ee3817a8551cda1f5fce6083fef1c079d9 Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Sat, 23 Nov 2024 18:25:22 -0800 Subject: [PATCH 1/2] [lldb] Update dwim-print to show expanded objc instances Whe

<    1   2   3   4   5   6   7   8   >