[Lldb-commits] [lldb] [lldb] Extract debug server location code (PR #145706)

2025-06-26 Thread Yuval Deutscher via lldb-commits
https://github.com/yuvald-sweet-security edited https://github.com/llvm/llvm-project/pull/145706 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][Darwin] revert change to lang_opts.BuiltinHeadersInSystemModules (PR #145864)

2025-06-26 Thread Charles Zablit via lldb-commits
https://github.com/charles-zablit created https://github.com/llvm/llvm-project/pull/145864 Revert the changes made in the following PRs as they are causing bot failures: - https://github.com/llvm/llvm-project/pull/145744 - https://github.com/llvm/llvm-project/pull/144913 >From a540d68b0a882f0f

[Lldb-commits] [lldb] [lldb][Darwin] revert change to lang_opts.BuiltinHeadersInSystemModules (PR #145864)

2025-06-26 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Charles Zablit (charles-zablit) Changes Revert the changes made in the following PRs as they are causing bot failures: - https://github.com/llvm/llvm-project/pull/145744 - https://github.com/llvm/llvm-project/pull/144913 --- Full diff: htt

[Lldb-commits] [lldb] [lldb][darwin] force BuiltinHeadersInSystemModules to be always false (PR #144913)

2025-06-26 Thread Charles Zablit via lldb-commits
charles-zablit wrote: > Looks like this does break all the modules tests: > https://ci.swift.org/view/all/job/llvm.org/view/LLDB/job/as-lldb-cmake/28395/execution/node/106/log/ > ... > Could we revert for now to unblock bots? Just opened a revert PR for this commit and a child commit. https://

[Lldb-commits] [lldb] [lldb][darwin] force BuiltinHeadersInSystemModules to be always false (PR #144913)

2025-06-26 Thread Michael Buch via lldb-commits
Michael137 wrote: Looks like this does break all the modules tests: https://ci.swift.org/view/all/job/llvm.org/view/LLDB/job/as-lldb-cmake/28395/execution/node/106/log/ ``` 09:51:43 09:51:43 Failed Tests (19): 09:51:43lldb-api :: commands/expression/import-std-module/

[Lldb-commits] [lldb] [lldb] Implement WebAssembly debugging (PR #77949)

2025-06-26 Thread Quentin Michaud via lldb-commits
mh4ck-Thales wrote: This PR hasn't moved in months now, are we missing something? It would be nice to have this merged so we can build upon this to bring more interest and support from the Wasm community and push for an implementation of lldb servers in various Wasm runtimes. https://github.c

[Lldb-commits] [lldb] [lldb] Implement WebAssembly debugging (PR #77949)

2025-06-26 Thread David Spickett via lldb-commits
DavidSpickett wrote: It's been a while, so it's missing a clear summary of: * Which features this PR enables for WASM * Which runtimes or debug servers this can be used with * Which features might be enabled in future * Which features are simply not applicable * What the plans are for testing thi

[Lldb-commits] [lldb] [lldb] Implement WebAssembly debugging (PR #77949)

2025-06-26 Thread David Spickett via lldb-commits
DavidSpickett wrote: For the code: * It was agreed to move DW_OP_WASM_location handling into a separate PR. I don't think this got done, though we do have a few mentions of it in LLDB right now. * We will not add a top level `wasm` command as you can use `process connect`. If this PR is accept

[Lldb-commits] [lldb] [lldb] Correctly restore the cursor column after resizing the statusline (PR #145823)

2025-06-26 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett commented: So if I understand correctly, the newline acts like `\n` and `\r`. `\n` moves the cursor down one line and `\r` moves it to the start of that line. You're undoing the `\n` by moving up one row, and the `\r` by restoring the column position. https://

[Lldb-commits] [lldb] [lldb] Correctly restore the cursor column after resizing the statusline (PR #145823)

2025-06-26 Thread David Spickett via lldb-commits
@@ -102,20 +103,36 @@ void Statusline::UpdateScrollWindow(ScrollWindowMode mode) { const unsigned scroll_height = (mode == DisableStatusline) ? m_terminal_height : m_terminal_height - 1; + CursorPosition cursor_position = m_debugger.GetIOHandlerCursorPosition();

[Lldb-commits] [lldb] [lldb] Correctly restore the cursor column after resizing the statusline (PR #145823)

2025-06-26 Thread David Spickett via lldb-commits
@@ -398,6 +397,20 @@ int Editline::GetLineIndexForLocation(CursorLocation location, int cursor_row) { return line; } +CursorPosition Editline::GetCursorPosition() { + if (!m_editline) +return {}; + + const LineInfoW *info = el_wline(m_editline); + if (!info) +ret

[Lldb-commits] [lldb] [lldb] Correctly restore the cursor column after resizing the statusline (PR #145823)

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

[Lldb-commits] [lldb] [lldb] Correctly restore the cursor column after resizing the statusline (PR #145823)

2025-06-26 Thread David Spickett via lldb-commits
DavidSpickett wrote: And how exactly does this fix https://github.com/llvm/llvm-project/issues/134064? As in, what steps are happening with this PR compared to before. https://github.com/llvm/llvm-project/pull/145823 ___ lldb-commits mailing list lld

[Lldb-commits] [lldb] [lldb] Correctly restore the cursor column after resizing the statusline (PR #145823)

2025-06-26 Thread David Spickett via lldb-commits
@@ -122,22 +122,21 @@ static int GetOperation(HistoryOperation op) { // - The H_FIRST returns the most recent entry in the history. // // The naming of the enum entries match the semantic meaning. - switch(op) { -case HistoryOperation::Oldest: - return H_LAST;

[Lldb-commits] [lldb] [lldb][Darwin] revert change to lang_opts.BuiltinHeadersInSystemModules (PR #145864)

2025-06-26 Thread Michael Buch via lldb-commits
https://github.com/Michael137 closed https://github.com/llvm/llvm-project/pull/145864 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [LLDB] Add type summaries for MSVC STL strings (PR #143177)

2025-06-26 Thread David Spickett via lldb-commits
@@ -299,6 +299,8 @@ def parseOptionsAndInitTestdirs(): configuration.libcxx_library_dir = args.libcxx_library_dir configuration.cmake_build_type = args.cmake_build_type.lower() +configuration.target_triple = args.target_triple + DavidSpickett wrote

[Lldb-commits] [lldb] Support disassembling RISC-V proprietary instructions (PR #145793)

2025-06-26 Thread via lldb-commits
tedwoodward wrote: > Is there a reason we couldn't handle this the same way for all targets? The llvm disassembler returns the size, and sets the Opcode (class instantiation) to a certain type - 8 bit, 16 bit, 16 bit thumb, 32 bit, 64 bit, bytes. For RISC-V, it's set to bytes, which means it

[Lldb-commits] [lldb] [LLDB] Add type summaries for MSVC STL strings (PR #143177)

2025-06-26 Thread David Spickett via lldb-commits
@@ -299,6 +299,8 @@ def parseOptionsAndInitTestdirs(): configuration.libcxx_library_dir = args.libcxx_library_dir configuration.cmake_build_type = args.cmake_build_type.lower() +configuration.target_triple = args.target_triple + DavidSpickett wrote

[Lldb-commits] [lldb] [lldb] Correctly restore the cursor column after resizing the statusline (PR #145823)

2025-06-26 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere updated https://github.com/llvm/llvm-project/pull/145823 >From 6dc1ff8270e603def516bae230a5fe7108645978 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Thu, 26 Jun 2025 08:33:07 -0700 Subject: [PATCH] [lldb] Correctly restore the cursor column after resizi

[Lldb-commits] [lldb] [NFC][lldb-dap] Add missing header guard for DAPError and ProgressEvent. (PR #145915)

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

[Lldb-commits] [lldb] [NFC][lldb-dap] Add missing header guard for DAPError and ProgressEvent. (PR #145915)

2025-06-26 Thread Jonas Devlieghere via lldb-commits
@@ -156,3 +161,5 @@ class ProgressEventReporter { }; } // namespace lldb_dap + +#endif // LLDB_TOOLS_LLDB_DAP_PROGRESS_EVENT_H JDevlieghere wrote: Missing newline https://github.com/llvm/llvm-project/pull/145915 __

[Lldb-commits] [lldb] aeea062 - [lldb][DataFormatter] Unwrap reference type when formatting std::unordered_map (#145872)

2025-06-26 Thread via lldb-commits
Author: Michael Buch Date: 2025-06-26T17:10:12+01:00 New Revision: aeea062dd43e164889f35c24b98cb1994ead50cb URL: https://github.com/llvm/llvm-project/commit/aeea062dd43e164889f35c24b98cb1994ead50cb DIFF: https://github.com/llvm/llvm-project/commit/aeea062dd43e164889f35c24b98cb1994ead50cb.diff

[Lldb-commits] [lldb] d83457e - [NFC][lldb-dap] Add missing header guard for DAPError and ProgressEvent. (#145915)

2025-06-26 Thread via lldb-commits
Author: Ebuka Ezike Date: 2025-06-26T17:42:33+01:00 New Revision: d83457eb83d817e773ed6740a6f0c92180ca585e URL: https://github.com/llvm/llvm-project/commit/d83457eb83d817e773ed6740a6f0c92180ca585e DIFF: https://github.com/llvm/llvm-project/commit/d83457eb83d817e773ed6740a6f0c92180ca585e.diff L

[Lldb-commits] [lldb] [lldb] Correctly restore the cursor column after resizing the statusline (PR #145823)

2025-06-26 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett approved this pull request. I am confused which bits are handled by editline the library and which are handled by our code that interacts with editline, but I always have been so that shouldn't block this :) LGTM https://github.com/llvm/llvm-project/pull/14582

[Lldb-commits] [lldb] [lldb][darwin] force BuiltinHeadersInSystemModules to be always false (PR #144913)

2025-06-26 Thread Ian Anderson via lldb-commits
ian-twilightcoder wrote: It's not _just_ `BuiltinHeadersInSystemModules` either. There are lots of things that the driver toolchain does that you shouldn't be skipping. https://github.com/llvm/llvm-project/pull/144913 ___ lldb-commits mailing list lld

[Lldb-commits] [lldb] Support disassembling RISC-V proprietary instructions (PR #145793)

2025-06-26 Thread David Spickett via lldb-commits
DavidSpickett wrote: Just doing some googling, mostly people talk about modifying the binutils in the gnu toolchain for custom instructions and rebuilding it. [This](https://www.ashling.com/wp-content/uploads/PR_CUSTOM_INST_17-FEB-2022.pdf) refers to some XML file, but I can't tell if they're

[Lldb-commits] [lldb] [NFC][lldb-dap] Add missing header guard for DAPError and ProgressEvent. (PR #145915)

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

[Lldb-commits] [lldb] [lldb] Correctly restore the cursor column after resizing the statusline (PR #145823)

2025-06-26 Thread David Spickett via lldb-commits
DavidSpickett wrote: Ok I get what we're doing now but... > This PR uses the active IOHandler (i.e. Editline) to get the cursor position > before we emit the newline and then uses an ANSI escape code to move the > cursor back to its original column. I was curious why, depending on the > timin

[Lldb-commits] [lldb] Default transcript dumping in "statistics dump" to false (PR #145436)

2025-06-26 Thread via lldb-commits
https://github.com/jeffreytan81 approved this pull request. https://github.com/llvm/llvm-project/pull/145436 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] 5c310d1 - Default transcript dumping in "statistics dump" to false (#145436)

2025-06-26 Thread via lldb-commits
Author: qxy11 Date: 2025-06-26T10:16:05-07:00 New Revision: 5c310d1ef0188d609b1d2837d403d2b3f2eeb609 URL: https://github.com/llvm/llvm-project/commit/5c310d1ef0188d609b1d2837d403d2b3f2eeb609 DIFF: https://github.com/llvm/llvm-project/commit/5c310d1ef0188d609b1d2837d403d2b3f2eeb609.diff LOG: De

[Lldb-commits] [lldb] Default transcript dumping in "statistics dump" to false (PR #145436)

2025-06-26 Thread via lldb-commits
jeffreytan81 wrote: @qxy11, have you requested merge permission yet? If not, I can merge for you, but you probably want to ask for you own merge access. https://github.com/llvm/llvm-project/pull/145436 ___ lldb-commits mailing list lldb-commits@lists.

[Lldb-commits] [lldb] Default transcript dumping in "statistics dump" to false (PR #145436)

2025-06-26 Thread via lldb-commits
https://github.com/jeffreytan81 closed https://github.com/llvm/llvm-project/pull/145436 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] 0b8a656 - [lldb-dap] Fix source references (#144364)

2025-06-26 Thread via lldb-commits
Author: Ebuka Ezike Date: 2025-06-26T18:22:47+01:00 New Revision: 0b8a656ba110884e40e9ec79c936139eb6fce0b6 URL: https://github.com/llvm/llvm-project/commit/0b8a656ba110884e40e9ec79c936139eb6fce0b6 DIFF: https://github.com/llvm/llvm-project/commit/0b8a656ba110884e40e9ec79c936139eb6fce0b6.diff L

[Lldb-commits] [lldb] Support disassembling RISC-V proprietary instructions (PR #145793)

2025-06-26 Thread via lldb-commits
tedwoodward wrote: > The only real "gotcha" question I can come up with is, wouldn't a user who is > interested in custom instructions already have access to a compiler that > produces them and that compiler is likely to be llvm, so is lldb from that > llvm not within reach already? > > Educ

[Lldb-commits] [lldb] cbf781f - [NFC][DebugInfo][DWARF] Create new low-level dwarf library (#145081)

2025-06-26 Thread via lldb-commits
Author: Sterling-Augustine Date: 2025-06-26T11:23:46-07:00 New Revision: cbf781f0bdf2f680abbe784faedeefd6f84c246e URL: https://github.com/llvm/llvm-project/commit/cbf781f0bdf2f680abbe784faedeefd6f84c246e DIFF: https://github.com/llvm/llvm-project/commit/cbf781f0bdf2f680abbe784faedeefd6f84c246e.

[Lldb-commits] [lldb] [llvm] [NFC][DebugInfo][DWARF] Create new low-level dwarf library (PR #145081)

2025-06-26 Thread via lldb-commits
https://github.com/Sterling-Augustine closed https://github.com/llvm/llvm-project/pull/145081 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][DataFormatter] Unwrap reference type when formatting std::unordered_map (PR #145872)

2025-06-26 Thread Michael Buch via lldb-commits
https://github.com/Michael137 created https://github.com/llvm/llvm-project/pull/145872 Desugar any potential references/typedefs before checking `isStdTemplate`. Previously, the typename might've been: ``` const std::unordered_map<...> & ``` for references. This patch gets the pointee type befo

[Lldb-commits] [lldb] [LLDB] Add type summaries for MSVC STL strings (PR #143177)

2025-06-26 Thread via lldb-commits
https://github.com/Nerixyz updated https://github.com/llvm/llvm-project/pull/143177 >From 7815eeb573f52617fb5a3ade247c9d45ae808371 Mon Sep 17 00:00:00 2001 From: Nerixyz Date: Wed, 18 Jun 2025 21:49:16 +0200 Subject: [PATCH] [LLDB] Add type summaries for MSVC STL strings --- .../lldb/DataForm

[Lldb-commits] [lldb] [LLDB] Add type summaries for MSVC STL strings (PR #143177)

2025-06-26 Thread via lldb-commits
@@ -299,6 +299,8 @@ def parseOptionsAndInitTestdirs(): configuration.libcxx_library_dir = args.libcxx_library_dir configuration.cmake_build_type = args.cmake_build_type.lower() +configuration.target_triple = args.target_triple + Nerixyz wrote: > L

[Lldb-commits] [lldb] [lldb][DataFormatter] Unwrap reference type when formatting std::unordered_map (PR #145872)

2025-06-26 Thread Michael Buch via lldb-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/145872 >From f86827c1592779537b10dafcbf8b8abba4acccf2 Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Thu, 26 Jun 2025 12:06:13 +0100 Subject: [PATCH 1/2] [lldb][DataFormatter] Unwrap reference type when formatti

[Lldb-commits] [lldb] [lldb][DataFormatter] Unwrap reference type when formatting std::unordered_map (PR #145872)

2025-06-26 Thread Michael Buch via lldb-commits
@@ -64,3 +64,131 @@ def test_iterator_formatters(self): ValueCheck(name="second", summary='"Qux"'), ], ) + +lldbutil.continue_to_breakpoint(process, bkpt) + +# Test references to std::unordered_map +self.expect_var_pat

[Lldb-commits] [lldb] Support disassembling RISC-V proprietary instructions (PR #145793)

2025-06-26 Thread via lldb-commits
@@ -228,9 +228,9 @@ static const CoreDefinition g_core_definitions[] = { {eByteOrderLittle, 4, 4, 4, llvm::Triple::hexagon, ArchSpec::eCore_hexagon_hexagonv5, "hexagonv5"}, -{eByteOrderLittle, 4, 2, 4, llvm::Triple::riscv32, ArchSpec::eCore_riscv32, +{eByteOrd

[Lldb-commits] [lldb] [lldb][DataFormatter] Unwrap reference type when formatting std::unordered_map (PR #145872)

2025-06-26 Thread Michael Buch via lldb-commits
https://github.com/Michael137 closed https://github.com/llvm/llvm-project/pull/145872 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][darwin] force BuiltinHeadersInSystemModules to be always false (PR #144913)

2025-06-26 Thread Michael Buch via lldb-commits
Michael137 wrote: > We could mark these tests as requiring macOS 15+, but given how often they > break I am not sure we want to do that? Happy to mark them as unsupported on older SDKs if it's blocking other work. https://github.com/llvm/llvm-project/pull/144913 ___

[Lldb-commits] [lldb] [NFC][lldb-dap] Add missing header guard for DAPError and ProgressEvent. (PR #145915)

2025-06-26 Thread Ebuka Ezike via lldb-commits
https://github.com/da-viper updated https://github.com/llvm/llvm-project/pull/145915 >From fbfc26bd78b815334af4beb786ac8276f782b370 Mon Sep 17 00:00:00 2001 From: Ebuka Ezike Date: Thu, 26 Jun 2025 16:07:28 +0100 Subject: [PATCH 1/2] [NFC][lldb-dap] add missing header guard. delete the copy, m

[Lldb-commits] [lldb] [lldb-dap] Fix source references (PR #144364)

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

[Lldb-commits] [lldb] Support disassembling RISC-V proprietary instructions (PR #145793)

2025-06-26 Thread David Spickett via lldb-commits
@@ -0,0 +1,87 @@ +""" +Defines a command, fdis, that does filtered disassembly. The command does the +lldb disassemble command with -b and any other arguments passed in, and +pipes that through a provided filter program. + +The intention is to support disassembly of RISC-V proprie

[Lldb-commits] [lldb] Support disassembling RISC-V proprietary instructions (PR #145793)

2025-06-26 Thread David Spickett via lldb-commits
DavidSpickett wrote: > For RISC-V, llvm-objdump mimics gnu objdump, so this change makes the RISC-V > byte encodings match both. Great, that's standard enough. > That's one thing I'm trying to avoid - we don't want a filter app for objdump > and another for the debugger. That's why I changed

[Lldb-commits] [lldb] Support disassembling RISC-V proprietary instructions (PR #145793)

2025-06-26 Thread David Spickett via lldb-commits
DavidSpickett wrote: @JDevlieghere / @jasonmolenda you have been in the RISC-V world lately, what do you think to this approach? https://github.com/llvm/llvm-project/pull/145793 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.l

[Lldb-commits] [lldb] 9ae41f0 - [lldb][Darwin] revert change to lang_opts.BuiltinHeadersInSystemModules (#145864)

2025-06-26 Thread via lldb-commits
Author: Charles Zablit Date: 2025-06-26T11:56:50+01:00 New Revision: 9ae41f017d8e6264ded66e2e476efb1dc2a280a1 URL: https://github.com/llvm/llvm-project/commit/9ae41f017d8e6264ded66e2e476efb1dc2a280a1 DIFF: https://github.com/llvm/llvm-project/commit/9ae41f017d8e6264ded66e2e476efb1dc2a280a1.diff

[Lldb-commits] [lldb] [lldb][DataFormatter] Unwrap reference type when formatting std::unordered_map (PR #145872)

2025-06-26 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Michael Buch (Michael137) Changes Desugar any potential references/typedefs before checking `isStdTemplate`. Previously, the typename might've been: ``` const std::unordered_map<...> & ``` for references. This patch gets the pointee type be

[Lldb-commits] [lldb] [lldb][DataFormatter] Unwrap reference type when formatting std::unordered_map (PR #145872)

2025-06-26 Thread Pavel Labath via lldb-commits
https://github.com/labath approved this pull request. https://github.com/llvm/llvm-project/pull/145872 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][DataFormatter] Unwrap reference type when formatting std::unordered_map (PR #145872)

2025-06-26 Thread Pavel Labath via lldb-commits
@@ -64,3 +64,131 @@ def test_iterator_formatters(self): ValueCheck(name="second", summary='"Qux"'), ], ) + +lldbutil.continue_to_breakpoint(process, bkpt) + +# Test references to std::unordered_map +self.expect_var_pat

[Lldb-commits] [lldb] [lldb][DataFormatter] Unwrap reference type when formatting std::unordered_map (PR #145872)

2025-06-26 Thread Pavel Labath via lldb-commits
@@ -64,3 +64,131 @@ def test_iterator_formatters(self): ValueCheck(name="second", summary='"Qux"'), ], ) + +lldbutil.continue_to_breakpoint(process, bkpt) + +# Test references to std::unordered_map +self.expect_var_pat

[Lldb-commits] [lldb] b77114b - [lldb] Remove child_process_inherit argument from Pipe (#145516)

2025-06-26 Thread via lldb-commits
Author: Pavel Labath Date: 2025-06-26T13:51:14+02:00 New Revision: b77114b723eb68563a0900846df5bd1b454edc2f URL: https://github.com/llvm/llvm-project/commit/b77114b723eb68563a0900846df5bd1b454edc2f DIFF: https://github.com/llvm/llvm-project/commit/b77114b723eb68563a0900846df5bd1b454edc2f.diff

[Lldb-commits] [lldb] [lldb] Remove child_process_inherit argument from Pipe (PR #145516)

2025-06-26 Thread Pavel Labath via lldb-commits
https://github.com/labath closed https://github.com/llvm/llvm-project/pull/145516 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Extract debug server location code (PR #145706)

2025-06-26 Thread Pavel Labath via lldb-commits
labath wrote: > Thanks, and sorry for not getting back to the Mac issue I said I'd debug, > I've been preoccupied lately. That's okay, no worries. > To make sure I understand, this change hoists the logic that discovers the > location of lldb-server (the function `GetDebugserverPath`) out of

[Lldb-commits] [lldb] [NFC][lldb-dap] Add missing header guard for DAPError and ProgressEvent. (PR #145915)

2025-06-26 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Ebuka Ezike (da-viper) Changes delete the copy, move constructor and assignment for ProgressEventReporter. --- Full diff: https://github.com/llvm/llvm-project/pull/145915.diff 2 Files Affected: - (modified) lldb/tools/lldb-dap/DAPError.h

[Lldb-commits] [lldb] [NFC][lldb-dap] Add missing header guard for DAPError and ProgressEvent. (PR #145915)

2025-06-26 Thread Ebuka Ezike via lldb-commits
https://github.com/da-viper created https://github.com/llvm/llvm-project/pull/145915 delete the copy, move constructor and assignment for ProgressEventReporter. >From fbfc26bd78b815334af4beb786ac8276f782b370 Mon Sep 17 00:00:00 2001 From: Ebuka Ezike Date: Thu, 26 Jun 2025 16:07:28 +0100 Subje

[Lldb-commits] [lldb] Support disassembling RISC-V proprietary instructions (PR #145793)

2025-06-26 Thread via lldb-commits
https://github.com/tedwoodward deleted https://github.com/llvm/llvm-project/pull/145793 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Correctly restore the cursor column after resizing the statusline (PR #145823)

2025-06-26 Thread Jonas Devlieghere via lldb-commits
@@ -398,6 +397,20 @@ int Editline::GetLineIndexForLocation(CursorLocation location, int cursor_row) { return line; } +CursorPosition Editline::GetCursorPosition() { + if (!m_editline) +return {}; + + const LineInfoW *info = el_wline(m_editline); + if (!info) +ret

[Lldb-commits] [lldb] [lldb] Correctly restore the cursor column after resizing the statusline (PR #145823)

2025-06-26 Thread Jonas Devlieghere via lldb-commits
JDevlieghere wrote: > And how exactly does this fix #134064? https://github.com/llvm/llvm-project/issues/134064#issuecomment-2923315404 has a visualization of the problem, which you've summarized in https://github.com/llvm/llvm-project/pull/145823#pullrequestreview-2961296028. > As in, what

[Lldb-commits] [lldb] [lldb] Correctly restore the cursor column after resizing the statusline (PR #145823)

2025-06-26 Thread Jonas Devlieghere via lldb-commits
@@ -102,20 +103,36 @@ void Statusline::UpdateScrollWindow(ScrollWindowMode mode) { const unsigned scroll_height = (mode == DisableStatusline) ? m_terminal_height : m_terminal_height - 1; + CursorPosition cursor_position = m_debugger.GetIOHandlerCursorPosition();

[Lldb-commits] [lldb] Support disassembling RISC-V proprietary instructions (PR #145793)

2025-06-26 Thread via lldb-commits
https://github.com/tedwoodward edited https://github.com/llvm/llvm-project/pull/145793 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Support disassembling RISC-V proprietary instructions (PR #145793)

2025-06-26 Thread via lldb-commits
@@ -0,0 +1,87 @@ +""" +Defines a command, fdis, that does filtered disassembly. The command does the +lldb disassemble command with -b and any other arguments passed in, and +pipes that through a provided filter program. + +The intention is to support disassembly of RISC-V proprie

[Lldb-commits] [lldb] Support disassembling RISC-V proprietary instructions (PR #145793)

2025-06-26 Thread via lldb-commits
https://github.com/tedwoodward edited https://github.com/llvm/llvm-project/pull/145793 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Support disassembling RISC-V proprietary instructions (PR #145793)

2025-06-26 Thread via lldb-commits
https://github.com/tedwoodward edited https://github.com/llvm/llvm-project/pull/145793 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Support disassembling RISC-V proprietary instructions (PR #145793)

2025-06-26 Thread via lldb-commits
@@ -0,0 +1,87 @@ +""" +Defines a command, fdis, that does filtered disassembly. The command does the +lldb disassemble command with -b and any other arguments passed in, and +pipes that through a provided filter program. + +The intention is to support disassembly of RISC-V proprie

[Lldb-commits] [lldb] Support disassembling RISC-V proprietary instructions (PR #145793)

2025-06-26 Thread via lldb-commits
@@ -0,0 +1,87 @@ +""" +Defines a command, fdis, that does filtered disassembly. The command does the +lldb disassemble command with -b and any other arguments passed in, and +pipes that through a provided filter program. + +The intention is to support disassembly of RISC-V proprie

[Lldb-commits] [lldb] Support disassembling RISC-V proprietary instructions (PR #145793)

2025-06-26 Thread via lldb-commits
tedwoodward wrote: > Few more things: > > * Assuming this were to land, there needs to be a release note for it. > * What solutions exist for people using GDB, and are they along the same > lines? I think that's a good idea. Do you know how to add something to release notes? I've never done i

[Lldb-commits] [lldb] [lldb-dap] Fix source references (PR #144364)

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

[Lldb-commits] [lldb] [lldb] Document MCP support in LLDB (PR #145935)

2025-06-26 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere created https://github.com/llvm/llvm-project/pull/145935 Document how to use MCP support in LLDB. I expect this to change significantly as the feature matures. For now it covers configuring the server and two example clients. >From 2b6a7e22481761b244e98dff00f90

[Lldb-commits] [lldb] [lldb] Document MCP support in LLDB (PR #145935)

2025-06-26 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Jonas Devlieghere (JDevlieghere) Changes Document how to use MCP support in LLDB. I expect this to change significantly as the feature matures. For now it covers configuring the server and two example clients. --- Full diff: https://githu

[Lldb-commits] [lldb] [lldb] make PlatformAndroid/AdbClient::GetSyncService threadsafe (PR #145382)

2025-06-26 Thread via lldb-commits
jeffreytan81 wrote: @cs01, can you get a more symbolicated stacktrace for the crash with debug info and line info? >From the current callstack, it seems to be a life time use after free issue? >Like the `SyncService` is trying to access underlying `m_conn` object while it >is destroyed? If s

[Lldb-commits] [lldb] Reland "[lldb][target] Add progress report for wait-attaching to proc… (PR #145111)

2025-06-26 Thread Chelsea Cassanova via lldb-commits
https://github.com/chelcassanova closed https://github.com/llvm/llvm-project/pull/145111 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] e880cf7 - Reland "[lldb][target] Add progress report for wait-attaching to proc… (#145111)

2025-06-26 Thread via lldb-commits
Author: Chelsea Cassanova Date: 2025-06-26T10:45:11-07:00 New Revision: e880cf74217d8b925f923185994dc8fe6f69a551 URL: https://github.com/llvm/llvm-project/commit/e880cf74217d8b925f923185994dc8fe6f69a551 DIFF: https://github.com/llvm/llvm-project/commit/e880cf74217d8b925f923185994dc8fe6f69a551.d

[Lldb-commits] [lldb] [llvm] [NFC][DebugInfo][DWARF] Create new low-level dwarf library (PR #145081)

2025-06-26 Thread LLVM Continuous Integration via lldb-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `amdgpu-offload-rhel-8-cmake-build-only` running on `rocm-docker-rhel-8` while building `bolt,lldb,llvm,utils` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/204/builds/13571 He

[Lldb-commits] [lldb] [llvm] [NFC][DebugInfo][DWARF] Create new low-level dwarf library (PR #145081)

2025-06-26 Thread Jan Patrick Lehr via lldb-commits
jplehr wrote: > Reverted with > [47fa4a6](https://github.com/llvm/llvm-project/commit/47fa4a6385cb4e8964cc6909c3554f6589b66eef) > > Will fix and reapply. Has this reached `main` by now? I cannot see the revert and the bot is still red. https://github.com/llvm/llvm-project/pull/145081 ___

[Lldb-commits] [lldb] [llvm] Revert "[NFC][DebugInfo][DWARF] Create new low-level dwarf library (#… (PR #145959)

2025-06-26 Thread via lldb-commits
https://github.com/Sterling-Augustine created https://github.com/llvm/llvm-project/pull/145959 …145081)" This reverts commit cbf781f0bdf2f680abbe784faedeefd6f84c246e. Breaks a couple of buildbots. >From 47fa4a6385cb4e8964cc6909c3554f6589b66eef Mon Sep 17 00:00:00 2001 From: Sterling Augustine

[Lldb-commits] [lldb] [llvm] Revert "[NFC][DebugInfo][DWARF] Create new low-level dwarf library (#… (PR #145959)

2025-06-26 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-pgo @llvm/pr-subscribers-lldb Author: None (Sterling-Augustine) Changes …145081)" This reverts commit cbf781f0bdf2f680abbe784faedeefd6f84c246e. Breaks a couple of buildbots. --- Patch is 96.13 KiB, truncated to 20.00 KiB below, full version: https:/

[Lldb-commits] [lldb] [llvm] Revert "[NFC][DebugInfo][DWARF] Create new low-level dwarf library (#… (PR #145959)

2025-06-26 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,cpp -- llvm/lib/DebugInfo/DWARF/DWARFExpression.cpp bolt/

[Lldb-commits] [lldb] [llvm] Revert "[NFC][DebugInfo][DWARF] Create new low-level dwarf library (#… (PR #145959)

2025-06-26 Thread via lldb-commits
https://github.com/Sterling-Augustine closed https://github.com/llvm/llvm-project/pull/145959 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][scripts] Fix bugs in framework fix script (PR #145961)

2025-06-26 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Chelsea Cassanova (chelcassanova) Changes The script used to fix up LLDB's header for use in the macOS framework contained 2 bugs that this commit addreses: 1. The output contents were appended to the output file multiple times instead of

[Lldb-commits] [lldb] [llvm] [NFC][DebugInfo][DWARF] Create new low-level dwarf library (PR #145081)

2025-06-26 Thread via lldb-commits
Sterling-Augustine wrote: I think it is there now. https://github.com/llvm/llvm-project/pull/145081 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][scripts] Fix bugs in framework fix script (PR #145961)

2025-06-26 Thread Chelsea Cassanova via lldb-commits
https://github.com/chelcassanova created https://github.com/llvm/llvm-project/pull/145961 The script used to fix up LLDB's header for use in the macOS framework contained 2 bugs that this commit addreses: 1. The output contents were appended to the output file multiple times instead of only b

[Lldb-commits] [lldb] [lldb][scripts] Fix bugs in framework fix script (PR #145961)

2025-06-26 Thread Alex Langford via lldb-commits
https://github.com/bulbazord approved this pull request. https://github.com/llvm/llvm-project/pull/145961 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][scripts] Fix bugs in framework fix script (PR #145961)

2025-06-26 Thread Alex Langford via lldb-commits
@@ -20,7 +20,7 @@ # Main header regexes INCLUDE_FILENAME_REGEX = re.compile( -r'#include "lldb/API/(?P.*){0,1}"' +r'#include "lldb/(API/){0,1}(?P.*){0,1}"' bulbazord wrote: I'm not an expert on regex but would it make sense to use `?` here instead of

[Lldb-commits] [lldb] [llvm] [NFC][DebugInfo][DWARF] Create new low-level dwarf library (PR #145081)

2025-06-26 Thread LLVM Continuous Integration via lldb-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `amdgpu-offload-rhel-9-cmake-build-only` running on `rocm-docker-rhel-9` while building `bolt,lldb,llvm,utils` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/205/builds/13548 He

[Lldb-commits] [lldb] [lldb][scripts] Fix bugs in framework fix script (PR #145961)

2025-06-26 Thread Chelsea Cassanova via lldb-commits
@@ -20,7 +20,7 @@ # Main header regexes INCLUDE_FILENAME_REGEX = re.compile( -r'#include "lldb/API/(?P.*){0,1}"' +r'#include "lldb/(API/){0,1}(?P.*){0,1}"' chelcassanova wrote: Could be worth updating all other instances of `{0,1}` https://github.com

[Lldb-commits] [lldb] [lldb][scripts] Fix bugs in framework fix script (PR #145961)

2025-06-26 Thread Chelsea Cassanova via lldb-commits
@@ -20,7 +20,7 @@ # Main header regexes INCLUDE_FILENAME_REGEX = re.compile( -r'#include "lldb/API/(?P.*){0,1}"' +r'#include "lldb/(API/){0,1}(?P.*){0,1}"' chelcassanova wrote: Such that we have `r'#include "lldb/(API/)?(?P.*){0,1}"'` instead of `r'#

[Lldb-commits] [lldb] [lldb][scripts] Fix bugs in framework fix script (PR #145961)

2025-06-26 Thread Chelsea Cassanova via lldb-commits
https://github.com/chelcassanova updated https://github.com/llvm/llvm-project/pull/145961 >From 7382a6a7e5636515c4882136d54c8133d77aa31d Mon Sep 17 00:00:00 2001 From: Chelsea Cassanova Date: Thu, 26 Jun 2025 13:05:56 -0700 Subject: [PATCH] [lldb][scripts] Fix bugs in framework fix script The

[Lldb-commits] [lldb] [llvm] [NFC][DebugInfo][DWARF] Create new low-level dwarf library (PR #145081)

2025-06-26 Thread LLVM Continuous Integration via lldb-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `amdgpu-offload-ubuntu-22-cmake-build-only` running on `rocm-docker-ubu-22` while building `bolt,lldb,llvm,utils` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/203/builds/14758

[Lldb-commits] [lldb] [LLDB][NFC] Refactor code extracting timestamp from StructuredData (PR #145954)

2025-06-26 Thread Alex Langford via lldb-commits
@@ -148,23 +161,14 @@ void TelemetryManager::DispatchClientTelemetry( LLDB_LOG(GetLog(LLDBLog::Object), "Cannot determine client_data from client-telemetry entry"); - int64_t start_time; - if (dict->GetValueForKeyAsInteger("start_time", start_time)) { -c

[Lldb-commits] [lldb] [LLDB][NFC] Refactor code extracting timestamp from StructuredData (PR #145954)

2025-06-26 Thread Alex Langford via lldb-commits
@@ -148,23 +161,14 @@ void TelemetryManager::DispatchClientTelemetry( LLDB_LOG(GetLog(LLDBLog::Object), "Cannot determine client_data from client-telemetry entry"); - int64_t start_time; - if (dict->GetValueForKeyAsInteger("start_time", start_time)) { -c

[Lldb-commits] [lldb] [llvm] Revert "[NFC][DebugInfo][DWARF] Create new low-level dwarf library (#… (PR #145959)

2025-06-26 Thread David Blaikie via lldb-commits
dwblaikie wrote: FYI: per https://llvm.org/docs/CodeReview.html#code-review-workflow - please don't commit a PR without approval, once it's sent for review. If the intent wasn't to precommit review the PR, it should be created with the `skip-precommit-approval` tag. https://github.com/llvm/ll

[Lldb-commits] [libcxx] [lldb] [libcxx] adds size-based `__split_buffer` representation to unstable ABI (PR #139632)

2025-06-26 Thread Louis Dionne via lldb-commits
@@ -78,23 +80,232 @@ public: __split_buffer, void>; - pointer __first_; - pointer __begin_; - pointer __end_; - _LIBCPP_COMPRESSED_PAIR(pointer, __cap_, allocator_type, __alloc_); + struct __data { +pointer __first_ = nullpt

[Lldb-commits] [libcxx] [lldb] [libcxx] adds size-based `__split_buffer` representation to unstable ABI (PR #139632)

2025-06-26 Thread Louis Dionne via lldb-commits
@@ -288,92 +476,82 @@ template template _LIBCPP_CONSTEXPR_SINCE_CXX20 void __split_buffer<_Tp, _Allocator>::__construct_at_end_with_size(_ForwardIterator __first, size_type __n) { - _ConstructTransaction __tx(std::addressof(this->__end_), __n); + _ConstructTransaction __tx

[Lldb-commits] [libcxx] [lldb] [libcxx] adds size-based `__split_buffer` representation to unstable ABI (PR #139632)

2025-06-26 Thread Louis Dionne via lldb-commits
@@ -253,30 +436,35 @@ _LIBCPP_CONSTEXPR_SINCE_CXX20 void __split_buffer<_Tp, _Allocator>::__construct_ template _LIBCPP_CONSTEXPR_SINCE_CXX20 void __split_buffer<_Tp, _Allocator>::__construct_at_end(size_type __n, const_reference __x) { - _ConstructTransaction __tx(std::add

[Lldb-commits] [libcxx] [lldb] [libcxx] adds size-based `__split_buffer` representation to unstable ABI (PR #139632)

2025-06-26 Thread Louis Dionne via lldb-commits
@@ -288,92 +476,82 @@ template template _LIBCPP_CONSTEXPR_SINCE_CXX20 void __split_buffer<_Tp, _Allocator>::__construct_at_end_with_size(_ForwardIterator __first, size_type __n) { - _ConstructTransaction __tx(std::addressof(this->__end_), __n); + _ConstructTransaction __tx

[Lldb-commits] [libcxx] [lldb] [libcxx] adds size-based `__split_buffer` representation to unstable ABI (PR #139632)

2025-06-26 Thread Louis Dionne via lldb-commits
@@ -111,36 +322,22 @@ public: _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI ~__split_buffer(); - _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI iterator begin() _NOEXCEPT { return __begin_; } - _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI const_iterator

  1   2   >