[Lldb-commits] [lldb] [lldb] Fix some tests that fail with system libstdc++ (PR #106885)

2024-09-04 Thread Tom Stellard via lldb-commits
tstellar wrote: > > the tests were only run when libcxx was enabled. > > Interesting bit here, I'm not sure where this is orchestrated. It's controlled by this line: https://github.com/llvm/llvm-project/blob/main/lldb/test/API/commands/expression/import-std-module/list-dbg-info-content/TestDbg

[Lldb-commits] [lldb] [lldb] Fix a format string in ClangASTSource (PR #107325)

2024-09-04 Thread Jonas Devlieghere via lldb-commits
JDevlieghere wrote: > Thanks! Is this asserting cause something changed in how llvm::formatv > validates the format string? Correct: https://github.com/llvm/llvm-project/pull/105745 https://github.com/llvm/llvm-project/pull/107325 ___ lldb-commits ma

[Lldb-commits] [lldb] [lldb] Fix a format string in ClangASTSource (PR #107325)

2024-09-04 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere approved this pull request. https://github.com/llvm/llvm-project/pull/107325 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Fix a format string in ClangASTSource (PR #107325)

2024-09-04 Thread Michael Buch via lldb-commits
https://github.com/Michael137 approved this pull request. Thanks! Is this asserting cause something changed in how llvm::formatv validates the format string? Or maybe I just never hit this codepath with expression log enabled before https://github.com/llvm/llvm-project/pull/107325

[Lldb-commits] [lldb] [lldb] Fix a format string in ClangASTSource (PR #107325)

2024-09-04 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Alex Langford (bulbazord) Changes Without this, LLDB asserts when enabling the expression logs. --- Full diff: https://github.com/llvm/llvm-project/pull/107325.diff 1 Files Affected: - (modified) lldb/source/Plugins/ExpressionParser/Clan

[Lldb-commits] [lldb] [lldb] Fix a format string in ClangASTSource (PR #107325)

2024-09-04 Thread Alex Langford via lldb-commits
https://github.com/bulbazord created https://github.com/llvm/llvm-project/pull/107325 Without this, LLDB asserts when enabling the expression logs. >From 622c5b636d1a505f1ea3f68540db28061d8606ce Mon Sep 17 00:00:00 2001 From: Alex Langford Date: Wed, 4 Sep 2024 16:02:20 -0700 Subject: [PATCH]

[Lldb-commits] [clang] [clang-tools-extra] [lld] [lldb] [llvm] [mlir] [polly] [NFC] Add explicit #include llvm-config.h where its macros are used. (PR #106810)

2024-09-04 Thread Daniil Fukalov via lldb-commits
https://github.com/dfukalov updated https://github.com/llvm/llvm-project/pull/106810 >From 7e9c4b1d0da02cf923a790c8025ac1e1a333094e Mon Sep 17 00:00:00 2001 From: dfukalov Date: Sat, 31 Aug 2024 01:45:27 +0200 Subject: [PATCH 1/3] [NFC] Add explicit #include llvm-config.h where its macros are

[Lldb-commits] [clang] [clang-tools-extra] [lld] [lldb] [llvm] [mlir] [polly] [NFC] Add explicit #include llvm-config.h where its macros are used. (PR #106810)

2024-09-04 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-pgo Author: Daniil Fukalov (dfukalov) Changes This is the second part. Without these explicit includes, removing other headers, who implicitly include llvm-config.h, may have non-trivial side effects. For example, `clagd` may report `llvm-config.h` as

[Lldb-commits] [clang] [clang-tools-extra] [lld] [lldb] [llvm] [mlir] [polly] [NFC] Add explicit #include llvm-config.h where its macros are used. (PR #106810)

2024-09-04 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-platform-windows @llvm/pr-subscribers-debuginfo Author: Daniil Fukalov (dfukalov) Changes This is the second part. Without these explicit includes, removing other headers, who implicitly include llvm-config.h, may have non-trivial side effects. For exa

[Lldb-commits] [clang] [clang-tools-extra] [lld] [lldb] [llvm] [mlir] [polly] [NFC] Add explicit #include llvm-config.h where its macros are used. (PR #106810)

2024-09-04 Thread Daniil Fukalov via lldb-commits
https://github.com/dfukalov ready_for_review https://github.com/llvm/llvm-project/pull/106810 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Change the implementation of Status to store an llvm::Error (NFC) (PR #106774)

2024-09-04 Thread Adrian Prantl via lldb-commits
adrian-prantl wrote: Wasn't half as bad. @labath This update introduces a `ClonableError` base class. This will enable us (after a bit more refactoring) to move the various Error subclass declarations closer to where they are needed. Right now the ErrorFromEnums() method still prevents that.

[Lldb-commits] [lldb] [LLDB][Data Formatters] Calculate average and total time for summary providers within lldb (PR #102708)

2024-09-04 Thread Greg Clayton via lldb-commits
@@ -201,3 +216,12 @@ std::string ScriptSummaryFormat::GetDescription() { } return std::string(sstr.GetString()); } + +std::string ScriptSummaryFormat::GetName() { return m_script_formatter_name; } + +std::string ScriptSummaryFormat::GetSummaryKindName() { + if (!m_python_s

[Lldb-commits] [lldb] [LLDB][Data Formatters] Calculate average and total time for summary providers within lldb (PR #102708)

2024-09-04 Thread Greg Clayton via lldb-commits
@@ -258,6 +258,14 @@ class TypeSummaryImpl { virtual std::string GetDescription() = 0; + /// Get the name of the Type Summary Provider, either a C++ class, a summary + /// string, or a script function name. + virtual std::string GetName() = 0; + + /// Get the name of th

[Lldb-commits] [lldb] [LLDB][Data Formatters] Calculate average and total time for summary providers within lldb (PR #102708)

2024-09-04 Thread Greg Clayton via lldb-commits
@@ -174,6 +176,85 @@ struct StatisticsOptions { std::optional m_include_transcript; }; +/// A class that represents statistics about a TypeSummaryProviders invocations +class SummaryStatistics { +public: + explicit SummaryStatistics(std::string name, std::string impl_type)

[Lldb-commits] [lldb] [LLDB][Data Formatters] Calculate average and total time for summary providers within lldb (PR #102708)

2024-09-04 Thread Greg Clayton via lldb-commits
@@ -174,6 +176,82 @@ struct StatisticsOptions { std::optional m_include_transcript; }; +/// A class that represents statistics about a TypeSummaryProviders invocations +class SummaryStatistics { +public: + explicit SummaryStatistics(std::string name, std::string impl_type)

[Lldb-commits] [lldb] [LLDB][Minidump] Extend the minidump x86_64 registers to include fs_base and gs_base (PR #106767)

2024-09-04 Thread Greg Clayton via lldb-commits
https://github.com/clayborg approved this pull request. https://github.com/llvm/llvm-project/pull/106767 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [LLDB][Minidump] Extend the minidump x86_64 registers to include fs_base and gs_base (PR #106767)

2024-09-04 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/106767 >From ceb20d62d9cef3090e34e8b9fc0bc620a7d9da3d Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Fri, 30 Aug 2024 10:33:08 -0700 Subject: [PATCH 1/4] Extend the minidump x86_64 registers to include fs_base and

[Lldb-commits] [lldb] Make env and source map dictionaries #95137 (PR #106919)

2024-09-04 Thread via lldb-commits
https://github.com/Da-Viper updated https://github.com/llvm/llvm-project/pull/106919 >From d2bddca1753b4c960895f51d7eb80b6efa7dc986 Mon Sep 17 00:00:00 2001 From: Ezike Ebuka Date: Sun, 1 Sep 2024 17:26:11 +0100 Subject: [PATCH 1/5] [lldb-dap] Make environment option an object --- .../tools/l

[Lldb-commits] [lldb] [lldb] Make deep copies of Status explicit (NFC) (PR #107170)

2024-09-04 Thread Felipe de Azevedo Piovezan via lldb-commits
felipepiovezan wrote: > > Ah I've just noticed the other PR > > Do we actually have abetter solution for stacked commits than what I'm doing > here? short answer is "maybe": https://llvm.org/docs/GitHub.html#using-graphite-for-stacked-pull-requests https://github.com/llvm/llvm-project/pull/1

[Lldb-commits] [lldb] [lldb] Inline expression evaluator error visualization (PR #106470)

2024-09-04 Thread via lldb-commits
jimingham wrote: Ah, I thought you were echoing something and pointing into that, I missed that you were pointing into the original command line. Does this also work if I have an alias that scrambles the command arguments compared to how they are in the command that eventually got invoked. I

[Lldb-commits] [lldb] [lldb] Change ValueObject::AddressOf() to return Expected (NFC) (PR #106831)

2024-09-04 Thread via lldb-commits
jimingham wrote: Are you planning to do this more generally? There are lots of API's that can ValueObjects that might or might not succeed, and it's not clear to me how AddressOf is special in this regard. If we're planning on changing how we hand out ValueObjects more generally in the API t

[Lldb-commits] [lldb] [lldb] Make deep copies of Status explicit (NFC) (PR #107170)

2024-09-04 Thread Adrian Prantl via lldb-commits
adrian-prantl wrote: > Ah I've just noticed the other PR Do we actually have abetter solution for stacked commits than what I'm doing here? https://github.com/llvm/llvm-project/pull/107170 ___ lldb-commits mailing list lldb-commits@lists.llvm.org ht

[Lldb-commits] [lldb] [lldb] Make conversions from llvm::Error explicit with Status::FromEr… (PR #107163)

2024-09-04 Thread Adrian Prantl via lldb-commits
https://github.com/adrian-prantl updated https://github.com/llvm/llvm-project/pull/107163 >From 1c258c6efb04688ccb2e60a9c472c5c40e93c9ac Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Tue, 3 Sep 2024 15:29:25 -0700 Subject: [PATCH] [lldb] Make conversions from llvm::Error explicit with Sta

[Lldb-commits] [lldb] [lldb] Make deep copies of Status explicit (NFC) (PR #107170)

2024-09-04 Thread Felipe de Azevedo Piovezan via lldb-commits
felipepiovezan wrote: Ah I've just noticed the other PR https://github.com/llvm/llvm-project/pull/107170 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Make deep copies of Status explicit (NFC) (PR #107170)

2024-09-04 Thread Felipe de Azevedo Piovezan via lldb-commits
felipepiovezan wrote: I'm not if this is your intention, but the way LLVM has configured their github, your two nicely separated commits will be squashed :( https://github.com/llvm/llvm-project/pull/107170 ___ lldb-commits mailing list lldb-commits@l

[Lldb-commits] [lldb] [lldb] Make deep copies of Status explicit (NFC) (PR #107170)

2024-09-04 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 9626e84faeaab200665bae9694458c2beb3d49c7 47e2879bf9f49ece471d9e0d47d16c175d012703 --e

[Lldb-commits] [lldb] [lldb] Make deep copies of Status explicit (NFC) (PR #107170)

2024-09-04 Thread Adrian Prantl via lldb-commits
@@ -26,6 +26,36 @@ class raw_ostream; namespace lldb_private { +class MachKernelError adrian-prantl wrote: Updated. https://github.com/llvm/llvm-project/pull/107170 ___ lldb-commits mailing list lldb-commits@lists

[Lldb-commits] [lldb] [lldb] Make conversions from llvm::Error explicit with Status::FromEr… (PR #107163)

2024-09-04 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 9626e84faeaab200665bae9694458c2beb3d49c7 3a133869fd7defac30329ef4c81eb082883e --e

[Lldb-commits] [lldb] [lldb] Make conversions from llvm::Error explicit with Status::FromEr… (PR #107163)

2024-09-04 Thread Adrian Prantl via lldb-commits
adrian-prantl wrote: @labath Done. https://github.com/llvm/llvm-project/pull/107163 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Make conversions from llvm::Error explicit with Status::FromEr… (PR #107163)

2024-09-04 Thread Adrian Prantl via lldb-commits
https://github.com/adrian-prantl updated https://github.com/llvm/llvm-project/pull/107163 >From 3a133869fd7defac30329ef4c81eb082883e Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Tue, 3 Sep 2024 15:29:25 -0700 Subject: [PATCH] [lldb] Make conversions from llvm::Error explicit with Sta

[Lldb-commits] [lldb] [LLDB][Minidump] Extend the minidump x86_64 registers to include fs_base and gs_base (PR #106767)

2024-09-04 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 c4906588ce47de33d59bcd95f3e82ce2c3e61c23 3da1e51b77592dc193328ad3b7d64165ccc3c71e --e

[Lldb-commits] [lldb] [LLDB][Minidump] Extend the minidump x86_64 registers to include fs_base and gs_base (PR #106767)

2024-09-04 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/106767 >From ceb20d62d9cef3090e34e8b9fc0bc620a7d9da3d Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Fri, 30 Aug 2024 10:33:08 -0700 Subject: [PATCH 1/3] Extend the minidump x86_64 registers to include fs_base and

[Lldb-commits] [lldb] [lldb] Make conversions from llvm::Error explicit with Status::FromEr… (PR #107163)

2024-09-04 Thread Pavel Labath via lldb-commits
https://github.com/labath commented: No, I'm just saying we should ditch the rvalue references. I.e., do this. https://github.com/llvm/llvm-project/pull/107163 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mai

[Lldb-commits] [lldb] [lldb] Make conversions from llvm::Error explicit with Status::FromEr… (PR #107163)

2024-09-04 Thread Pavel Labath via lldb-commits
@@ -145,6 +145,7 @@ class Status { bool Success() const; protected: + Status(llvm::Error &&error); labath wrote: ```suggestion Status(llvm::Error error); ``` https://github.com/llvm/llvm-project/pull/107163 __

[Lldb-commits] [lldb] [lldb] Make conversions from llvm::Error explicit with Status::FromEr… (PR #107163)

2024-09-04 Thread Pavel Labath via lldb-commits
https://github.com/labath edited https://github.com/llvm/llvm-project/pull/107163 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Make conversions from llvm::Error explicit with Status::FromEr… (PR #107163)

2024-09-04 Thread Pavel Labath via lldb-commits
@@ -91,9 +91,9 @@ class Status { ~Status(); - // llvm::Error support - explicit Status(llvm::Error error) { *this = std::move(error); } - const Status &operator=(llvm::Error error); + /// Avoid using this in new code. Migrate APIs to llvm::Expected instead. + static St

[Lldb-commits] [lldb] [lldb] Do not use LC_FUNCTION_STARTS data to determine symbol size as symbols are created (PR #106791)

2024-09-04 Thread Alex Langford via lldb-commits
bulbazord wrote: > OK, I see in `Symtab::InitAddressIndexes` we go through the symbol table and > calculate the sizes of any entries that don't have a size based on the next > symbol, or the end of the section. > > A little further in ObjectFileMachO::ParseSymtab when we add any > LC_FUNCTION

[Lldb-commits] [lldb] Make env and source map dictionaries #95137 (PR #106919)

2024-09-04 Thread via lldb-commits
https://github.com/Da-Viper updated https://github.com/llvm/llvm-project/pull/106919 >From d2bddca1753b4c960895f51d7eb80b6efa7dc986 Mon Sep 17 00:00:00 2001 From: Ezike Ebuka Date: Sun, 1 Sep 2024 17:26:11 +0100 Subject: [PATCH 1/4] [lldb-dap] Make environment option an object --- .../tools/l

[Lldb-commits] [lldb] [LLDB] Reappply SBSaveCore AddMemoryList (PR #107159)

2024-09-04 Thread Jacob Lalonde via lldb-commits
Jlalond wrote: Hey @bulbazord, this was reverted because it failed `TestSkinnyCorefile.py` [Link](https://github.com/llvm/llvm-project/blob/main/lldb/test/API/macosx/skinny-corefile/TestSkinnyCorefile.py#L15), I'm running into issues where it keeps coming up as unsupported. Is there a way to t

[Lldb-commits] [lldb] [lldb] Removed gdbserver ports map from lldb-server (PR #104238)

2024-09-04 Thread Dmitry Vasilyev via lldb-commits
@@ -666,7 +756,23 @@ ConnectionStatus ConnectionFileDescriptor::ConnectFD(llvm::StringRef s, socket_id_callback_type socket_id_callback, Status *error_ptr) { -#if LLDB_ENABLE_POSIX +#ifdef _WIN32 + int64_t

[Lldb-commits] [lldb] [lldb] Removed gdbserver ports map from lldb-server (PR #104238)

2024-09-04 Thread Dmitry Vasilyev via lldb-commits
https://github.com/slydiman updated https://github.com/llvm/llvm-project/pull/104238 >From 18b8a835a3182e5be5f0dd848977333d9b8a26fa Mon Sep 17 00:00:00 2001 From: Dmitry Vasilyev Date: Fri, 30 Aug 2024 01:08:24 +0400 Subject: [PATCH 1/2] [lldb] Removed gdbserver ports map from lldb-server List

[Lldb-commits] [clang] [clang-tools-extra] [lld] [lldb] [llvm] [mlir] [polly] [NFC] Add explicit #include llvm-config.h where its macros are used. (PR #106810)

2024-09-04 Thread Daniil Fukalov via lldb-commits
https://github.com/dfukalov updated https://github.com/llvm/llvm-project/pull/106810 >From 0221e97459534f0f7396e7970663e1a4f1f98cca Mon Sep 17 00:00:00 2001 From: dfukalov Date: Sat, 31 Aug 2024 01:45:27 +0200 Subject: [PATCH 1/3] [NFC] Add explicit #include llvm-config.h where its macros are

[Lldb-commits] [lldb] [lldb] Removed gdbserver ports map from lldb-server (PR #104238)

2024-09-04 Thread Dmitry Vasilyev via lldb-commits
@@ -667,7 +669,22 @@ ConnectionStatus ConnectionFileDescriptor::ConnectFD(llvm::StringRef s, socket_id_callback_type socket_id_callback, Status *error_ptr) { -#if LLDB_ENABLE_POSIX +#ifdef _WIN32 + int64_t

[Lldb-commits] [lldb] [lldb] Removed gdbserver ports map from lldb-server (PR #104238)

2024-09-04 Thread Dmitry Vasilyev via lldb-commits
@@ -160,66 +95,58 @@ GDBRemoteCommunicationServerPlatform::~GDBRemoteCommunicationServerPlatform() = default; Status GDBRemoteCommunicationServerPlatform::LaunchGDBServer( -const lldb_private::Args &args, std::string hostname, lldb::pid_t &pid, -std::optional &por

[Lldb-commits] [lldb] [lldb] Removed gdbserver ports map from lldb-server (PR #104238)

2024-09-04 Thread Dmitry Vasilyev via lldb-commits
@@ -879,20 +879,12 @@ lldb::thread_result_t GDBRemoteCommunication::ListenThread() { return {}; } -Status GDBRemoteCommunication::StartDebugserverProcess( -const char *url, Platform *platform, ProcessLaunchInfo &launch_info, -uint16_t *port, const Args *inferior_arg

[Lldb-commits] [lldb] [lldb] Removed gdbserver ports map from lldb-server (PR #104238)

2024-09-04 Thread Dmitry Vasilyev via lldb-commits
@@ -421,97 +417,210 @@ int main_platform(int argc, char *argv[]) { return 0; } - const bool children_inherit_listen_socket = false; + if (gdbserver_port != 0 && + (gdbserver_port < LOW_PORT || gdbserver_port > HIGH_PORT)) { +WithColor::error() << llvm::formatv

[Lldb-commits] [lldb] [lldb] Removed gdbserver ports map from lldb-server (PR #104238)

2024-09-04 Thread Dmitry Vasilyev via lldb-commits
@@ -421,97 +417,210 @@ int main_platform(int argc, char *argv[]) { return 0; } - const bool children_inherit_listen_socket = false; + if (gdbserver_port != 0 && + (gdbserver_port < LOW_PORT || gdbserver_port > HIGH_PORT)) { +WithColor::error() << llvm::formatv

[Lldb-commits] [lldb] [lldb] Removed gdbserver ports map from lldb-server (PR #104238)

2024-09-04 Thread Dmitry Vasilyev via lldb-commits
@@ -150,12 +153,17 @@ static void client_handle(GDBRemoteCommunicationServerPlatform &platform, printf("Disconnected.\n"); } -static GDBRemoteCommunicationServerPlatform::PortMap gdbserver_portmap; -static std::mutex gdbserver_portmap_mutex; - static void spawn_process_rea

[Lldb-commits] [lldb] [lldb] Removed gdbserver ports map from lldb-server (PR #104238)

2024-09-04 Thread Dmitry Vasilyev via lldb-commits
@@ -421,97 +417,210 @@ int main_platform(int argc, char *argv[]) { return 0; } - const bool children_inherit_listen_socket = false; + if (gdbserver_port != 0 && + (gdbserver_port < LOW_PORT || gdbserver_port > HIGH_PORT)) { +WithColor::error() << llvm::formatv

[Lldb-commits] [lldb] [lldb] Removed gdbserver ports map from lldb-server (PR #104238)

2024-09-04 Thread Dmitry Vasilyev via lldb-commits
@@ -421,97 +417,210 @@ int main_platform(int argc, char *argv[]) { return 0; } - const bool children_inherit_listen_socket = false; + if (gdbserver_port != 0 && + (gdbserver_port < LOW_PORT || gdbserver_port > HIGH_PORT)) { +WithColor::error() << llvm::formatv

[Lldb-commits] [lldb] [lldb] Removed gdbserver ports map from lldb-server (PR #104238)

2024-09-04 Thread Dmitry Vasilyev via lldb-commits
@@ -421,97 +417,210 @@ int main_platform(int argc, char *argv[]) { return 0; } - const bool children_inherit_listen_socket = false; + if (gdbserver_port != 0 && + (gdbserver_port < LOW_PORT || gdbserver_port > HIGH_PORT)) { +WithColor::error() << llvm::formatv

[Lldb-commits] [lldb] [lldb] Removed gdbserver ports map from lldb-server (PR #104238)

2024-09-04 Thread Dmitry Vasilyev via lldb-commits
https://github.com/slydiman updated https://github.com/llvm/llvm-project/pull/104238 >From 18b8a835a3182e5be5f0dd848977333d9b8a26fa Mon Sep 17 00:00:00 2001 From: Dmitry Vasilyev Date: Fri, 30 Aug 2024 01:08:24 +0400 Subject: [PATCH 1/2] [lldb] Removed gdbserver ports map from lldb-server List

[Lldb-commits] [lldb] Make env and source map dictionaries #95137 (PR #106919)

2024-09-04 Thread via lldb-commits
Da-Viper wrote: > Can we modify this patch to support both formats? It should be easy to see if > "env" is a dictionary, and if it is, use your new code. If it is an array, > use the old parsing code. I would like to make sure this change doesn't break > anyone that has existing launch configu

[Lldb-commits] [lldb] [lldb][AIX] Taking Linux Host Info header's base for AIX (PR #106910)

2024-09-04 Thread Dhruv Srivastava via lldb-commits
DhruvSrivastavaX wrote: One more thing. For platform differentiating files/paths like HostInfoAIX future files like PlatformAIX, How do you suggest we add them? To keep the code path more streamlined, shall we keep their code under Linux with #if _AIX, Or shall we use some form of inheritance

[Lldb-commits] [lldb] [lldb][AIX] Taking Linux Host Info header's base for AIX (PR #106910)

2024-09-04 Thread Dhruv Srivastava via lldb-commits
DhruvSrivastavaX wrote: Ok sure. For readability and clarity, for the files having comparatively bigger changes, I can drop it as multiple commits in the same PR, so that the changes can be seen as cleanly as possible: 1. Commit 1 - copy paste the original 2. Commit 2 - Make AIX dependant cha

[Lldb-commits] [lldb] [lldb] Correctly reconstruct simplified names for type units (PR #107240)

2024-09-04 Thread Michael Buch via lldb-commits
https://github.com/Michael137 approved this pull request. makes sense https://github.com/llvm/llvm-project/pull/107240 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Recurse through DW_AT_signature when looking for attributes (PR #107241)

2024-09-04 Thread Michael Buch via lldb-commits
@@ -50,7 +50,8 @@ class ElaboratingDIEIterator m_worklist.pop_back(); // And add back any items that elaborate it. -for (dw_attr_t attr : {DW_AT_specification, DW_AT_abstract_origin}) { +for (dw_attr_t attr : + {DW_AT_specification, DW_AT_abstract_origi

[Lldb-commits] [lldb] [lldb] Recurse through DW_AT_signature when looking for attributes (PR #107241)

2024-09-04 Thread Michael Buch via lldb-commits
https://github.com/Michael137 deleted https://github.com/llvm/llvm-project/pull/107241 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Recurse through DW_AT_signature when looking for attributes (PR #107241)

2024-09-04 Thread Michael Buch via lldb-commits
@@ -50,7 +50,8 @@ class ElaboratingDIEIterator m_worklist.pop_back(); // And add back any items that elaborate it. -for (dw_attr_t attr : {DW_AT_specification, DW_AT_abstract_origin}) { +for (dw_attr_t attr : + {DW_AT_specification, DW_AT_abstract_origi

[Lldb-commits] [lldb] [lldb][AIX] Taking Linux Host Info header's base for AIX (PR #106910)

2024-09-04 Thread David Spickett via lldb-commits
@@ -38,6 +38,12 @@ endif() include(LLDBConfig) include(AddLLDB) +# This has been added to keep the AIX build isolated for now. +# It will need to be modified later. +if (UNIX AND ${CMAKE_SYSTEM_NAME} MATCHES "AIX") + add_definitions("-D__AIX__") DavidSpickett

[Lldb-commits] [lldb] [lldb] Recurse through DW_AT_signature when looking for attributes (PR #107241)

2024-09-04 Thread Michael Buch via lldb-commits
@@ -377,11 +378,6 @@ static void GetDeclContextImpl(DWARFDIE die, die = spec; continue; } -// To find the name of a type in a type unit, we must follow the signature. -if (DWARFDIE spec = die.GetReferencedDIE(DW_AT_signature)) { Michael1

[Lldb-commits] [lldb] [lldb][AIX] Taking Linux Host Info header's base for AIX (PR #106910)

2024-09-04 Thread David Spickett via lldb-commits
@@ -38,6 +38,12 @@ endif() include(LLDBConfig) include(AddLLDB) +# This has been added to keep the AIX build isolated for now. +# It will need to be modified later. +if (UNIX AND ${CMAKE_SYSTEM_NAME} MATCHES "AIX") + add_definitions("-D__AIX__") DavidSpickett

[Lldb-commits] [lldb] [lldb][AIX] Taking Linux Host Info header's base for AIX (PR #106910)

2024-09-04 Thread David Spickett via lldb-commits
DavidSpickett wrote: A couple of suggestions. Perhaps you could reduce the PRs just to the files with the biggest differences on AIX, and include those changes in the PR. So that it is copying the file + making the AIX changes in one PR. Even if you have to add files that aren't used yet, we

[Lldb-commits] [lldb] [lldb][AIX] Taking Linux Host Info header's base for AIX (PR #106910)

2024-09-04 Thread Dhruv Srivastava via lldb-commits
@@ -38,6 +38,12 @@ endif() include(LLDBConfig) include(AddLLDB) +# This has been added to keep the AIX build isolated for now. +# It will need to be modified later. +if (UNIX AND ${CMAKE_SYSTEM_NAME} MATCHES "AIX") + add_definitions("-D__AIX__") DhruvSrivasta

[Lldb-commits] [lldb] [llvm] [lldb][RISCV] function calls support in lldb expressions (PR #99336)

2024-09-04 Thread via lldb-commits
@@ -0,0 +1,58 @@ +//===--- DirectToIndirectFCR.h - RISC-V specific pass -===// +// +// 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: Apa

[Lldb-commits] [lldb] [lldb] Recurse through DW_AT_signature when looking for attributes (PR #107241)

2024-09-04 Thread Michael Buch via lldb-commits
https://github.com/Michael137 edited https://github.com/llvm/llvm-project/pull/107241 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Recurse through DW_AT_signature when looking for attributes (PR #107241)

2024-09-04 Thread Michael Buch via lldb-commits
@@ -60,44 +60,45 @@ class DWARFDebugInfoEntry { return attrs; } - dw_offset_t - GetAttributeValue(const DWARFUnit *cu, const dw_attr_t attr, -DWARFFormValue &formValue, -dw_offset_t *end_attr_offset_ptr = nullptr, -

[Lldb-commits] [lldb] [llvm] [lldb][RISCV] function calls support in lldb expressions (PR #99336)

2024-09-04 Thread via lldb-commits
@@ -0,0 +1,58 @@ +//===--- DirectToIndirectFCR.h - RISC-V specific pass -===// +// +// 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: Apa

[Lldb-commits] [lldb] [llvm] [lldb][RISCV] function calls support in lldb expressions (PR #99336)

2024-09-04 Thread via lldb-commits
@@ -0,0 +1,194 @@ +//===--- DirectToIndirectFCR.cpp - RISC-V specific pass ---===// +// +// 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] [llvm] [lldb][RISCV] function calls support in lldb expressions (PR #99336)

2024-09-04 Thread via lldb-commits
@@ -0,0 +1,194 @@ +//===--- DirectToIndirectFCR.cpp - RISC-V specific pass ---===// +// +// 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] [llvm] [lldb][RISCV] function calls support in lldb expressions (PR #99336)

2024-09-04 Thread via lldb-commits
@@ -163,11 +166,83 @@ TotalArgsSizeInWords(bool is_rv64, return total_size; } +static bool UpdateRegister(RegisterContext *reg_ctx, + const lldb::RegisterKind reg_kind, + const uint32_t reg_num, const addr_t value) { + Log

[Lldb-commits] [lldb] [llvm] [lldb][RISCV] function calls support in lldb expressions (PR #99336)

2024-09-04 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 34b10e165d809bb133d37dfe934859800f21a100 66d055aa303c8fa07c4db2023dc175bad48a15a0 --e

[Lldb-commits] [lldb] [llvm] [lldb][RISCV] function calls support in lldb expressions (PR #99336)

2024-09-04 Thread via lldb-commits
@@ -0,0 +1,58 @@ +//===--- DirectToIndirectFCR.h - RISC-V specific pass -===// +// +// 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: Apa

[Lldb-commits] [lldb] [lldb][RISCV] Support optionally disabled FPR for riscv64 (PR #104547)

2024-09-04 Thread David Spickett via lldb-commits
DavidSpickett wrote: Just one more thing then this is good to go. Do you have commit access or will you need me to merge it for you? https://github.com/llvm/llvm-project/pull/104547 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lis

[Lldb-commits] [lldb] [lldb][RISCV] Support optionally disabled FPR for riscv64 (PR #104547)

2024-09-04 Thread David Spickett via lldb-commits
@@ -728,7 +746,6 @@ def test_riscv64_regs(self): "fa2", "fa3", "fa4", -"fa5", DavidSpickett wrote: I would replace this line with: ``` # fa5 is non-zero and checked in the list above. ``` https://github.com/llvm

[Lldb-commits] [lldb] [GDBRemote] Handle 'heap' memory region info type (PR #105883)

2024-09-04 Thread Felipe de Azevedo Piovezan via lldb-commits
https://github.com/felipepiovezan closed https://github.com/llvm/llvm-project/pull/105883 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] 1b0a802 - [GDBRemote] Handle 'heap' memory region info type (#105883)

2024-09-04 Thread via lldb-commits
Author: Felipe de Azevedo Piovezan Date: 2024-09-04T07:02:55-07:00 New Revision: 1b0a80249399dadfe0c3f682fff77bf9eb666535 URL: https://github.com/llvm/llvm-project/commit/1b0a80249399dadfe0c3f682fff77bf9eb666535 DIFF: https://github.com/llvm/llvm-project/commit/1b0a80249399dadfe0c3f682fff77bf9e

[Lldb-commits] [lldb] [GDBRemote] Handle 'heap' memory region info type (PR #105883)

2024-09-04 Thread Felipe de Azevedo Piovezan via lldb-commits
https://github.com/felipepiovezan updated https://github.com/llvm/llvm-project/pull/105883 >From e91140e2c059df5f65ad907e9c93329c75e36dc4 Mon Sep 17 00:00:00 2001 From: Felipe de Azevedo Piovezan Date: Fri, 23 Aug 2024 13:10:00 -0700 Subject: [PATCH 1/2] [GDBRemote] Handle 'heap' memory region

[Lldb-commits] [lldb] [lldb] Correctly reconstruct simplified names for type units (PR #107240)

2024-09-04 Thread Pavel Labath via lldb-commits
https://github.com/labath created https://github.com/llvm/llvm-project/pull/107240 We need to resolve the type signature to get a hold of the template argument dies. The associated test case passes even without this patch, but it only does it by accident (because the subsequent code considers

[Lldb-commits] [lldb] [llvm] [lldb][RISCV] function calls support in lldb expressions (PR #99336)

2024-09-04 Thread via lldb-commits
dlav-sc wrote: > > Well, for now I assume that existing tests are enough. Meaning we have a > > list of tests that start passing > > after these patches are applied. > > How are you running the tests? We're working on getting the tests running in > a sane fashion, using user space qemu. For n

[Lldb-commits] [lldb] d77ccae - [lldb] Fix 32 bit compile error

2024-09-04 Thread David Spickett via lldb-commits
Author: David Spickett Date: 2024-09-04T10:22:58Z New Revision: d77ccae4a629ba11b5c28f97222a8834c5e5c183 URL: https://github.com/llvm/llvm-project/commit/d77ccae4a629ba11b5c28f97222a8834c5e5c183 DIFF: https://github.com/llvm/llvm-project/commit/d77ccae4a629ba11b5c28f97222a8834c5e5c183.diff LOG

[Lldb-commits] [lldb] 5a658ee - [lldb][test] Skip some lldb-server tests on Windows

2024-09-04 Thread David Spickett via lldb-commits
Author: David Spickett Date: 2024-09-04T09:43:18Z New Revision: 5a658ee933065d0e4ef1a65d9a6ddfba2874ee98 URL: https://github.com/llvm/llvm-project/commit/5a658ee933065d0e4ef1a65d9a6ddfba2874ee98 DIFF: https://github.com/llvm/llvm-project/commit/5a658ee933065d0e4ef1a65d9a6ddfba2874ee98.diff LOG

[Lldb-commits] [lldb] [lldb][NFC] Move few static helpers to the class Socket (PR #106640)

2024-09-04 Thread Dmitry Vasilyev via lldb-commits
https://github.com/slydiman closed https://github.com/llvm/llvm-project/pull/106640 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] deeafea - [lldb][NFC] Move few static helpers to the class Socket (#106640)

2024-09-04 Thread via lldb-commits
Author: Dmitry Vasilyev Date: 2024-09-04T13:38:55+04:00 New Revision: deeafeab815ddfe7b507e9f79fe8f992265a9f3b URL: https://github.com/llvm/llvm-project/commit/deeafeab815ddfe7b507e9f79fe8f992265a9f3b DIFF: https://github.com/llvm/llvm-project/commit/deeafeab815ddfe7b507e9f79fe8f992265a9f3b.dif

[Lldb-commits] [lldb] 0b2550f - [lldb][test] Disable TestMultipleDebuggers on Linux

2024-09-04 Thread David Spickett via lldb-commits
Author: David Spickett Date: 2024-09-04T09:33:35Z New Revision: 0b2550f8ab77a53f560f6a7a1b401c4803a36d48 URL: https://github.com/llvm/llvm-project/commit/0b2550f8ab77a53f560f6a7a1b401c4803a36d48 DIFF: https://github.com/llvm/llvm-project/commit/0b2550f8ab77a53f560f6a7a1b401c4803a36d48.diff LOG

[Lldb-commits] [lldb] [lldb] Fix and speedup the `memory find` command (PR #104193)

2024-09-04 Thread Pavel Labath via lldb-commits
https://github.com/labath closed https://github.com/llvm/llvm-project/pull/104193 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] cc5c526 - [lldb] Fix and speedup the `memory find` command (#104193)

2024-09-04 Thread via lldb-commits
Author: Pavel Labath Date: 2024-09-04T11:30:58+02:00 New Revision: cc5c526c80a4cacf7ed5b7fbe50072594ec1aeaf URL: https://github.com/llvm/llvm-project/commit/cc5c526c80a4cacf7ed5b7fbe50072594ec1aeaf DIFF: https://github.com/llvm/llvm-project/commit/cc5c526c80a4cacf7ed5b7fbe50072594ec1aeaf.diff

[Lldb-commits] [lldb] [lldb][NFC] Move few static helpers to the class Socket (PR #106640)

2024-09-04 Thread Pavel Labath via lldb-commits
https://github.com/labath approved this pull request. cool. thanks. https://github.com/llvm/llvm-project/pull/106640 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][NFC] Move few static helpers to the class Socket (PR #106640)

2024-09-04 Thread Dmitry Vasilyev via lldb-commits
@@ -34,9 +34,11 @@ namespace lldb_private { #if defined(_WIN32) typedef SOCKET NativeSocket; typedef lldb::pipe_t shared_fd_t; +typedef const char *set_socket_option_arg_type; slydiman wrote: Updated. Fixed also a typo `set`_socket_option_arg_type option_value

[Lldb-commits] [lldb] [lldb][RISCV] Support optionally disabled FPR for riscv64 (PR #104547)

2024-09-04 Thread David Spickett via lldb-commits
@@ -760,6 +772,61 @@ def test_riscv64_regs(self): self.expect("register read --all") +@skipIfLLVMTargetMissing("RISCV") DavidSpickett wrote: > For this PR, just consider renaming the test functions here so that they list > what they are testing.

[Lldb-commits] [lldb] [lldb][NFC] Move few static helpers to the class Socket (PR #106640)

2024-09-04 Thread Dmitry Vasilyev via lldb-commits
https://github.com/slydiman updated https://github.com/llvm/llvm-project/pull/106640 >From fe58bf1f08553b75f089692077abdff0ccaf96bb Mon Sep 17 00:00:00 2001 From: Dmitry Vasilyev Date: Fri, 30 Aug 2024 01:29:58 +0400 Subject: [PATCH 1/2] [lldb][NFC] Move few static helpers to the class Socket

[Lldb-commits] [lldb] [lldb][RISCV] Support optionally disabled FPR for riscv64 (PR #104547)

2024-09-04 Thread David Spickett via lldb-commits
@@ -760,6 +772,61 @@ def test_riscv64_regs(self): self.expect("register read --all") +@skipIfLLVMTargetMissing("RISCV") DavidSpickett wrote: As an example of what I mean about future extensions being "too weird" - In the new Arm extension suppor

[Lldb-commits] [lldb] [lldb][RISCV] Support optionally disabled FPR for riscv64 (PR #104547)

2024-09-04 Thread David Spickett via lldb-commits
@@ -760,6 +772,61 @@ def test_riscv64_regs(self): self.expect("register read --all") +@skipIfLLVMTargetMissing("RISCV") DavidSpickett wrote: I'm saying that if risc-v grows a lot of strange register state, it will be better served by separate te

[Lldb-commits] [lldb] [lldb] Fix and speedup the `memory find` command (PR #104193)

2024-09-04 Thread Pavel Labath via lldb-commits
https://github.com/labath updated https://github.com/llvm/llvm-project/pull/104193 >From ecd84ae96fd59eeb4a2bb47d80980d861dc042d1 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Wed, 14 Aug 2024 19:58:27 +0200 Subject: [PATCH 1/3] [lldb] Fix and speedup the `memory find` command This patch f

[Lldb-commits] [lldb] [lldb] Change the implementation of Status to store an llvm::Error (NFC) (PR #106774)

2024-09-04 Thread Pavel Labath via lldb-commits
@@ -96,16 +124,44 @@ Status Status::FromErrorStringWithFormat(const char *format, ...) { return Status(string); } -llvm::Error Status::ToError() const { - if (Success()) -return llvm::Error::success(); - if (m_type == ErrorType::eErrorTypePOSIX) -return llvm::erro

[Lldb-commits] [lldb] [lldb] Make deep copies of Status explicit (NFC) (PR #107170)

2024-09-04 Thread Pavel Labath via lldb-commits
@@ -26,6 +26,36 @@ class raw_ostream; namespace lldb_private { +class MachKernelError labath wrote: These aren't yet used in this PR right? Can we get rid of them? https://github.com/llvm/llvm-project/pull/107170

[Lldb-commits] [lldb] [lldb] Make conversions from llvm::Error explicit with Status::FromEr… (PR #107163)

2024-09-04 Thread Pavel Labath via lldb-commits
https://github.com/labath commented: I don't think this usage of rvalue references is very idiomatic. It saves an object copy (move), but: - that should be very cheap anyway - it increases the risk of improper handling and weird side-effects -- a function like `void use(Error E) {}` will always

[Lldb-commits] [lldb] [lldb] Removed gdbserver ports map from lldb-server (PR #104238)

2024-09-04 Thread Pavel Labath via lldb-commits
@@ -421,97 +417,210 @@ int main_platform(int argc, char *argv[]) { return 0; } - const bool children_inherit_listen_socket = false; + if (gdbserver_port != 0 && + (gdbserver_port < LOW_PORT || gdbserver_port > HIGH_PORT)) { +WithColor::error() << llvm::formatv

[Lldb-commits] [lldb] [lldb] Removed gdbserver ports map from lldb-server (PR #104238)

2024-09-04 Thread Pavel Labath via lldb-commits
@@ -421,97 +417,210 @@ int main_platform(int argc, char *argv[]) { return 0; } - const bool children_inherit_listen_socket = false; + if (gdbserver_port != 0 && + (gdbserver_port < LOW_PORT || gdbserver_port > HIGH_PORT)) { +WithColor::error() << llvm::formatv

[Lldb-commits] [lldb] [lldb] Removed gdbserver ports map from lldb-server (PR #104238)

2024-09-04 Thread Pavel Labath via lldb-commits
@@ -421,97 +417,210 @@ int main_platform(int argc, char *argv[]) { return 0; } - const bool children_inherit_listen_socket = false; + if (gdbserver_port != 0 && + (gdbserver_port < LOW_PORT || gdbserver_port > HIGH_PORT)) { +WithColor::error() << llvm::formatv

  1   2   >