[Lldb-commits] [lldb] [lldb] Retcon SBValue::GetChildAtIndex(synthetic=true) (PR #140065)

2025-05-19 Thread LLVM Continuous Integration via lldb-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `fuchsia-x86_64-linux` running on `fuchsia-debian-64-us-central1-b-1` while building `lldb` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/11/builds/15495 Here is the relevant p

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

2025-05-19 Thread Pavel Labath via lldb-commits
labath wrote: gmock doesn't let you do anything that wouldn't be possible without it. For this to work, the code which interacts with the mock needs to be ready to accept something other than the real object somehow. That usually means making the mocked object polymorphic, but that is a no

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

2025-05-19 Thread Jonas Devlieghere 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-19 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere 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-19 Thread Jonas Devlieghere 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-19 Thread Jonas Devlieghere 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-19 Thread Jonas Devlieghere via lldb-commits
@@ -56,100 +54,204 @@ DisassembleRequestHandler::Run(const DisassembleArguments &args) const { } } + int64_t instructionOffset = args.instructionOffset.value_or(0); JDevlieghere wrote: Maybe add a comment saying that this is the _number_ of instructio

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

2025-05-19 Thread Jonas Devlieghere 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-19 Thread Jonas Devlieghere via lldb-commits
@@ -1668,6 +1668,26 @@ SBError SBTarget::SetLabel(const char *label) { return Status::FromError(target_sp->SetLabel(label)); } +uint32_t SBTarget::GetMinimumOpcodeByteSize() const { + LLDB_INSTRUMENT_VA(this); + + TargetSP target_sp(GetSP()); + if (target_sp) { +retur

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

2025-05-19 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere commented: As a general comment, the code is becoming quite complicated and I think it would help if we can break things up more. Looking at the protocol arguments we have and offset in bytes, an offset in instructions, and then an instruction count. If possible

[Lldb-commits] [lldb] df0358f - [lldb-dap] Remove spurious move (NFC) (#140641)

2025-05-19 Thread via lldb-commits
Author: Jonas Devlieghere Date: 2025-05-19T18:37:49-07:00 New Revision: df0358f36b69689b8d502efd08cb8422cf170600 URL: https://github.com/llvm/llvm-project/commit/df0358f36b69689b8d502efd08cb8422cf170600 DIFF: https://github.com/llvm/llvm-project/commit/df0358f36b69689b8d502efd08cb8422cf170600.d

[Lldb-commits] [lldb] [lldb-dap] Remove spurious move (NFC) (PR #140641)

2025-05-19 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere closed https://github.com/llvm/llvm-project/pull/140641 ___ 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-19 Thread John Harrison via lldb-commits
https://github.com/ashgti approved this pull request. 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-19 Thread Ely Ronnen via lldb-commits
@@ -72,21 +99,29 @@ 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-19 Thread Ely Ronnen via lldb-commits
@@ -948,13 +956,11 @@ def request_scopes(self, frameId): command_dict = {"command": "scopes", "type": "request", "arguments": args_dict} return self.send_recv(command_dict) -def request_setBreakpoints(self, file_path, line_array, data=None): +def reque

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

2025-05-19 Thread John Harrison via lldb-commits
@@ -35,29 +36,34 @@ SourceBreakpoint::SourceBreakpoint(DAP &dap, m_line(breakpoint.line), m_column(breakpoint.column.value_or(LLDB_INVALID_COLUMN_NUMBER)) {} -void SourceBreakpoint::SetBreakpoint(const protocol::Source &source) { +llvm::Error SourceBreakpoint::SetB

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

2025-05-19 Thread Ely Ronnen via lldb-commits
https://github.com/eronnen 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-19 Thread Ely Ronnen via lldb-commits
https://github.com/eronnen 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-19 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Ely Ronnen (eronnen) Changes --- Patch is 21.90 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/140486.diff 9 Files Affected: - (modified) lldb/include/lldb/API/SBTarget.h (+4) - (modified)

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

2025-05-19 Thread Ely Ronnen via lldb-commits
https://github.com/eronnen ready_for_review 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-19 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/2] [lldb-dap] Fix disassemble request instruction offset handling

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

2025-05-19 Thread John Harrison via lldb-commits
@@ -787,7 +787,7 @@ { "id": "lldb-dap.modules", "name": "Modules", - "when": "inDebugMode && debugType == 'lldb-dap'", + "when": "inDebugMode && debugType == 'lldb-dap' && lldb-dap.showModules", ashgti wrote: Can

[Lldb-commits] [lldb] [lldb-dap] Remove spurious move (NFC) (PR #140641)

2025-05-19 Thread John Harrison via lldb-commits
https://github.com/ashgti approved this pull request. https://github.com/llvm/llvm-project/pull/140641 ___ 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-19 Thread John Harrison 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) { + this

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

2025-05-19 Thread Dave Lee via lldb-commits
https://github.com/kastiglione updated https://github.com/llvm/llvm-project/pull/139826 >From 52c587ef84366a0c2a01256f71f1f2404467e3a8 Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Thu, 8 May 2025 17:24:19 -0700 Subject: [PATCH 1/2] [lldb] Reduce max-children-count default to readable size Cha

[Lldb-commits] [lldb] [lldb] Support riscv32 ELF corefiles (PR #115408)

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

[Lldb-commits] [lldb] dfabd61 - [lldb] Support riscv32 ELF corefiles (#115408)

2025-05-19 Thread via lldb-commits
Author: Jonas Devlieghere Date: 2025-05-19T16:04:50-07:00 New Revision: dfabd61f7370cdd2ba76876b04993e991bb4e58b URL: https://github.com/llvm/llvm-project/commit/dfabd61f7370cdd2ba76876b04993e991bb4e58b DIFF: https://github.com/llvm/llvm-project/commit/dfabd61f7370cdd2ba76876b04993e991bb4e58b.d

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

2025-05-19 Thread Ely Ronnen via lldb-commits
@@ -35,29 +36,34 @@ SourceBreakpoint::SourceBreakpoint(DAP &dap, m_line(breakpoint.line), m_column(breakpoint.column.value_or(LLDB_INVALID_COLUMN_NUMBER)) {} -void SourceBreakpoint::SetBreakpoint(const protocol::Source &source) { +llvm::Error SourceBreakpoint::SetB

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

2025-05-19 Thread Jonas Devlieghere 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 JDevlieghere wrote: ```sugge

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

2025-05-19 Thread Jonas Devlieghere 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][lldb-dap] show modules pane if supported by the adapter (PR #140603)

2025-05-19 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere approved this pull request. LGTM modulo comments. 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-19 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere 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-dap] Remove spurious move (NFC) (PR #140641)

2025-05-19 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Jonas Devlieghere (JDevlieghere) Changes getArgumentsIfRequest is returning a local variable by value. Using std::move is not needed and may inhibit copy elision. Also fixes the braces around a single-line if. --- Full diff: https://githu

[Lldb-commits] [lldb] [lldb-dap] Remove spurious move (NFC) (PR #140641)

2025-05-19 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere created https://github.com/llvm/llvm-project/pull/140641 getArgumentsIfRequest is returning a local variable by value. Using std::move is not needed and may inhibit copy elision. Also fixes the braces around a single-line if. >From 0e7412042fcf77f4d5cf65b2c4e23

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

2025-05-19 Thread Ebuka Ezike via lldb-commits
@@ -102,6 +111,8 @@ export class DebugSessionTracker console.error("unexpected module event reason"); break; } + + this.showModulesTreeView(modules.length > 0); da-viper wrote: I assumed if there is no modules the session has end

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

2025-05-19 Thread Ebuka Ezike via lldb-commits
https://github.com/da-viper updated https://github.com/llvm/llvm-project/pull/140603 >From 8ca0be7cdd49caa32db43097d9ff9c4060b1d87d Mon Sep 17 00:00:00 2001 From: Ebuka Ezike Date: Mon, 19 May 2025 20:44:31 +0100 Subject: [PATCH 1/3] [lldb][lldb-dap] show modules pane if supported by the adapt

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

2025-05-19 Thread Ebuka Ezike via lldb-commits
https://github.com/da-viper updated https://github.com/llvm/llvm-project/pull/140603 >From 8ca0be7cdd49caa32db43097d9ff9c4060b1d87d Mon Sep 17 00:00:00 2001 From: Ebuka Ezike Date: Mon, 19 May 2025 20:44:31 +0100 Subject: [PATCH 1/2] [lldb][lldb-dap] show modules pane if supported by the adapt

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

2025-05-19 Thread John Harrison via lldb-commits
@@ -948,13 +956,11 @@ def request_scopes(self, frameId): command_dict = {"command": "scopes", "type": "request", "arguments": args_dict} return self.send_recv(command_dict) -def request_setBreakpoints(self, file_path, line_array, data=None): +def reque

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

2025-05-19 Thread John Harrison via lldb-commits
https://github.com/ashgti approved this pull request. 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-19 Thread John Harrison via lldb-commits
@@ -35,29 +36,34 @@ SourceBreakpoint::SourceBreakpoint(DAP &dap, m_line(breakpoint.line), m_column(breakpoint.column.value_or(LLDB_INVALID_COLUMN_NUMBER)) {} -void SourceBreakpoint::SetBreakpoint(const protocol::Source &source) { +llvm::Error SourceBreakpoint::SetB

[Lldb-commits] [lldb] [lldb-dap] launch the adapter from the workspace folder. (PR #140604)

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

[Lldb-commits] [lldb] 2523a83 - [lldb-dap] launch the adapter from the workspace folder. (#140604)

2025-05-19 Thread via lldb-commits
Author: Ebuka Ezike Date: 2025-05-19T23:25:33+01:00 New Revision: 2523a8358ab9526a46f825fd94cc8a5d018f5ff7 URL: https://github.com/llvm/llvm-project/commit/2523a8358ab9526a46f825fd94cc8a5d018f5ff7 DIFF: https://github.com/llvm/llvm-project/commit/2523a8358ab9526a46f825fd94cc8a5d018f5ff7.diff L

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

2025-05-19 Thread Ebuka Ezike via lldb-commits
@@ -72,21 +99,29 @@ 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][Progress-On-Dap] Have indeterminate progress actually send events. (PR #140162)

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

[Lldb-commits] [lldb] f27cfea - [LLDB][Progress-On-Dap] Have indeterminate progress actually send events. (#140162)

2025-05-19 Thread via lldb-commits
Author: Jacob Lalonde Date: 2025-05-19T15:19:55-07:00 New Revision: f27cfeae6a544775803a50b3ed4c87e9193889a2 URL: https://github.com/llvm/llvm-project/commit/f27cfeae6a544775803a50b3ed4c87e9193889a2 DIFF: https://github.com/llvm/llvm-project/commit/f27cfeae6a544775803a50b3ed4c87e9193889a2.diff

[Lldb-commits] [lldb] 2dd6a8c - [lldb-dap] Remove unused enum (NFC)

2025-05-19 Thread Jonas Devlieghere via lldb-commits
Author: Jonas Devlieghere Date: 2025-05-19T15:15:07-07:00 New Revision: 2dd6a8c35a79710273bb98da8729ec6dea251998 URL: https://github.com/llvm/llvm-project/commit/2dd6a8c35a79710273bb98da8729ec6dea251998 DIFF: https://github.com/llvm/llvm-project/commit/2dd6a8c35a79710273bb98da8729ec6dea251998.d

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

2025-05-19 Thread Ebuka Ezike via lldb-commits
@@ -0,0 +1,16 @@ +#include da-viper wrote: Maybe the file was not saved, as it it is not empty, if not make you could make it a cpp file. https://github.com/llvm/llvm-project/pull/139969 ___ lldb-commits mailing list

[Lldb-commits] [lldb] [LLDB][Progress-On-Dap] Have indeterminate progress actually send events. (PR #140162)

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

[Lldb-commits] [lldb] [LLDB][Progress-On-Dap] Have indeterminate progress actually send events. (PR #140162)

2025-05-19 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/140162 >From 0673dc530a91cb2dd1bdd60dd5136d64e4ed48e8 Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Thu, 15 May 2025 16:37:06 -0700 Subject: [PATCH 1/3] Have interderminate events actually broadcast to dap --- .

[Lldb-commits] [lldb] [lldb] Support riscv32 ELF corefiles (PR #115408)

2025-05-19 Thread Jonas Devlieghere via lldb-commits
JDevlieghere wrote: @jasonmolenda Yes, my understanding is that the GPRs are 33*8=264 bytes for riscv64 and 33*4=132 bytes for riscv32. The FPR start at offset 132. https://github.com/llvm/llvm-project/pull/115408 ___ lldb-commits mailing list lldb-c

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

2025-05-19 Thread Ebuka Ezike via lldb-commits
@@ -72,21 +99,29 @@ 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] Suppport testing with debug-python on Windows (PR #140443)

2025-05-19 Thread Nico Weber via lldb-commits
nico wrote: lldb/test/lit.site.cfg.py.in, lldb/test/Shell/lit.site.cfg.py.in, lldb/test/Unit/lit.site.cfg.py.in also use `"@Python3_EXECUTABLE@"`. Do those need changing too? https://github.com/llvm/llvm-project/pull/140443 ___ lldb-commits mailing l

[Lldb-commits] [lldb] [LLDB][Progress-On-Dap] Have indeterminate progress actually send events. (PR #140162)

2025-05-19 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/140162 >From 0673dc530a91cb2dd1bdd60dd5136d64e4ed48e8 Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Thu, 15 May 2025 16:37:06 -0700 Subject: [PATCH 1/3] Have interderminate events actually broadcast to dap --- .

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

2025-05-19 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/140150 >From 86ec6c076b9cf8e7afeb7d6bb0e334434f6e0d9e Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Thu, 15 May 2025 13:57:11 -0700 Subject: [PATCH 01/10] Update ThreadElfCore --- lldb/include/lldb/Target/UnixSi

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

2025-05-19 Thread Ely Ronnen via lldb-commits
@@ -955,6 +955,13 @@ def request_setBreakpoints(self, file_path, line_array, data=None): """ (dir, base) = os.path.split(file_path) source_dict = {"name": base, "path": file_path} +return self.request_setBreakpoints_with_source(source_dict, lin

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

2025-05-19 Thread Ely Ronnen via lldb-commits
@@ -33,13 +35,42 @@ 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) { +void SourceBreakpoint::SetBreak

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

2025-05-19 Thread Ely Ronnen via lldb-commits
@@ -452,6 +475,9 @@ struct DAP { std::mutex m_active_request_mutex; const protocol::Request *m_active_request; + + llvm::StringMap m_source_breakpoints; + llvm::DenseMap m_source_assembly_breakpoints; eronnen wrote: I think it should be pretty simplifie

[Lldb-commits] [lld] [lldb] [NFC] Address more bit-field storage sizes (PR #140493)

2025-05-19 Thread Oliver Hunt via lldb-commits
@@ -99,15 +99,15 @@ class InputChunk { // the beginning of the output section this chunk was assigned to. int32_t outSecOff = 0; - uint8_t sectionKind : 3; + uint32_t sectionKind : 3; ojhunt wrote: Yes, let me check whether I'm meant to be using Microso

[Lldb-commits] [lldb] [lldb] Support riscv32 ELF corefiles (PR #115408)

2025-05-19 Thread Jason Molenda via lldb-commits
jasonmolenda wrote: I see the latest update includes the necessary changes to ThreadElfCore, that looks good. I'm still curious what this code does when reading x0. The RegisterContext GPR struct defines 32 elements, pc + x1-x31, and the offset of x0 would be the 33rd element. But instead o

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

2025-05-19 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere approved this pull request. LGTM, but I'd like @jasonmolenda to sign off as the debugserver maintainer. https://github.com/llvm/llvm-project/pull/140611 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://l

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

2025-05-19 Thread Tal Keren via lldb-commits
https://github.com/talkeren updated https://github.com/llvm/llvm-project/pull/140611 >From c385e9780e980865461f877c76acaa417b4d736c Mon Sep 17 00:00:00 2001 From: Tal Keren Date: Mon, 19 May 2025 23:15:10 +0300 Subject: [PATCH 1/2] [lldb] Properly cache the result of MachProcess::GetPlatform #

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

2025-05-19 Thread via lldb-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff HEAD~1 HEAD --extensions h -- lldb/tools/debugserver/source/MacOSX/MachProcess.h

[Lldb-commits] [lldb] Add commands to list/enable/disable plugins (PR #134418)

2025-05-19 Thread David Peixotto via lldb-commits
dmpots wrote: ping @clayborg @JDevlieghere @jimingham. Please take a look when you get a chance. Thanks! https://github.com/llvm/llvm-project/pull/134418 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/

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

2025-05-19 Thread Tal Keren via lldb-commits
https://github.com/talkeren edited 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] Support riscv32 ELF corefiles (PR #115408)

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

[Lldb-commits] [lldb] [lldb] Support riscv32 corefiles (PR #115408)

2025-05-19 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere updated https://github.com/llvm/llvm-project/pull/115408 >From b72c1072f581bb6818a3cb7bcd59a1b44d998f52 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Thu, 7 Nov 2024 17:18:50 -0800 Subject: [PATCH] [lldb] Support riscv32 ELF corefiles Support riscv32 EL

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

2025-05-19 Thread Tal Keren via lldb-commits
https://github.com/talkeren edited 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] Support riscv32 ELF corefiles (PR #115408)

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

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

2025-05-19 Thread Tal Keren via lldb-commits
https://github.com/talkeren updated https://github.com/llvm/llvm-project/pull/140611 >From c385e9780e980865461f877c76acaa417b4d736c Mon Sep 17 00:00:00 2001 From: Tal Keren Date: Mon, 19 May 2025 23:15:10 +0300 Subject: [PATCH] [lldb] Properly cache the result of MachProcess::GetPlatform #1406

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

2025-05-19 Thread Tal Keren via lldb-commits
https://github.com/talkeren updated https://github.com/llvm/llvm-project/pull/140611 >From 7ccef56ba9d82fae7901bc39ef648b7be6bba473 Mon Sep 17 00:00:00 2001 From: Tal Keren Date: Mon, 19 May 2025 23:15:10 +0300 Subject: [PATCH] [lldb] Properly cache the result of MachProcess::GetPlatform #1406

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

2025-05-19 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Tal Keren (talkeren) Changes If `MachProcess::GetProcessPlatformViaDYLDSPI` fails and return 0, we don't want to call it everytime as it won't change the result. So use std::optional to cache wether we already calculated the value. --- Full

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

2025-05-19 Thread Tal Keren via lldb-commits
https://github.com/talkeren created https://github.com/llvm/llvm-project/pull/140611 If `MachProcess::GetProcessPlatformViaDYLDSPI` fails and return 0, we don't want to call it everytime as it won't change the result. So use std::optional to cache wether we already calculated the value. >From 7

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

2025-05-19 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] 30c9909 - [lldb-dap] Migrate disassemble request to structured handler (#140482)

2025-05-19 Thread via lldb-commits
Author: Ely Ronnen Date: 2025-05-19T22:13:58+02:00 New Revision: 30c990990940c15650ee1a488255a37c7a7af094 URL: https://github.com/llvm/llvm-project/commit/30c990990940c15650ee1a488255a37c7a7af094 DIFF: https://github.com/llvm/llvm-project/commit/30c990990940c15650ee1a488255a37c7a7af094.diff LO

[Lldb-commits] [lldb] [lldb-dap] Migrate disassemble request to structured handler (PR #140482)

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

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

2025-05-19 Thread Igor Kudrin via lldb-commits
igorkudrin wrote: Ping. 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] [lldb][lldb-dap] show modules pane if supported by the adapter (PR #140603)

2025-05-19 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere commented: Thanks for the quick turnaround! 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-dap] launch the adapter from the workspace folder. (PR #140604)

2025-05-19 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Ebuka Ezike (da-viper) Changes if the `cwd` option is empty this means the adapter is created in the home folder. Any relative file saved is in the home folder. The files should be relative to the current workspace folder. --- Full diff:

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

2025-05-19 Thread Jonas Devlieghere via lldb-commits
@@ -102,6 +111,8 @@ export class DebugSessionTracker console.error("unexpected module event reason"); break; } + + this.showModulesTreeView(modules.length > 0); JDevlieghere wrote: Does this mean that if all modules get unloaded,

[Lldb-commits] [lldb] [lldb-dap] launch the adapter from the workspace folder. (PR #140604)

2025-05-19 Thread Ebuka Ezike via lldb-commits
https://github.com/da-viper created https://github.com/llvm/llvm-project/pull/140604 if the `cwd` option is empty this means the adapter is created in the home folder. Any relative file saved is in the home folder. The files should be relative to the current workspace folder. >From 825a1dea8

[Lldb-commits] [lldb] [LLDB][Progress-On-Dap] Have indeterminate progress actually send events. (PR #140162)

2025-05-19 Thread Jacob Lalonde via lldb-commits
@@ -77,16 +77,19 @@ ProgressEvent::Create(uint64_t progress_id, std::optional message, if (event.GetEventType() == progressStart && event.GetEventName().empty()) return std::nullopt; - if (prev_event && prev_event->EqualsForIDE(event)) + if (prev_event && prev_event->

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

2025-05-19 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Ebuka Ezike (da-viper) Changes Fixes #140589 Added logic to dynamically set the `lldb-dap.showModules` context based on the presence of modules in the debug session. --- Full diff: https://github.com/llvm/llvm-project/pull/140603.diff 2

[Lldb-commits] [lldb] [lldb] Update Xfail window (PR #140599)

2025-05-19 Thread Vy Nguyen via lldb-commits
https://github.com/oontvoo closed https://github.com/llvm/llvm-project/pull/140599 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] 10d198b - [lldb] Update Xfail window (#140599)

2025-05-19 Thread via lldb-commits
Author: Vy Nguyen Date: 2025-05-19T15:51:15-04:00 New Revision: 10d198b32cd0b6aaeeaf1a6217611797c01f47f7 URL: https://github.com/llvm/llvm-project/commit/10d198b32cd0b6aaeeaf1a6217611797c01f47f7 DIFF: https://github.com/llvm/llvm-project/commit/10d198b32cd0b6aaeeaf1a6217611797c01f47f7.diff LOG

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

2025-05-19 Thread Ebuka Ezike via lldb-commits
https://github.com/da-viper created https://github.com/llvm/llvm-project/pull/140603 Fixes #140589 Added logic to dynamically set the `lldb-dap.showModules` context based on the presence of modules in the debug session. >From 8ca0be7cdd49caa32db43097d9ff9c4060b1d87d Mon Sep 17 00:00:00 2001 Fr

[Lldb-commits] [lldb] [lldb] Update Xfail window (PR #140599)

2025-05-19 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Vy Nguyen (oontvoo) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/140599.diff 1 Files Affected: - (modified) lldb/test/Shell/Commands/list-header.test (+1-1) ``diff diff --git a/lldb/test/Shell/Commands/lis

[Lldb-commits] [lldb] [lldb] Update Xfail window (PR #140599)

2025-05-19 Thread Vy Nguyen via lldb-commits
https://github.com/oontvoo created https://github.com/llvm/llvm-project/pull/140599 None >From 8bf781af04e046076de1e5d6ebcfcf1f508be211 Mon Sep 17 00:00:00 2001 From: Vy Nguyen Date: Mon, 19 May 2025 14:26:36 -0400 Subject: [PATCH 1/2] [lldb][nfc]Make test "xfail" on windows --- lldb/test/Sh

[Lldb-commits] [lldb] [LLDB][Progress-On-Dap] Have indeterminate progress actually send events. (PR #140162)

2025-05-19 Thread John Harrison via lldb-commits
@@ -77,16 +77,19 @@ ProgressEvent::Create(uint64_t progress_id, std::optional message, if (event.GetEventType() == progressStart && event.GetEventName().empty()) return std::nullopt; - if (prev_event && prev_event->EqualsForIDE(event)) + if (prev_event && prev_event->

[Lldb-commits] [lldb] [lldb][nfc]Make test "xfail" on windows (PR #140588)

2025-05-19 Thread Vy Nguyen via lldb-commits
oontvoo wrote: fixing now. thanks! https://github.com/llvm/llvm-project/pull/140588 ___ 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-19 Thread Ely Ronnen via lldb-commits
https://github.com/eronnen deleted 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-19 Thread Ely Ronnen via lldb-commits
https://github.com/eronnen 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-19 Thread Ely Ronnen via lldb-commits
@@ -34,26 +36,22 @@ SourceRequestHandler::Run(const protocol::SourceArguments &args) const { return llvm::make_error( "invalid arguments, expected source.sourceReference to be set"); - lldb::SBProcess process = dap.target.GetProcess(); - // Upper 32 bits is the

[Lldb-commits] [lldb] [lldb][nfc]Make test "xfail" on windows (PR #140588)

2025-05-19 Thread Dmitry Vasilyev via lldb-commits
slydiman wrote: https://lab.llvm.org/buildbot/#/builders/197/builds/5542 is broken. Probably you must use `XFAIL: target-windows` instead of `XFAIL: system-windows`. https://github.com/llvm/llvm-project/pull/140588 ___ lldb-commits mailing list lldb-

[Lldb-commits] [lldb] [lldb-dap] Migrate disassemble request to structured handler (PR #140482)

2025-05-19 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/140482 ___ 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-19 Thread Ely Ronnen via lldb-commits
@@ -72,21 +99,29 @@ 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-19 Thread Ely Ronnen via lldb-commits
@@ -72,21 +99,29 @@ 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-19 Thread Ely Ronnen via lldb-commits
@@ -0,0 +1,55 @@ +""" +Test lldb-dap setBreakpoints request +""" + + +import dap_server +import shutil +from lldbsuite.test.decorators import * +from lldbsuite.test.lldbtest import line_number +from lldbsuite.test import lldbutil +import lldbdap_testcase +import os + + +class Test

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

2025-05-19 Thread Ely Ronnen via lldb-commits
@@ -0,0 +1,16 @@ +#include eronnen wrote: fixed, for some reason I'm getting a warning `ISO C requires a translation unit to contain at least one declarationclang(-Wempty-translation-unit)` but I can ignore https://github.com/llvm/llvm-project/pull/139969 ___

[Lldb-commits] [lldb] [lldb-dap] Migrate disassemble request to structured handler (PR #140482)

2025-05-19 Thread Ely Ronnen via lldb-commits
eronnen wrote: Fixed comments https://github.com/llvm/llvm-project/pull/140482 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb-dap] Migrate disassemble request to structured handler (PR #140482)

2025-05-19 Thread Ely Ronnen via lldb-commits
https://github.com/eronnen updated https://github.com/llvm/llvm-project/pull/140482 >From 1014235896b79eb4ea05a6822714a66adaa691ac Mon Sep 17 00:00:00 2001 From: Ely Ronnen Date: Sun, 18 May 2025 23:51:58 +0200 Subject: [PATCH 1/4] [lldb-dap] Migrate disassemble request to structured handler

  1   2   >