[Lldb-commits] [lldb] add @skipIfWindows to unresolved disassemble test on windows (PR #140852)

2025-05-20 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Ely Ronnen (eronnen) Changes Fix https://lab.llvm.org/buildbot/#/builders/141/builds/8867 --- Full diff: https://github.com/llvm/llvm-project/pull/140852.diff 1 Files Affected: - (modified) lldb/test/API/tools/lldb-dap/disassemble/TestDA

[Lldb-commits] [lldb] [lldb] Don't query the platform for each load command (PR #140853)

2025-05-20 Thread Tal Keren via lldb-commits
https://github.com/talkeren created https://github.com/llvm/llvm-project/pull/140853 This change remove the call to GetPlatform from GetDeploymentInfo and instead pass it as an argument,so GetPlatform will be called only once for all the load commands. The reason is that if we try to query the p

[Lldb-commits] [lldb] [lldb] Properly cache the result of MachProcess::GetPlatform (PR #140611)

2025-05-20 Thread Tal Keren via lldb-commits
talkeren wrote: Closing it following the discussion in the issue - I made a new PR that fixes it differently without change the current behaviour. https://github.com/llvm/llvm-project/pull/140611 ___ lldb-commits mailing list lldb-commits@lists.llvm.o

[Lldb-commits] [lldb] [lldb] Properly cache the result of MachProcess::GetPlatform (PR #140611)

2025-05-20 Thread Tal Keren via lldb-commits
https://github.com/talkeren closed https://github.com/llvm/llvm-project/pull/140611 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb-dap] Synchronously wait for breakpoints resolves in tests (PR #140470)

2025-05-20 Thread Ely Ronnen via lldb-commits
https://github.com/eronnen updated https://github.com/llvm/llvm-project/pull/140470 >From 2ee16e3911bd1c93618f63f5068dcdcaf389e46c Mon Sep 17 00:00:00 2001 From: Ely Ronnen Date: Sun, 18 May 2025 20:56:47 +0200 Subject: [PATCH 1/4] [lldb-dap] Attempt to synchronously wait for breakpoints resol

[Lldb-commits] [lldb] add @skipIfWindows to unresolved disassemble test on windows (PR #140852)

2025-05-20 Thread Ely Ronnen via lldb-commits
https://github.com/eronnen closed https://github.com/llvm/llvm-project/pull/140852 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] 2ed8c27 - add @skipIfWindows to unresolved disassemble test on windows (#140852)

2025-05-20 Thread via lldb-commits
Author: Ely Ronnen Date: 2025-05-21T08:10:22+02:00 New Revision: 2ed8c27d03dac098744d51f580e7cca38707b183 URL: https://github.com/llvm/llvm-project/commit/2ed8c27d03dac098744d51f580e7cca38707b183 DIFF: https://github.com/llvm/llvm-project/commit/2ed8c27d03dac098744d51f580e7cca38707b183.diff LO

[Lldb-commits] [lldb] add @skipIfWindows to unresolved disassemble test on windows (PR #140852)

2025-05-20 Thread Ely Ronnen via lldb-commits
https://github.com/eronnen created https://github.com/llvm/llvm-project/pull/140852 Fix https://lab.llvm.org/buildbot/#/builders/141/builds/8867 >From cb69d50e158d9197b6e0fdb997de0086da1b8afa Mon Sep 17 00:00:00 2001 From: Ely Ronnen Date: Wed, 21 May 2025 08:09:23 +0200 Subject: [PATCH] add @

[Lldb-commits] [lldb] [lldb-dap] Synchronously wait for breakpoints resolves in tests (PR #140470)

2025-05-20 Thread Ely Ronnen via lldb-commits
@@ -78,8 +84,40 @@ def set_function_breakpoints(self, functions, condition=None, hitCondition=None) breakpoint_ids = [] for breakpoint in breakpoints: breakpoint_ids.append("%i" % (breakpoint["id"])) +if wait_for_resolve: +self.w

[Lldb-commits] [lldb] [lldb-dap] Synchronously wait for breakpoints resolves in tests (PR #140470)

2025-05-20 Thread Ely Ronnen via lldb-commits
@@ -1187,15 +1187,17 @@ def request_locations(self, locationReference): } return self.send_recv(command_dict) -def request_testGetTargetBreakpoints(self): +def request_testGetTargetBreakpoints(self, only_resolved=False): eronnen wrote:

[Lldb-commits] [lldb] [lldb-dap] Synchronously wait for breakpoints resolves in tests (PR #140470)

2025-05-20 Thread Ely Ronnen via lldb-commits
https://github.com/eronnen updated https://github.com/llvm/llvm-project/pull/140470 >From 2ee16e3911bd1c93618f63f5068dcdcaf389e46c Mon Sep 17 00:00:00 2001 From: Ely Ronnen Date: Sun, 18 May 2025 20:56:47 +0200 Subject: [PATCH 1/3] [lldb-dap] Attempt to synchronously wait for breakpoints resol

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

2025-05-20 Thread Ely Ronnen via lldb-commits
https://github.com/eronnen updated https://github.com/llvm/llvm-project/pull/140486 >From 3cfe849fee4f5d489a3205ae0d2a8cd0f26a1b76 Mon Sep 17 00:00:00 2001 From: Ely Ronnen Date: Tue, 20 May 2025 00:47:48 +0200 Subject: [PATCH 1/4] [lldb-dap] Fix disassemble request instruction offset handling

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

2025-05-20 Thread Ely Ronnen via lldb-commits
https://github.com/eronnen closed https://github.com/llvm/llvm-project/pull/140486 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

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

2025-05-20 Thread via lldb-commits
Author: Ely Ronnen Date: 2025-05-21T06:50:13+02:00 New Revision: 9d0614e77ab1c5e2264e07d9b4b5f9780b38781c URL: https://github.com/llvm/llvm-project/commit/9d0614e77ab1c5e2264e07d9b4b5f9780b38781c DIFF: https://github.com/llvm/llvm-project/commit/9d0614e77ab1c5e2264e07d9b4b5f9780b38781c.diff LO

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

2025-05-20 Thread Ely Ronnen via lldb-commits
@@ -349,6 +349,10 @@ class LLDB_API SBTarget { SBError SetLabel(const char *label); + uint32_t GetMinimumOpcodeByteSize() const; + + uint32_t GetMaximumOpcodeByteSize() const; eronnen wrote: :100: https://github.com/llvm/llvm-project/pull/140486 __

[Lldb-commits] [lldb] 7b51339 - [lldb-dap] Avoid double 'new' events for dyld on Darwin (#140810)

2025-05-20 Thread via lldb-commits
Author: Jonas Devlieghere Date: 2025-05-20T18:51:59-07:00 New Revision: 7b513393872fe608721ce4014606b03dd780a5c9 URL: https://github.com/llvm/llvm-project/commit/7b513393872fe608721ce4014606b03dd780a5c9 DIFF: https://github.com/llvm/llvm-project/commit/7b513393872fe608721ce4014606b03dd780a5c9.d

[Lldb-commits] [lldb] [lldb-dap] Avoid double 'new' events for dyld on Darwin (PR #140810)

2025-05-20 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere closed https://github.com/llvm/llvm-project/pull/140810 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [Support] [lldb] Fix thread jump #45326 (PR #135778)

2025-05-20 Thread John Harrison via lldb-commits
@@ -1649,11 +1649,14 @@ class CommandObjectThreadJump : public CommandObjectParsed { return Status::FromErrorStringWithFormat("invalid line number: '%s'.", option_arg.str().c_str()); break; - case 'b':

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

2025-05-20 Thread John Harrison via lldb-commits
https://github.com/ashgti approved this pull request. Looks good! https://github.com/llvm/llvm-project/pull/140486 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

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

2025-05-20 Thread John Harrison via lldb-commits
https://github.com/ashgti edited https://github.com/llvm/llvm-project/pull/140486 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

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

2025-05-20 Thread John Harrison via lldb-commits
@@ -349,6 +349,10 @@ class LLDB_API SBTarget { SBError SetLabel(const char *label); + uint32_t GetMinimumOpcodeByteSize() const; + + uint32_t GetMaximumOpcodeByteSize() const; ashgti wrote: Can we add a comment? ``` Architecture opcode byte size width ac

[Lldb-commits] [lldb] [Support] [lldb] Fix thread jump #45326 (PR #135778)

2025-05-20 Thread Ebuka Ezike via lldb-commits
@@ -62,6 +65,71 @@ def test(self): substrs=["error"], ) +def test_jump_offset(self): +"""Test Thread Jump by negative or positive offset""" +exe = self.getBuildArtifact("a.out") +file_name = "main.cpp" +self.runCmd(f"targ

[Lldb-commits] [lldb] [lldb-dap] Test gardening, enabling tests and improving doc comments. (PR #140777)

2025-05-20 Thread John Harrison via lldb-commits
@@ -1102,3 +1103,28 @@ def is_feature_enabled(): return "%s is not supported on this system." % feature return skipTestIfFn(is_feature_enabled) + + +def skipIfBinaryToLarge(path: Optional[str], maxSize: int): +"""Skip the test if a binary is to large. +

[Lldb-commits] [lldb] [lldb-dap] Avoid double 'new' events for dyld on Darwin (PR #140810)

2025-05-20 Thread John Harrison via lldb-commits
https://github.com/ashgti approved this pull request. https://github.com/llvm/llvm-project/pull/140810 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

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

2025-05-20 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere approved this pull request. Thank you. This is a big improvement compared to the previous revision and makes it much easier to follow. Great job! https://github.com/llvm/llvm-project/pull/140486 ___ lldb-commits mailin

[Lldb-commits] [lldb] [Support] [lldb] Fix thread jump #45326 (PR #135778)

2025-05-20 Thread Ebuka Ezike via lldb-commits
@@ -1649,11 +1649,14 @@ class CommandObjectThreadJump : public CommandObjectParsed { return Status::FromErrorStringWithFormat("invalid line number: '%s'.", option_arg.str().c_str()); break; - case 'b':

[Lldb-commits] [lldb] [lldb][lldb-dap] show modules pane if supported by the adapter (PR #140603)

2025-05-20 Thread Ebuka Ezike via lldb-commits
https://github.com/da-viper closed https://github.com/llvm/llvm-project/pull/140603 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][lldb-dap] Basic implementation of a deferred request. (PR #140260)

2025-05-20 Thread Ebuka Ezike via lldb-commits
https://github.com/da-viper closed https://github.com/llvm/llvm-project/pull/140260 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] dfc65ef - [lldb][lldb-dap] show modules pane if supported by the adapter (#140603)

2025-05-20 Thread via lldb-commits
Author: Ebuka Ezike Date: 2025-05-20T23:29:34+01:00 New Revision: dfc65ef65e4e92fee244c0eed7ec9223fc943b65 URL: https://github.com/llvm/llvm-project/commit/dfc65ef65e4e92fee244c0eed7ec9223fc943b65 DIFF: https://github.com/llvm/llvm-project/commit/dfc65ef65e4e92fee244c0eed7ec9223fc943b65.diff L

[Lldb-commits] [lldb] [lldb-dap] Test gardening, enabling tests and improving doc comments. (PR #140777)

2025-05-20 Thread Ebuka Ezike via lldb-commits
https://github.com/da-viper approved this pull request. https://github.com/llvm/llvm-project/pull/140777 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb-dap] Test gardening, enabling tests and improving doc comments. (PR #140777)

2025-05-20 Thread Ebuka Ezike via lldb-commits
@@ -1,26 +1,23 @@ """ -Test lldb-dap setBreakpoints request +Test lldb-dap console output """ -import dap_server import lldbdap_testcase -from lldbsuite.test import lldbutil from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * -def get_subproces

[Lldb-commits] [lldb] [lldb-dap] Add ContinueRequestHandler unit test (PR #140566)

2025-05-20 Thread via lldb-commits
jimingham wrote: You can also use ScriptedProcesses for testing. They would allow wrapping a real process and changing the answers it hands out in some way useful to you, or just making up the process state out of whole cloth. https://github.com/llvm/llvm-project/pull/140566 _

[Lldb-commits] [lldb] [lldb-dap] Test gardening, enabling tests and improving doc comments. (PR #140777)

2025-05-20 Thread John Harrison via lldb-commits
@@ -1,26 +1,23 @@ """ -Test lldb-dap setBreakpoints request +Test lldb-dap console output """ -import dap_server import lldbdap_testcase -from lldbsuite.test import lldbutil from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * -def get_subproces

[Lldb-commits] [lldb] [lldb-dap] Test gardening, enabling tests and improving doc comments. (PR #140777)

2025-05-20 Thread Ebuka Ezike via lldb-commits
@@ -1,26 +1,23 @@ """ -Test lldb-dap setBreakpoints request +Test lldb-dap console output """ -import dap_server import lldbdap_testcase -from lldbsuite.test import lldbutil from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * -def get_subproces

[Lldb-commits] [lldb] [lldb-dap] Avoid double 'new' events for dyld on Darwin (PR #140810)

2025-05-20 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Jonas Devlieghere (JDevlieghere) Changes I got a bug report where a pedantic DAP client complains about getting two "new" module events for the same UUID. This is caused by the dyld transition from the on-disk dyld to the shared cache dyld

[Lldb-commits] [lldb] [lldb-dap] Avoid double 'new' events for dyld on Darwin (PR #140810)

2025-05-20 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere created https://github.com/llvm/llvm-project/pull/140810 I got a bug report where a pedantic DAP client complains about getting two "new" module events for the same UUID. This is caused by the dyld transition from the on-disk dyld to the shared cache dyld, which

[Lldb-commits] [lldb] [lldb-dap] assembly breakpoints (PR #139969)

2025-05-20 Thread Ely Ronnen via lldb-commits
eronnen wrote: @JDevlieghere Fixed comments, sorry for the trouble. I'll try to pay extra attention next time :) https://github.com/llvm/llvm-project/pull/139969 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/

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

2025-05-20 Thread Ely Ronnen via lldb-commits
eronnen wrote: @JDevlieghere I Tried to simplify the logics as much as I can in the way you asked, handling the case of unfixed opcode size and disassembling backwards is still a bit complex because there is the edge case where padding is needed, but I hope it's readable enough now. https://g

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

2025-05-20 Thread Ely Ronnen via lldb-commits
@@ -56,100 +54,204 @@ DisassembleRequestHandler::Run(const DisassembleArguments &args) const { } } + int64_t instructionOffset = args.instructionOffset.value_or(0); + if (instructionOffset > 0) { +lldb::SBInstructionList forward_insts = dap.target.ReadInstructions

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

2025-05-20 Thread Ely Ronnen via lldb-commits
@@ -56,100 +54,204 @@ DisassembleRequestHandler::Run(const DisassembleArguments &args) const { } } + int64_t instructionOffset = args.instructionOffset.value_or(0); + if (instructionOffset > 0) { +lldb::SBInstructionList forward_insts = dap.target.ReadInstructions

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

2025-05-20 Thread Ely Ronnen via lldb-commits
https://github.com/eronnen updated https://github.com/llvm/llvm-project/pull/140486 >From 3cfe849fee4f5d489a3205ae0d2a8cd0f26a1b76 Mon Sep 17 00:00:00 2001 From: Ely Ronnen Date: Tue, 20 May 2025 00:47:48 +0200 Subject: [PATCH 1/3] [lldb-dap] Fix disassemble request instruction offset handling

[Lldb-commits] [lldb] [lldb][core] Fix getting summary of a variable pointing to r/o memory (PR #139196)

2025-05-20 Thread Igor Kudrin via lldb-commits
https://github.com/igorkudrin closed https://github.com/llvm/llvm-project/pull/139196 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] 3f196e0 - [lldb][core] Fix getting summary of a variable pointing to r/o memory (#139196)

2025-05-20 Thread via lldb-commits
Author: Igor Kudrin Date: 2025-05-20T13:50:24-07:00 New Revision: 3f196e029314e3ccb429413a5f38ad241e50f3c5 URL: https://github.com/llvm/llvm-project/commit/3f196e029314e3ccb429413a5f38ad241e50f3c5 DIFF: https://github.com/llvm/llvm-project/commit/3f196e029314e3ccb429413a5f38ad241e50f3c5.diff L

[Lldb-commits] [lldb] 1b6b036 - [lldb][docs] add command to save core file in gdb to lldb command map. (#140771)

2025-05-20 Thread via lldb-commits
Author: Ebuka Ezike Date: 2025-05-20T20:57:51+01:00 New Revision: 1b6b036c0220c095c2917308775aa2ddcba506ad URL: https://github.com/llvm/llvm-project/commit/1b6b036c0220c095c2917308775aa2ddcba506ad DIFF: https://github.com/llvm/llvm-project/commit/1b6b036c0220c095c2917308775aa2ddcba506ad.diff L

[Lldb-commits] [lldb] [lldb-dap] Test gardening, enabling tests and improving doc comments. (PR #140777)

2025-05-20 Thread Jonas Devlieghere via lldb-commits
@@ -1102,3 +1103,28 @@ def is_feature_enabled(): return "%s is not supported on this system." % feature return skipTestIfFn(is_feature_enabled) + + +def skipIfBinaryToLarge(path: Optional[str], maxSize: int): +"""Skip the test if a binary is to large. +

[Lldb-commits] [lldb] [lldb-dap] Test gardening, enabling tests and improving doc comments. (PR #140777)

2025-05-20 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere approved this pull request. https://github.com/llvm/llvm-project/pull/140777 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [LLDB] Ptrace seize dead process (PR #137041)

2025-05-20 Thread Jacob Lalonde via lldb-commits
Jlalond wrote: @DavidSpickett fixed the test, I gotcha'd myself checking an optional of a bool. I added my gist to the description, let me know what you think https://github.com/llvm/llvm-project/pull/137041 ___ lldb-commits mailing list lldb-commits@

[Lldb-commits] [lldb] [LLDB] Ptrace seize dead process (PR #137041)

2025-05-20 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond edited https://github.com/llvm/llvm-project/pull/137041 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][docs] add command to save core file in gdb to lldb command map. (PR #140771)

2025-05-20 Thread Ebuka Ezike via lldb-commits
https://github.com/da-viper closed https://github.com/llvm/llvm-project/pull/140771 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Update InterpreterProperties.td (PR #140746)

2025-05-20 Thread via lldb-commits
github-actions[bot] wrote: @anthonycabreralara Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem wi

[Lldb-commits] [lldb] Update InterpreterProperties.td (PR #140746)

2025-05-20 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere closed https://github.com/llvm/llvm-project/pull/140746 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] be5b4fa - Update InterpreterProperties.td (#140746)

2025-05-20 Thread via lldb-commits
Author: Anthony Cabrera-Lara Date: 2025-05-20T12:55:59-07:00 New Revision: be5b4fad2921dc28a0b9af8106177aa4c4862ce0 URL: https://github.com/llvm/llvm-project/commit/be5b4fad2921dc28a0b9af8106177aa4c4862ce0 DIFF: https://github.com/llvm/llvm-project/commit/be5b4fad2921dc28a0b9af8106177aa4c4862ce

[Lldb-commits] [lldb] [lldb-dap] In DAP unit tests, add helpers for loading a CoreFile. (PR #140738)

2025-05-20 Thread Jonas Devlieghere via lldb-commits
@@ -10,8 +10,16 @@ add_lldb_unittest(DAPTests VariablesTest.cpp LINK_LIBS +liblldb lldbDAP +lldbUtilityHelpers LLVMTestingSupport LINK_COMPONENTS Support ) + +set(test_inputs + linux-x86_64.out + linux-x86_64.core JDevliegher

[Lldb-commits] [lldb] [lldb-dap] Test gardening, enabling tests and improving doc comments. (PR #140777)

2025-05-20 Thread Ebuka Ezike via lldb-commits
da-viper wrote: @ashgti I haven't check this yet because of #140788, before remove the skipifs. https://github.com/llvm/llvm-project/pull/140777 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listin

[Lldb-commits] [lldb] [lldb][lldb-dap][tests] Make sure evaluate test exists with no errors. (PR #140788)

2025-05-20 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Ebuka Ezike (da-viper) Changes I was running the tests and encounted this ```sh TIMEOUT: lldb-api :: tools/lldb-dap/gotoTargets/TestDAP_gotoTargets.py (55 of 55) TEST 'lldb-api :: tools/lldb-dap/gotoTargets/TestDAP_g

[Lldb-commits] [lldb] [lldb][lldb-dap][tests] Make sure evaluate test exists with no errors. (PR #140788)

2025-05-20 Thread Ebuka Ezike via lldb-commits
https://github.com/da-viper created https://github.com/llvm/llvm-project/pull/140788 I was running the tests and encounted this ```sh TIMEOUT: lldb-api :: tools/lldb-dap/gotoTargets/TestDAP_gotoTargets.py (55 of 55) TEST 'lldb-api :: tools/lldb-dap/gotoTargets/TestDAP_go

[Lldb-commits] [lldb] [LLDB] Ptrace seize dead process (PR #137041)

2025-05-20 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/137041 >From 68077c22670ec044aab57bacb50c1edc0eb72eef Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Thu, 8 May 2025 12:56:14 -0700 Subject: [PATCH 1/2] Implement PTRACE_SEIZE when a process is coredumping --- ..

[Lldb-commits] [lldb] [lldb-dap] Test gardening, enabling tests and improving doc comments. (PR #140777)

2025-05-20 Thread John Harrison via lldb-commits
https://github.com/ashgti created https://github.com/llvm/llvm-project/pull/140777 A bit of test gardenining. Enabling tests that were marked as skipped as part of https://github.com/llvm/llvm-project/issues/137660. Fixed up some comments and doc comments and fixed some test helpers. >From e5

[Lldb-commits] [lldb] [lldb-dap] Test gardening, enabling tests and improving doc comments. (PR #140777)

2025-05-20 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: John Harrison (ashgti) Changes A bit of test gardenining. Enabling tests that were marked as skipped as part of https://github.com/llvm/llvm-project/issues/137660. Fixed up some comments and doc comments and fixed some test helpers. ---

[Lldb-commits] [lldb] Update InterpreterProperties.td (PR #140746)

2025-05-20 Thread Anthony Cabrera-Lara via lldb-commits
https://github.com/anthonycabreralara reopened https://github.com/llvm/llvm-project/pull/140746 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Update InterpreterProperties.td (PR #140746)

2025-05-20 Thread Anthony Cabrera-Lara via lldb-commits
https://github.com/anthonycabreralara closed https://github.com/llvm/llvm-project/pull/140746 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][docs] add command to save core file in gdb to lldb command map. (PR #140771)

2025-05-20 Thread Jonas Devlieghere via lldb-commits
@@ -1350,6 +1350,17 @@ Dump all symbols in ``a.out`` and ``liba.so`` (lldb) image dump symtab a.out liba.so +Save current process as a core file +~ JDevlieghere wrote: ```suggestion Save current process as a core

[Lldb-commits] [lldb] [lldb][docs] add command to save core file in gdb to lldb command map. (PR #140771)

2025-05-20 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere approved this pull request. https://github.com/llvm/llvm-project/pull/140771 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][docs] add command to save core file in gdb to lldb command map. (PR #140771)

2025-05-20 Thread Ebuka Ezike via lldb-commits
https://github.com/da-viper updated https://github.com/llvm/llvm-project/pull/140771 >From 9e29cc1dd3a7a80fe2935b373b28ba998d2d053b Mon Sep 17 00:00:00 2001 From: Ebuka Ezike Date: Tue, 20 May 2025 18:41:29 +0100 Subject: [PATCH 1/2] [lldb][docs] add command to save core file in gdb to lldb co

[Lldb-commits] [lldb] [lldb][docs] add command to save core file in gdb to lldb command map. (PR #140771)

2025-05-20 Thread Ebuka Ezike via lldb-commits
https://github.com/da-viper created https://github.com/llvm/llvm-project/pull/140771 None >From 9e29cc1dd3a7a80fe2935b373b28ba998d2d053b Mon Sep 17 00:00:00 2001 From: Ebuka Ezike Date: Tue, 20 May 2025 18:41:29 +0100 Subject: [PATCH] [lldb][docs] add command to save core file in gdb to lldb

[Lldb-commits] [lldb] [lldb][docs] add command to save core file in gdb to lldb command map. (PR #140771)

2025-05-20 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Ebuka Ezike (da-viper) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/140771.diff 1 Files Affected: - (modified) lldb/docs/use/map.rst (+11) ``diff diff --git a/lldb/docs/use/map.rst b/lldb/docs/use/map.rst

[Lldb-commits] [lldb] [LLDB] Avoid crashes when inspecting MSVC STL types (PR #140761)

2025-05-20 Thread via lldb-commits
https://github.com/Nerixyz edited https://github.com/llvm/llvm-project/pull/140761 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [Demangling] Refactor Demangler range tracking (PR #140762)

2025-05-20 Thread Charles Zablit via lldb-commits
https://github.com/charles-zablit updated https://github.com/llvm/llvm-project/pull/140762 >From cc3c6d1c86ae0ed579c4f325778ee1b4cd90d6be Mon Sep 17 00:00:00 2001 From: Charles Zablit Date: Tue, 20 May 2025 17:45:20 +0100 Subject: [PATCH 1/2] refactor demangler range tracking --- lldb/include

[Lldb-commits] [lldb] [lldb][lldb-dap] show modules pane if supported by the adapter (PR #140603)

2025-05-20 Thread Ebuka Ezike via lldb-commits
@@ -35,14 +35,24 @@ export class DebugSessionTracker * The modules are kept in an array to maintain the load order of the modules. */ private modules = new Map(); - private modulesChanged = new vscode.EventEmitter(); + private modulesChanged = new vscode.EventEmitter

[Lldb-commits] [lldb] [Demangling] Refactor Demangler range tracking (PR #140762)

2025-05-20 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Charles Zablit (charles-zablit) Changes This PR is a subset of the commits made in https://github.com/swiftlang/llvm-project/pull/10710. The most notable change is the addition of `PrefixRange` and `SuffixRange` which are a catch-all to

[Lldb-commits] [lldb] [LLDB] Avoid crashes when inspecting MSVC STL types (PR #140761)

2025-05-20 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: nerix (Nerixyz) Changes When inspecting/printing types from MSVC's STL, LLDB would crash because it assumes these types were from libstdc++. Specifically, `std::shared_ptr` and `std::optional` would crash because of a null pointer derefere

[Lldb-commits] [lldb] [Demangling] Refactor Demangler range tracking (PR #140762)

2025-05-20 Thread Charles Zablit via lldb-commits
https://github.com/charles-zablit created https://github.com/llvm/llvm-project/pull/140762 This PR is a subset of the commits made in https://github.com/swiftlang/llvm-project/pull/10710. The most notable change is the addition of `PrefixRange` and `SuffixRange` which are a catch-all to trac

[Lldb-commits] [lldb] [LLDB] Avoid crashes when inspecting MSVC STL types (PR #140761)

2025-05-20 Thread via lldb-commits
https://github.com/Nerixyz created https://github.com/llvm/llvm-project/pull/140761 When inspecting/printing types from MSVC's STL, LLDB would crash because it assumes these types were from libstdc++. Specifically, `std::shared_ptr` and `std::optional` would crash because of a null pointer der

[Lldb-commits] [lldb] [LLDB][ELF Core] Support all the Generic (Negative) SI Codes. (PR #140150)

2025-05-20 Thread Pavel Labath via lldb-commits
labath wrote: Correct. https://github.com/llvm/llvm-project/pull/140150 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][lldb-dap] show modules pane if supported by the adapter (PR #140603)

2025-05-20 Thread Ebuka Ezike via lldb-commits
https://github.com/da-viper edited https://github.com/llvm/llvm-project/pull/140603 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][lldb-dap] show modules pane if supported by the adapter (PR #140603)

2025-05-20 Thread Ebuka Ezike via lldb-commits
@@ -70,9 +71,21 @@ export class DebugSessionTracker /** Clear information from the active session. */ private onExit(session: vscode.DebugSession) { this.modules.delete(session); +// close when there is no more sessions +if (this.modules.size <= 0) { ---

[Lldb-commits] [lldb] [lldb] Reduce max-children-count default to readable size (PR #139826)

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

[Lldb-commits] [lldb] ff12762 - [lldb] Reduce max-children-count default to readable size (#139826)

2025-05-20 Thread via lldb-commits
Author: Dave Lee Date: 2025-05-20T09:34:42-07:00 New Revision: ff127624be8cca921d1a6ed457cc3310b094ff59 URL: https://github.com/llvm/llvm-project/commit/ff127624be8cca921d1a6ed457cc3310b094ff59 DIFF: https://github.com/llvm/llvm-project/commit/ff127624be8cca921d1a6ed457cc3310b094ff59.diff LOG:

[Lldb-commits] [lldb] [LLDB] Ptrace seize dead process (PR #137041)

2025-05-20 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/137041 >From 68077c22670ec044aab57bacb50c1edc0eb72eef Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Thu, 8 May 2025 12:56:14 -0700 Subject: [PATCH] Implement PTRACE_SEIZE when a process is coredumping --- .../Pr

[Lldb-commits] [lldb] [LLDB][ELF Core] Support all the Generic (Negative) SI Codes. (PR #140150)

2025-05-20 Thread Jacob Lalonde via lldb-commits
Jlalond wrote: @labath I think I misunderstand the vision you're trying to get at. Are you suggesting we have Platform determine the Signal description and the ProcessElfThread would call out to the platform_sp for it? https://github.com/llvm/llvm-project/pull/140150 ___

[Lldb-commits] [lldb] [LLDB] Add array subscription and integer parsing to DIL (PR #138551)

2025-05-20 Thread Ilia Kuklin via lldb-commits
@@ -272,4 +272,67 @@ Interpreter::Visit(const UnaryOpNode *node) { m_expr, "invalid ast: unexpected binary operator", node->GetLocation()); } +llvm::Expected +Interpreter::Visit(const ArraySubscriptNode *node) { + auto lhs_or_err = Evaluate(node->GetBase()); + if (!lhs

[Lldb-commits] [lldb] [LLDB] Add array subscription and integer parsing to DIL (PR #138551)

2025-05-20 Thread Ilia Kuklin via lldb-commits
https://github.com/kuilpd updated https://github.com/llvm/llvm-project/pull/138551 >From ad204cdfd226ca2a886c5475775fe67b29a70926 Mon Sep 17 00:00:00 2001 From: Ilia Kuklin Date: Wed, 30 Apr 2025 22:03:50 +0500 Subject: [PATCH 1/7] [LLDB] Add array subscription and integer parsing to DIL ---

[Lldb-commits] [lldb] Update InterpreterProperties.td (PR #140746)

2025-05-20 Thread via lldb-commits
github-actions[bot] wrote: ⚠️ We detected that you are using a GitHub private e-mail address to contribute to the repo. Please turn off [Keep my email addresses private](https://github.com/settings/emails) setting in your account. See [LLVM Discourse](https://discourse.llvm.org/t/hidden-email

[Lldb-commits] [lldb] Update InterpreterProperties.td (PR #140746)

2025-05-20 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere edited https://github.com/llvm/llvm-project/pull/140746 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Update InterpreterProperties.td (PR #140746)

2025-05-20 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere approved this pull request. Thanks! https://github.com/llvm/llvm-project/pull/140746 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb-dap] assembly breakpoints (PR #139969)

2025-05-20 Thread Jonas Devlieghere via lldb-commits
@@ -1620,6 +1620,88 @@ void DAP::EventThread() { } } +std::vector DAP::SetSourceBreakpoints( +const protocol::Source &source, +const std::optional> &breakpoints) { + std::vector response_breakpoints; + if (source.sourceReference) { +// breakpoint set by assemb

[Lldb-commits] [lldb] [lldb-dap] assembly breakpoints (PR #139969)

2025-05-20 Thread Jonas Devlieghere via lldb-commits
@@ -33,16 +36,51 @@ SourceBreakpoint::SourceBreakpoint(DAP &dap, m_line(breakpoint.line), m_column(breakpoint.column.value_or(LLDB_INVALID_COLUMN_NUMBER)) {} -void SourceBreakpoint::SetBreakpoint(const llvm::StringRef source_path) { +llvm::Error SourceBreakpoint::S

[Lldb-commits] [lldb] [lldb-dap] assembly breakpoints (PR #139969)

2025-05-20 Thread Jonas Devlieghere via lldb-commits
@@ -219,6 +218,9 @@ struct DAP { llvm::StringSet<> modules; /// @} + /// Number of lines of assembly code to show when no debug info is available. + static constexpr uint32_t number_of_assembly_lines_for_nodebug = 32; JDevlieghere wrote: Constants use a

[Lldb-commits] [lldb] [lldb-dap] assembly breakpoints (PR #139969)

2025-05-20 Thread Jonas Devlieghere via lldb-commits
@@ -1620,6 +1620,88 @@ void DAP::EventThread() { } } +std::vector DAP::SetSourceBreakpoints( +const protocol::Source &source, +const std::optional> &breakpoints) { + std::vector response_breakpoints; + if (source.sourceReference) { +// breakpoint set by assemb

[Lldb-commits] [lldb] [lldb-dap] assembly breakpoints (PR #139969)

2025-05-20 Thread Jonas Devlieghere via lldb-commits
@@ -33,16 +36,51 @@ SourceBreakpoint::SourceBreakpoint(DAP &dap, m_line(breakpoint.line), m_column(breakpoint.column.value_or(LLDB_INVALID_COLUMN_NUMBER)) {} -void SourceBreakpoint::SetBreakpoint(const llvm::StringRef source_path) { +llvm::Error SourceBreakpoint::S

[Lldb-commits] [lldb] [lldb-dap] assembly breakpoints (PR #139969)

2025-05-20 Thread Jonas Devlieghere via lldb-commits
@@ -1620,6 +1620,88 @@ void DAP::EventThread() { } } +std::vector DAP::SetSourceBreakpoints( +const protocol::Source &source, +const std::optional> &breakpoints) { + std::vector response_breakpoints; + if (source.sourceReference) { +// breakpoint set by assemb

[Lldb-commits] [lldb] [lldb-dap] assembly breakpoints (PR #139969)

2025-05-20 Thread Jonas Devlieghere via lldb-commits
@@ -1620,6 +1620,88 @@ void DAP::EventThread() { } } +std::vector DAP::SetSourceBreakpoints( +const protocol::Source &source, +const std::optional> &breakpoints) { + std::vector response_breakpoints; + if (source.sourceReference) { +// breakpoint set by assemb

[Lldb-commits] [lldb] [lldb-dap] assembly breakpoints (PR #139969)

2025-05-20 Thread Jonas Devlieghere via lldb-commits
@@ -72,21 +99,31 @@ BreakpointLocationsRequestHandler::Run( } } - // The line entries are sorted by addresses, but we must return the list - // ordered by line / column position. - std::sort(locations.begin(), locations.end()); - locations.erase(llvm::unique(location

[Lldb-commits] [lldb] [lldb-dap] assembly breakpoints (PR #139969)

2025-05-20 Thread Jonas Devlieghere via lldb-commits
@@ -19,19 +19,46 @@ namespace lldb_dap { llvm::Expected BreakpointLocationsRequestHandler::Run( const protocol::BreakpointLocationsArguments &args) const { - std::string path = args.source.path.value_or(""); uint32_t start_line = args.line; uint32_t start_column = ar

[Lldb-commits] [lldb] [lldb-dap] assembly breakpoints (PR #139969)

2025-05-20 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere edited https://github.com/llvm/llvm-project/pull/139969 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb-dap] assembly breakpoints (PR #139969)

2025-05-20 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere commented: Mostly style nits at this point. The comments and braces are relatively easy to spot, so in the future please do a review pass over your own PRs. I bet you'll be able to catch most of these yourself. https://github.com/llvm/llvm-project/pull/139969 __

[Lldb-commits] [lldb] [lldb-dap] assembly breakpoints (PR #139969)

2025-05-20 Thread Jonas Devlieghere via lldb-commits
@@ -63,14 +65,31 @@ protocol::Breakpoint Breakpoint::ToProtocolBreakpoint() { std::string formatted_addr = "0x" + llvm::utohexstr(bp_addr.GetLoadAddress(m_bp.GetTarget())); breakpoint.instructionReference = formatted_addr; + +lldb::StopDisassemblyType stop_d

[Lldb-commits] [lldb] Update InterpreterProperties.td (PR #140746)

2025-05-20 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Anthony Cabrera-Lara (anthonycabreralara) Changes Fix typo in interpreter property description --- Full diff: https://github.com/llvm/llvm-project/pull/140746.diff 1 Files Affected: - (modified) lldb/source/Interpreter/InterpreterPropert

[Lldb-commits] [lldb] Update InterpreterProperties.td (PR #140746)

2025-05-20 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] Update InterpreterProperties.td (PR #140746)

2025-05-20 Thread Anthony Cabrera-Lara via lldb-commits
https://github.com/anthonycabreralara created https://github.com/llvm/llvm-project/pull/140746 Fix typo in interpreter property description >From cd4f55e952ea2b5f8420d9f8ca3affde2045819a Mon Sep 17 00:00:00 2001 From: Anthony Cabrera-Lara <60250777+anthonycabreral...@users.noreply.github.com>

  1   2   >