[Lldb-commits] [lldb] [lldb-dap] Implement `runInTerminal` for Windows (PR #121269)

2025-01-19 Thread Hu Jialun via lldb-commits
https://github.com/SuibianP updated https://github.com/llvm/llvm-project/pull/121269 >From c32fb82903243e59d6a33e4e38a4da6267981ea6 Mon Sep 17 00:00:00 2001 From: Hu Jialun Date: Sat, 28 Dec 2024 22:39:33 +0800 Subject: [PATCH] [lldb-dap] Implement runInTerminal for Windows Currently, the name

[Lldb-commits] [lldb] [lldb] do not show misleading error when there is no frame (PR #119103)

2025-01-19 Thread via lldb-commits
oltolm wrote: ping https://github.com/llvm/llvm-project/pull/119103 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [LLDB] Add Lexer (with tests) for DIL (Data Inspection Language). (PR #123521)

2025-01-19 Thread Andy Hippo via lldb-commits
@@ -0,0 +1,205 @@ +//===-- DILLexer.cpp --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[Lldb-commits] [lldb] [LLDB] Add Lexer (with tests) for DIL (Data Inspection Language). (PR #123521)

2025-01-19 Thread Andy Hippo via lldb-commits
@@ -0,0 +1,205 @@ +//===-- DILLexer.cpp --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[Lldb-commits] [lldb] [LLDB] Add Lexer (with tests) for DIL (Data Inspection Language). (PR #123521)

2025-01-19 Thread Andy Hippo via lldb-commits
@@ -0,0 +1,156 @@ +//===-- DILLexer.h --*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[Lldb-commits] [lldb] [LLDB] Add Lexer (with tests) for DIL (Data Inspection Language). (PR #123521)

2025-01-19 Thread Andy Hippo via lldb-commits
@@ -0,0 +1,193 @@ +//===-- DILLexerTests.cpp ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2

[Lldb-commits] [lldb] [LLDB] Add Lexer (with tests) for DIL (Data Inspection Language). (PR #123521)

2025-01-19 Thread Andy Hippo via lldb-commits
@@ -0,0 +1,156 @@ +//===-- DILLexer.h --*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[Lldb-commits] [lldb] [LLDB] Add Lexer (with tests) for DIL (Data Inspection Language). (PR #123521)

2025-01-19 Thread Andy Hippo via lldb-commits
@@ -0,0 +1,156 @@ +//===-- DILLexer.h --*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[Lldb-commits] [lldb] [LLDB] Add Lexer (with tests) for DIL (Data Inspection Language). (PR #123521)

2025-01-19 Thread Andy Hippo via lldb-commits
@@ -0,0 +1,156 @@ +//===-- DILLexer.h --*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[Lldb-commits] [clang] [lldb] [llvm] Patch series to reapply #118734 and substantially improve it (PR #120534)

2025-01-19 Thread via lldb-commits
dyung wrote: > @dyung - OK, I think the current just-pushed version of this PR is worth > another test. > > I've taught the TableGen string table emission to go back to working around > the MSVC issues using a different table form that we used to use in LLVM when > MSVC had a reliable error o

[Lldb-commits] [lldb] [LLDB] Add Lexer (with tests) for DIL (Data Inspection Language). (PR #123521)

2025-01-19 Thread via lldb-commits
https://github.com/cmtice created https://github.com/llvm/llvm-project/pull/123521 This adds the basic lexer, with unittests, for the Data Inspection Language (DIL) -- see https://discourse.llvm.org/t/rfc-data-inspection-language/69893 This version of the lexer only handles local variables and

[Lldb-commits] [lldb] [LLDB] Add Lexer (with tests) for DIL (Data Inspection Language). (PR #123521)

2025-01-19 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: None (cmtice) Changes This adds the basic lexer, with unittests, for the Data Inspection Language (DIL) -- see https://discourse.llvm.org/t/rfc-data-inspection-language/69893 This version of the lexer only handles local variables and names

[Lldb-commits] [lldb] [LLDB] Add Lexer (with tests) for DIL (Data Inspection Language). (PR #123521)

2025-01-19 Thread via lldb-commits
https://github.com/cmtice updated https://github.com/llvm/llvm-project/pull/123521 >From 468f73f8539dcb8addf8ed9618d9eb797dabbb01 Mon Sep 17 00:00:00 2001 From: Caroline Tice Date: Sun, 19 Jan 2025 09:15:34 -0800 Subject: [PATCH 1/2] [LLDB] Add Lexer (with tests) for DIL (Data Inspection Langu

[Lldb-commits] [lldb] [LLDB] Add Lexer (with tests) for DIL (Data Inspection Language). (PR #123521)

2025-01-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 23a239267e8a1d20ed10d3545feaf2a2bb70b085 61a2607a70d90688d395321e846a3be58ccbebcb --e

[Lldb-commits] [lldb] [lldb] Support format string in the prompt (PR #123430)

2025-01-19 Thread Pavel Labath via lldb-commits
@@ -69,6 +69,22 @@ def test_prompt_color(self): # Column: 16.8 self.child.expect(re.escape("\x1b[31m(lldb) \x1b[0m\x1b[8G")) +@skipIfAsan +@skipIfEditlineSupportMissing +def test_prompt_format_color(self): +"""Test that we can change the

[Lldb-commits] [lldb] [lldb] Support format string in the prompt (PR #123430)

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

[Lldb-commits] [lldb] [lldb] Support format string in the prompt (PR #123430)

2025-01-19 Thread Pavel Labath via lldb-commits
@@ -171,7 +171,45 @@ inline std::string FormatAnsiTerminalCodes(llvm::StringRef format, } return fmt; } + +inline std::string StripAnsiTerminalCodes(llvm::StringRef str) { + std::string stripped; + while (!str.empty()) { +llvm::StringRef left, right; + +std::tie(

[Lldb-commits] [lldb] [lldb] Support format string in the prompt (PR #123430)

2025-01-19 Thread Pavel Labath via lldb-commits
@@ -69,6 +69,22 @@ def test_prompt_color(self): # Column: 16.8 self.child.expect(re.escape("\x1b[31m(lldb) \x1b[0m\x1b[8G")) +@skipIfAsan +@skipIfEditlineSupportMissing +def test_prompt_format_color(self): +"""Test that we can change the

[Lldb-commits] [lldb] [lldb] Implement ${target.file} format variable (PR #123431)

2025-01-19 Thread Pavel Labath via lldb-commits
@@ -1469,6 +1472,19 @@ bool FormatEntity::Format(const Entry &entry, Stream &s, } return false; + case Entry::Type::TargetFile: +if (exe_ctx) { + Target *target = exe_ctx->GetTargetPtr(); + if (target) { +Module *exe_module = target->GetExecutabl

[Lldb-commits] [lldb] [lldb] Implement ${target.file} format variable (PR #123431)

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

[Lldb-commits] [lldb] [lldb] Implement ${target.file} format variable (PR #123431)

2025-01-19 Thread Pavel Labath via lldb-commits
@@ -141,6 +141,10 @@ A complete list of currently supported format string variables is listed below: +---+

[Lldb-commits] [clang] [lldb] [llvm] [StrTable] Switch intrinsics to StringTable and work around MSVC (PR #123548)

2025-01-19 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-adt @llvm/pr-subscribers-clang Author: Chandler Carruth (chandlerc) Changes **Note:** This PR depends on #123302 and #123308 -- only the last of the three commits should be reviewed here. --- Historically, the main example of *very* large string

[Lldb-commits] [clang] [lldb] [llvm] Patch series to reapply #118734 and substantially improve it (PR #120534)

2025-01-19 Thread Chandler Carruth via lldb-commits
chandlerc wrote: > Some good news, everything seems to pass after your latest changes in this > PR! I didn't believe it at first and did a clean rebuild and test to verify. > In the end everything passed again. > > That being said, I am working on deploying an updated version of VS2019 to > o

[Lldb-commits] [clang] [lldb] [llvm] [StrTable] Switch intrinsics to StringTable and work around MSVC (PR #123548)

2025-01-19 Thread Chandler Carruth via lldb-commits
https://github.com/chandlerc created https://github.com/llvm/llvm-project/pull/123548 **Note:** This PR depends on #123302 and #123308 -- only the last of the three commits should be reviewed here. --- Historically, the main example of *very* large string tables used the `EmitCharArray` to wo