[Lldb-commits] [llvm] [lldb] DEBUGINFOD based DWP acquisition for LLDB (PR #70996)

2023-12-11 Thread Michał Górny via lldb-commits
mgorny wrote: "Dylib" is LLVM-speech for `libLLVM.so` ("shared libraries" refer to individual split libraries, while "dylib" refers to the monolith), as in `-DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_LINK_LLVM_DYLIB=ON`. And yes, that + standalone build with full *source* repository but linking

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Michael Buch via lldb-commits
Michael137 wrote: > > > > Sorry, it's been a while since I last reviewed this and I must admit I > > > > forgot about this in the mean time. The only thing I'd like to check > > > > before we can land this is to hear from @Michael137 who has been > > > > actively working on FindTypes

[Lldb-commits] [lldb] [lldb-dap] Emit declarations along with variables (PR #74865)

2023-12-11 Thread Greg Clayton via lldb-commits
@@ -1101,6 +1101,29 @@ std::string CreateUniqueVariableNameForDisplay(lldb::SBValue v, // can use this optional information to present the // children in a paged UI and fetch them in chunks." // } +// "declaration": { +//

[Lldb-commits] [lldb] [lldb-dap] Emit declarations along with variables (PR #74865)

2023-12-11 Thread Greg Clayton via lldb-commits
https://github.com/clayborg commented: I am ok with this patch. I would just like to document what key/value pairs are extensions because the spec description in the comment was directly from the DAP Protocol website and it would be nice to let people know what are extensions.

[Lldb-commits] [lldb] [lldb-dap] Implement command directives (PR #74808)

2023-12-11 Thread Greg Clayton via lldb-commits
clayborg wrote: > > "error: one of your required 'attachCommands' failed, check the debug > > console for details" > > This is a key thing that I didn't consider in the beginning. I'm going to > update this patch to only support `?`, and then I'll make another one for > `!`, because I need

[Lldb-commits] [lldb] [llvm] DEBUGINFOD based DWP acquisition for LLDB (PR #70996)

2023-12-11 Thread Kevin Frei via lldb-commits
kevinfrei wrote: Is there some documentation that both me & google are missing somewhere? I'm trying to read between the lines of the scenario that's broken, with nothing but a log (that refers to a bunch of pretty important configuration files from somewhere I can't find) with a repo

[Lldb-commits] [lldb] lldb: add support for thread names on Windows (PR #74731)

2023-12-11 Thread Saleem Abdulrasool via lldb-commits
@@ -175,3 +179,30 @@ Status TargetThreadWindows::DoResume() { return Status(); } + +const char *TargetThreadWindows::GetName() { + Log *log = GetLog(LLDBLog::Thread); + HMODULE hModule = ::LoadLibraryW(L"Kernel32.dll"); + if (hModule) { +auto GetThreadDescription = +

[Lldb-commits] [lldb] lldb: add support for thread names on Windows (PR #74731)

2023-12-11 Thread Saleem Abdulrasool via lldb-commits
@@ -175,3 +179,30 @@ Status TargetThreadWindows::DoResume() { return Status(); } + +const char *TargetThreadWindows::GetName() { + Log *log = GetLog(LLDBLog::Thread); + HMODULE hModule = ::LoadLibraryW(L"Kernel32.dll"); + if (hModule) { +auto GetThreadDescription =

[Lldb-commits] [lldb] lldb: add support for thread names on Windows (PR #74731)

2023-12-11 Thread Saleem Abdulrasool via lldb-commits
@@ -175,3 +179,30 @@ Status TargetThreadWindows::DoResume() { return Status(); } + +const char *TargetThreadWindows::GetName() { + Log *log = GetLog(LLDBLog::Thread); + HMODULE hModule = ::LoadLibraryW(L"Kernel32.dll"); + if (hModule) { +auto GetThreadDescription = +

[Lldb-commits] [lldb] Add a test for evicting unreachable modules from the global module cache (PR #74894)

2023-12-11 Thread via lldb-commits
https://github.com/jimingham updated https://github.com/llvm/llvm-project/pull/74894 >From 438d35a7a7fca454718062583f91776ca018b2b1 Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Fri, 8 Dec 2023 14:43:14 -0800 Subject: [PATCH 1/3] Add a test for evicting unreachable modules from the global

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Greg Clayton via lldb-commits
clayborg wrote: > > > Sorry, it's been a while since I last reviewed this and I must admit I > > > forgot about this in the mean time. The only thing I'd like to check > > > before we can land this is to hear from @Michael137 who has been actively > > > working on FindTypes performance

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Greg Clayton via lldb-commits
clayborg wrote: > BTW, lets prefix the commit with `[lldb]` before merging Do we need to fix this in the commit message when I squash? Or do I just update the title of this PR? https://github.com/llvm/llvm-project/pull/74786 ___ lldb-commits mailing

[Lldb-commits] [llvm] [lldb] [clang-tools-extra] [compiler-rt] [flang] [clang] [mlir] [Profile] Add binary profile correlation for code coverage. (PR #69493)

2023-12-11 Thread Fangrui Song via lldb-commits
MaskRay wrote: We have this team: @llvm/pr-subscribers-pgo https://github.com/llvm/llvm-project/pull/69493 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] 2e19760 - lldb: Cache string hash during ConstString pool queries/insertions

2023-12-11 Thread David Blaikie via lldb-commits
Author: David Blaikie Date: 2023-12-12T00:07:08Z New Revision: 2e197602305be18b963928e6ae024a004a95af6d URL: https://github.com/llvm/llvm-project/commit/2e197602305be18b963928e6ae024a004a95af6d DIFF: https://github.com/llvm/llvm-project/commit/2e197602305be18b963928e6ae024a004a95af6d.diff

[Lldb-commits] [flang] [lldb] [llvm] [clang-tools-extra] [compiler-rt] [mlir] [clang] [Profile] Add binary profile correlation for code coverage. (PR #69493)

2023-12-11 Thread David Li via lldb-commits
david-xl wrote: > @david-xl , Zequan posted an > [RFC](https://discourse.llvm.org/t/rfc-add-binary-profile-correlation-to-not-load-profile-metadata-sections-into-memory-at-runtime/74565/8) > for this. Is there a PGO tag, or something we can use to increase visibility > for PGO reviewers? I

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 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 42bba97fc24f045f593fc26f998bac9b08633255 9e826b1fc9dcc25186a9e7aef0998aab4978cfca --

[Lldb-commits] [lldb] Add a test for evicting unreachable modules from the global module cache (PR #74894)

2023-12-11 Thread via lldb-commits
github-actions[bot] wrote: :warning: Python code formatter, darker found issues in your code. :warning: You can test this locally with the following command: ``bash darker --check --diff -r 44dc1e0baae7c4b8a02ba06dcf396d3d452aa873...684cee4a363c87c6b2cfa0776adb7c5923a0f6b6

[Lldb-commits] [lldb] Add a test for evicting unreachable modules from the global module cache (PR #74894)

2023-12-11 Thread via lldb-commits
jimingham wrote: I added a test for the case where one target has the old version and another target has the new one. In this case, I don't think (short of MemoryPressureDetected by hand) that we'll ever get rid of these unreachable Modules. https://github.com/llvm/llvm-project/pull/74894

[Lldb-commits] [lldb] Add a test for evicting unreachable modules from the global module cache (PR #74894)

2023-12-11 Thread via lldb-commits
https://github.com/jimingham updated https://github.com/llvm/llvm-project/pull/74894 >From 438d35a7a7fca454718062583f91776ca018b2b1 Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Fri, 8 Dec 2023 14:43:14 -0800 Subject: [PATCH 1/2] Add a test for evicting unreachable modules from the global

[Lldb-commits] [clang-tools-extra] [flang] [clang] [llvm] [compiler-rt] [lldb] [openmp] [mlir] [lld] [libc] [libcxx] fix issue 73559. (PR #74926)

2023-12-11 Thread via lldb-commits
ChipsSpectre wrote: The pull request is updated now, and passing tests and formatting checks. Is it ready to be merged in its new state? https://github.com/llvm/llvm-project/pull/74926 ___ lldb-commits mailing list lldb-commits@lists.llvm.org

[Lldb-commits] [clang-tools-extra] [flang] [clang] [llvm] [compiler-rt] [lldb] [openmp] [mlir] [lld] [libc] [libcxx] fix issue 73559. (PR #74926)

2023-12-11 Thread via lldb-commits
https://github.com/ChipsSpectre updated https://github.com/llvm/llvm-project/pull/74926 >From 8269060e6b50721a847742ff8d0af2c819e52578 Mon Sep 17 00:00:00 2001 From: ChipsSpectre Date: Sat, 9 Dec 2023 12:07:02 +0100 Subject: [PATCH 1/4] fix issue 73559. --- clang/lib/Parse/ParseDecl.cpp|

[Lldb-commits] [lldb] [lldb] Disable new TestLocationListLookup when clang version is <= 11 (PR #75102)

2023-12-11 Thread Augusto Noronha via lldb-commits
https://github.com/augusto2112 closed https://github.com/llvm/llvm-project/pull/75102 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] a37fa2a - [lldb] Disable new TestLocationListLookup when clang version is <= 11 (#75102)

2023-12-11 Thread via lldb-commits
Author: Augusto Noronha Date: 2023-12-11T14:40:43-08:00 New Revision: a37fa2a8e1c827f1ff04b0b13b83cf97eefe74c0 URL: https://github.com/llvm/llvm-project/commit/a37fa2a8e1c827f1ff04b0b13b83cf97eefe74c0 DIFF:

[Lldb-commits] [lldb] Add a test for evicting unreachable modules from the global module cache (PR #74894)

2023-12-11 Thread via lldb-commits
jimingham wrote: > > Note, I thought about adding an `SBDebugger::GetSharedModules or something, > > but I don't actually think that's a good thing to give external access to. > > Some day we should make an SBTestAPI with some useful for testing but not > > for the SB API library so we can

[Lldb-commits] [compiler-rt] [clang] [flang] [clang-tools-extra] [mlir] [lldb] [llvm] [Profile] Add binary profile correlation for code coverage. (PR #69493)

2023-12-11 Thread Reid Kleckner via lldb-commits
rnk wrote: @david-xl , Zequan posted an [RFC](https://discourse.llvm.org/t/rfc-add-binary-profile-correlation-to-not-load-profile-metadata-sections-into-memory-at-runtime/74565/8) for this. Is there a PGO tag, or something we can use to increase visibility for PGO reviewers? I think most of

[Lldb-commits] [lldb] [lldb] Disable new TestLocationListLookup when clang version is <= 11 (PR #75102)

2023-12-11 Thread Augusto Noronha via lldb-commits
https://github.com/augusto2112 updated https://github.com/llvm/llvm-project/pull/75102 >From be91ba6b5b411e2fc6b9a7b49324ef5b20c9e2ed Mon Sep 17 00:00:00 2001 From: Augusto Noronha Date: Mon, 11 Dec 2023 13:38:04 -0800 Subject: [PATCH] [lldb] Disable new TestLocationListLookup when clang

[Lldb-commits] [compiler-rt] [llvm] [lld] [clang] [flang] [libc] [openmp] [clang-tools-extra] [libcxx] [lldb] [mlir] fix issue 73559. (PR #74926)

2023-12-11 Thread via lldb-commits
https://github.com/ChipsSpectre updated https://github.com/llvm/llvm-project/pull/74926 >From 8269060e6b50721a847742ff8d0af2c819e52578 Mon Sep 17 00:00:00 2001 From: ChipsSpectre Date: Sat, 9 Dec 2023 12:07:02 +0100 Subject: [PATCH 1/3] fix issue 73559. --- clang/lib/Parse/ParseDecl.cpp|

[Lldb-commits] [compiler-rt] [llvm] [lld] [clang] [flang] [libc] [openmp] [clang-tools-extra] [libcxx] [lldb] [mlir] fix issue 73559. (PR #74926)

2023-12-11 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 f92d970c8cc27747478abb7df66bb8b6701cea49 e8419c3750f7b1cf877b042942204abaab48344b --

[Lldb-commits] [compiler-rt] [llvm] [lld] [clang] [flang] [libc] [openmp] [clang-tools-extra] [libcxx] [lldb] [mlir] fix issue 73559. (PR #74926)

2023-12-11 Thread via lldb-commits
https://github.com/ChipsSpectre updated https://github.com/llvm/llvm-project/pull/74926 >From 8269060e6b50721a847742ff8d0af2c819e52578 Mon Sep 17 00:00:00 2001 From: ChipsSpectre Date: Sat, 9 Dec 2023 12:07:02 +0100 Subject: [PATCH 1/2] fix issue 73559. --- clang/lib/Parse/ParseDecl.cpp|

[Lldb-commits] [lldb] [lldb] Disable new TestLocationListLookup when clang version is <= 11 (PR #75102)

2023-12-11 Thread via lldb-commits
github-actions[bot] wrote: :warning: Python code formatter, darker found issues in your code. :warning: You can test this locally with the following command: ``bash darker --check --diff -r 13ef4fec26650a93b57709a23a3392582825afe7...0ec0f8ddf505ad30f8684e9452ebc4524f50a4b4

[Lldb-commits] [compiler-rt] [llvm] [lld] [clang] [flang] [libc] [clang-tools-extra] [libcxx] [lldb] fix issue 73559. (PR #74926)

2023-12-11 Thread via lldb-commits
https://github.com/ChipsSpectre updated https://github.com/llvm/llvm-project/pull/74926 >From 8269060e6b50721a847742ff8d0af2c819e52578 Mon Sep 17 00:00:00 2001 From: ChipsSpectre Date: Sat, 9 Dec 2023 12:07:02 +0100 Subject: [PATCH 1/2] fix issue 73559. --- clang/lib/Parse/ParseDecl.cpp|

[Lldb-commits] [lldb] [lldb] Disable new TestLocationListLookup when clang version is <= 11 (PR #75102)

2023-12-11 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Augusto Noronha (augusto2112) Changes The newly introduced LocationListLookupTestCase.test_loclist_expr test fails with older clangs. --- Full diff: https://github.com/llvm/llvm-project/pull/75102.diff 1 Files Affected: - (modified)

[Lldb-commits] [lldb] [lldb] Disable new TestLocationListLookup when clang version is <= 11 (PR #75102)

2023-12-11 Thread Augusto Noronha via lldb-commits
https://github.com/augusto2112 created https://github.com/llvm/llvm-project/pull/75102 The newly introduced LocationListLookupTestCase.test_loclist_expr test fails with older clangs. >From 0ec0f8ddf505ad30f8684e9452ebc4524f50a4b4 Mon Sep 17 00:00:00 2001 From: Augusto Noronha Date: Mon, 11

[Lldb-commits] [lldb] [lldb-dap] Implement command directives (PR #74808)

2023-12-11 Thread Walter Erquinigo via lldb-commits
walter-erquinigo wrote: > "error: one of your required 'attachCommands' failed, check the debug console > for details" This is a key thing that I didn't consider in the beginning. I'm going to update this patch to only support `?`, and then I'll make another one for `!`, because I need to

[Lldb-commits] [lldb] [lldb-dap] Emit declarations along with variables (PR #74865)

2023-12-11 Thread Walter Erquinigo via lldb-commits
walter-erquinigo wrote: > Might be good idea to only add "declaration" if and only if we have both a > file and line at least? I think it's better to emit it if there's at least one of them. We can leave it to the client the decision of what to do if only one of them is available.

[Lldb-commits] [lldb] [lldb-dap] Emit declarations along with variables (PR #74865)

2023-12-11 Thread Walter Erquinigo via lldb-commits
@@ -1165,6 +1188,24 @@ llvm::json::Value CreateVariable(lldb::SBValue v, int64_t variablesReference, const char *evaluateName = evaluateStream.GetData(); if (evaluateName && evaluateName[0]) EmplaceSafeString(object, "evaluateName", std::string(evaluateName)); + + if

[Lldb-commits] [lldb] [lldb-dap] Emit declarations along with variables (PR #74865)

2023-12-11 Thread Greg Clayton via lldb-commits
https://github.com/clayborg commented: Might be good idea to only add "declaration" if and only if we have both a file and line at least? https://github.com/llvm/llvm-project/pull/74865 ___ lldb-commits mailing list lldb-commits@lists.llvm.org

[Lldb-commits] [lldb] [lldb-dap] Emit declarations along with variables (PR #74865)

2023-12-11 Thread Greg Clayton via lldb-commits
@@ -1165,6 +1188,24 @@ llvm::json::Value CreateVariable(lldb::SBValue v, int64_t variablesReference, const char *evaluateName = evaluateStream.GetData(); if (evaluateName && evaluateName[0]) EmplaceSafeString(object, "evaluateName", std::string(evaluateName)); + + if

[Lldb-commits] [lldb] [lldb-dap] Emit declarations along with variables (PR #74865)

2023-12-11 Thread Greg Clayton via lldb-commits
https://github.com/clayborg edited https://github.com/llvm/llvm-project/pull/74865 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb-dap] Emit declarations along with variables (PR #74865)

2023-12-11 Thread Walter Erquinigo via lldb-commits
https://github.com/walter-erquinigo closed https://github.com/llvm/llvm-project/pull/74865 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] 0ea19bd - [lldb-dap] Emit declarations along with variables (#74865)

2023-12-11 Thread via lldb-commits
Author: Walter Erquinigo Date: 2023-12-11T15:20:06-05:00 New Revision: 0ea19bdaf71dd3aaf7c0a6ef9a0930958c12 URL: https://github.com/llvm/llvm-project/commit/0ea19bdaf71dd3aaf7c0a6ef9a0930958c12 DIFF:

[Lldb-commits] [lldb] [lldb-dap] Implement command directives (PR #74808)

2023-12-11 Thread Greg Clayton via lldb-commits
clayborg wrote: > @clayborg , I actually insist on aborting on failure for this feature. You > mention: > > > It would be nice if the RunLLDBCommands function could take an extra bool > > _error that clients could check after running when needed to decide > > what to do if this is set to

[Lldb-commits] [lldb] [lldb][progress] Add discrete boolean flag to progress reports (PR #69516)

2023-12-11 Thread Greg Clayton via lldb-commits
@@ -2225,7 +2225,8 @@ void ObjectFileMachO::ParseSymtab(Symtab ) { const char *file_name = file.GetFilename().AsCString(""); LLDB_SCOPED_TIMERF("ObjectFileMachO::ParseSymtab () module = %s", file_name); LLDB_LOG(log, "Parsing symbol table for {0}", file_name); -

[Lldb-commits] [lldb] [lldb][progress] Add discrete boolean flag to progress reports (PR #69516)

2023-12-11 Thread Greg Clayton via lldb-commits
https://github.com/clayborg edited https://github.com/llvm/llvm-project/pull/69516 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][progress] Add discrete boolean flag to progress reports (PR #69516)

2023-12-11 Thread Greg Clayton via lldb-commits
@@ -2225,7 +2225,8 @@ void ObjectFileMachO::ParseSymtab(Symtab ) { const char *file_name = file.GetFilename().AsCString(""); LLDB_SCOPED_TIMERF("ObjectFileMachO::ParseSymtab () module = %s", file_name); LLDB_LOG(log, "Parsing symbol table for {0}", file_name); -

[Lldb-commits] [lldb] 07ed325 - [lldb-dap] Include [opt] in the frame name only if a custom frame format is not specified. (#74861)

2023-12-11 Thread via lldb-commits
Author: Walter Erquinigo Date: 2023-12-11T14:46:25-05:00 New Revision: 07ed3258d0b38bdfd60c203c23a59c8ce8def914 URL: https://github.com/llvm/llvm-project/commit/07ed3258d0b38bdfd60c203c23a59c8ce8def914 DIFF:

[Lldb-commits] [lldb] [lldb-dap] Include [opt] in the frame name only if a custom frame format is not specified. (PR #74861)

2023-12-11 Thread Walter Erquinigo via lldb-commits
https://github.com/walter-erquinigo closed https://github.com/llvm/llvm-project/pull/74861 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] lldb: add support for thread names on Windows (PR #74731)

2023-12-11 Thread Alex Langford via lldb-commits
bulbazord wrote: @compnerd Perhaps you can take a look at this one? Not sure who does Windows work on LLDB these days. https://github.com/llvm/llvm-project/pull/74731 ___ lldb-commits mailing list lldb-commits@lists.llvm.org

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Michael Buch via lldb-commits
Michael137 wrote: BTW, lets prefix the commit with `[lldb]` before merging https://github.com/llvm/llvm-project/pull/74786 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][progress] Add discrete boolean flag to progress reports (PR #69516)

2023-12-11 Thread Med Ismail Bennani via lldb-commits
@@ -2225,7 +2225,8 @@ void ObjectFileMachO::ParseSymtab(Symtab ) { const char *file_name = file.GetFilename().AsCString(""); LLDB_SCOPED_TIMERF("ObjectFileMachO::ParseSymtab () module = %s", file_name); LLDB_LOG(log, "Parsing symbol table for {0}", file_name); -

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Michael Buch via lldb-commits
@@ -122,6 +106,9 @@ class TypeSystem : public PluginInterface, virtual CompilerType DeclGetFunctionArgumentType(void *opaque_decl, size_t arg_idx); + virtual std::vector + DeclGetCompilerContext(void *opaque_decl);

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Michael Buch via lldb-commits
@@ -64,6 +64,125 @@ bool lldb_private::contextMatches(llvm::ArrayRef context_chain, return true; } +static CompilerContextKind ConvertTypeClass(lldb::TypeClass type_class) { + if (type_class == eTypeClassAny) +return CompilerContextKind::AnyType; + uint16_t result =

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Greg Clayton via lldb-commits
@@ -64,6 +64,125 @@ bool lldb_private::contextMatches(llvm::ArrayRef context_chain, return true; } +static CompilerContextKind ConvertTypeClass(lldb::TypeClass type_class) { + if (type_class == eTypeClassAny) +return CompilerContextKind::AnyType; + uint16_t result =

[Lldb-commits] [lldb] [llvm] [libc] [libcxx] [flang] [compiler-rt] [mlir] [clang-tools-extra] [openmp] [clang] [libc++][span] P2821R5: span.at() (PR #74994)

2023-12-11 Thread Hristo Hristov via lldb-commits
@@ -343,6 +345,15 @@ public: return __data_[__idx]; } +# if _LIBCPP_STD_VER >= 26 +_LIBCPP_HIDE_FROM_ABI constexpr reference at(size_type __index) const { + if (__index >= size()) { H-G-Hristov wrote: Done! Sorry I missed that.

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Greg Clayton via lldb-commits
@@ -12,33 +12,32 @@ class UniqueTypesTestCase4(TestBase): def do_test(self, debug_flags): """Test that we display the correct template instantiation.""" self.build(dictionary=debug_flags) +exe = self.getBuildArtifact("a.out") +print(exe)

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Greg Clayton via lldb-commits
@@ -12,33 +12,32 @@ class UniqueTypesTestCase4(TestBase): def do_test(self, debug_flags): """Test that we display the correct template instantiation.""" self.build(dictionary=debug_flags) +exe = self.getBuildArtifact("a.out") +print(exe)

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Greg Clayton via lldb-commits
@@ -1446,23 +1446,23 @@ void SymbolFilePDB::AddSymbols(lldb_private::Symtab ) { symtab.Finalize(); } -void SymbolFilePDB::FindTypes( -lldb_private::ConstString name, const CompilerDeclContext _decl_ctx, -uint32_t max_matches, -llvm::DenseSet _symbol_files, -

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Greg Clayton via lldb-commits
@@ -122,6 +106,9 @@ class TypeSystem : public PluginInterface, virtual CompilerType DeclGetFunctionArgumentType(void *opaque_decl, size_t arg_idx); + virtual std::vector + DeclGetCompilerContext(void *opaque_decl);

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Greg Clayton via lldb-commits
@@ -146,6 +133,9 @@ class TypeSystem : public PluginInterface, virtual CompilerDeclContext GetCompilerDeclContextForType(const CompilerType ); + virtual std::vector + DeclContextGetCompilerContext(void *opaque_decl_ctx); clayborg wrote: I would rather

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Greg Clayton via lldb-commits
@@ -1696,16 +1696,16 @@ static size_t LookupTypeInModule(Target *target, CommandInterpreter , Stream , Module *module, const char *name_cstr, bool name_is_regex) { - TypeList

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Greg Clayton via lldb-commits
@@ -1859,17 +1851,11 @@ lldb::SBTypeList SBTarget::FindTypes(const char *typename_cstr) { if (typename_cstr && typename_cstr[0] && target_sp) { ModuleList = target_sp->GetImages(); ConstString const_typename(typename_cstr); -bool exact_match = false; -

[Lldb-commits] [compiler-rt] [flang] [clang-tools-extra] [llvm] [libcxx] [clang] [mlir] [lldb] [libc] [openmp] [libc++][span] P2821R5: span.at() (PR #74994)

2023-12-11 Thread Hristo Hristov via lldb-commits
https://github.com/H-G-Hristov updated https://github.com/llvm/llvm-project/pull/74994 >From 6e26ca239c49e1b7d9ab72217db7339e92df163f Mon Sep 17 00:00:00 2001 From: Zingam Date: Sun, 10 Dec 2023 14:16:02 +0200 Subject: [PATCH 01/12] [libc++][span] P2821R5: span.at() --- libcxx/include/span

[Lldb-commits] [lldb] [lldb-dap] Emit declarations along with variables (PR #74865)

2023-12-11 Thread Alex Langford via lldb-commits
https://github.com/bulbazord approved this pull request. https://github.com/llvm/llvm-project/pull/74865 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb-dap] Emit declarations along with variables (PR #74865)

2023-12-11 Thread Alex Langford via lldb-commits
bulbazord wrote: > > Is this extension to the protocol documented anywhere I can see? Or is this > > an ad-hoc thing? I think it would be useful to write down somewhere other > > than a commit message (in docs, comments, or otherwise) that this is an > > extension. > > @bulbazord , it's an

[Lldb-commits] [lldb] [lldb-dap] Include [opt] in the frame name only if a custom frame format is not specified. (PR #74861)

2023-12-11 Thread Alex Langford via lldb-commits
bulbazord wrote: > `{${function.is-optimized} [opt]}` is how is already is and can be done with > frame formats, so I agree with this patch that if the user customizes it, > they have complete control and we shouldn't add anything. Does everyone else > agree? I think I agree with this in

[Lldb-commits] [lldb] [lldb-dap] Emit declarations along with variables (PR #74865)

2023-12-11 Thread Walter Erquinigo via lldb-commits
walter-erquinigo wrote: > Is this extension to the protocol documented anywhere I can see? Or is this > an ad-hoc thing? I think it would be useful to write down somewhere other > than a commit message (in docs, comments, or otherwise) that this is an > extension. @bulbazord , it's an ad hoc

[Lldb-commits] [lldb] [llvm] [libc] [libcxx] [flang] [compiler-rt] [mlir] [clang-tools-extra] [openmp] [clang] [libc++][span] P2821R5: span.at() (PR #74994)

2023-12-11 Thread Hristo Hristov via lldb-commits
https://github.com/H-G-Hristov updated https://github.com/llvm/llvm-project/pull/74994 >From 6e26ca239c49e1b7d9ab72217db7339e92df163f Mon Sep 17 00:00:00 2001 From: Zingam Date: Sun, 10 Dec 2023 14:16:02 +0200 Subject: [PATCH 01/11] [libc++][span] P2821R5: span.at() --- libcxx/include/span

[Lldb-commits] [lldb] [lld] [llvm] [libc] [libcxx] [flang] [compiler-rt] [clang-tools-extra] [clang] [GlobalISel] Add G_PREFETCH (PR #74863)

2023-12-11 Thread Stanislav Mekhanoshin via lldb-commits
@@ -1209,6 +1209,15 @@ def G_FENCE : GenericInstruction { let hasSideEffects = true; } +// Generic opcode equivalent to the llvm.prefetch intrinsic. +def G_PREFETCH : GenericInstruction { + let OutOperandList = (outs); + let InOperandList = (ins ptype0:$address,

[Lldb-commits] [lldb] [lldb-dap] Emit declarations along with variables (PR #74865)

2023-12-11 Thread Alex Langford via lldb-commits
bulbazord wrote: Is this extension to the protocol documented anywhere I can see? Or is this an ad-hoc thing? I think it would be useful to write down somewhere other than a commit message (in docs, comments, or otherwise) that this is an extension.

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Michael Buch via lldb-commits
@@ -263,13 +252,6 @@ TagDecl *ClangASTSource::FindCompleteType(const TagDecl *decl) { TagDecl *candidate_tag_decl = const_cast(tag_type->getDecl()); - // We have found a type by basename and we need to make sure the decl - // contexts are the same before we

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Michael Buch via lldb-commits
@@ -64,6 +64,125 @@ bool lldb_private::contextMatches(llvm::ArrayRef context_chain, return true; } +static CompilerContextKind ConvertTypeClass(lldb::TypeClass type_class) { + if (type_class == eTypeClassAny) +return CompilerContextKind::AnyType; + uint16_t result =

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Michael Buch via lldb-commits
@@ -64,6 +64,125 @@ bool lldb_private::contextMatches(llvm::ArrayRef context_chain, return true; } +static CompilerContextKind ConvertTypeClass(lldb::TypeClass type_class) { + if (type_class == eTypeClassAny) +return CompilerContextKind::AnyType; + uint16_t result =

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Michael Buch via lldb-commits
https://github.com/Michael137 approved this pull request. LGTM (just left some small comments) https://github.com/llvm/llvm-project/pull/74786 ___ lldb-commits mailing list lldb-commits@lists.llvm.org

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Michael Buch via lldb-commits
https://github.com/Michael137 edited https://github.com/llvm/llvm-project/pull/74786 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][draft] All ValueObjectSP instances are now valid (non-null) but have an error state (PR #74912)

2023-12-11 Thread Adrian Prantl via lldb-commits
@@ -1984,84 +1984,75 @@ void ValueObject::GetExpressionPath(Stream , } } -ValueObjectSP ValueObject::GetValueForExpressionPath( -llvm::StringRef expression, ExpressionPathScanEndReason *reason_to_stop, -ExpressionPathEndResultType *final_value_type, +std::optional

[Lldb-commits] [mlir] [libc] [lld] [libcxxabi] [compiler-rt] [lldb] [llvm] [clang-tools-extra] [libunwind] [libcxx] [clang] [openmp] [flang] [C23] Implement N3018: The constexpr specifier for object d

2023-12-11 Thread Guillot Tony via lldb-commits
to268 wrote: I have found no major issues with the C23 `auto` keyword. There is a minor improvement that I've found in the test cases. Concerning N3006 (AKA: Underspecified object declarations), I haven't reviewed yet the compatibility with the `constexpr` keyword, since I haven't work much

[Lldb-commits] [openmp] [lldb] [llvm] [libcxx] [libc] [clang-tools-extra] [compiler-rt] [lld] [flang] [libcxxabi] [clang] [mlir] [libunwind] [C23] Implement N3018: The constexpr specifier for object d

2023-12-11 Thread Guillot Tony via lldb-commits
@@ -0,0 +1,287 @@ +// RUN: %clang_cc1 -std=c2x -verify -triple x86_64 -pedantic -Wno-conversion -Wno-constant-conversion -Wno-div-by-zero %s + +// Check that constexpr only applies to variables. +constexpr void f0() {} // expected-error {{'constexpr' can only be used in

[Lldb-commits] [mlir] [lldb] [openmp] [llvm] [clang] [libcxxabi] [compiler-rt] [clang-tools-extra] [flang] [libcxx] [MachineCopyPropagation] When the source of PreviousCopy is undef, we cannot replace

2023-12-11 Thread David Green via lldb-commits
davemgreen wrote: I don't believe the undef is the issue - I think the issue is that AArch64InstrInfo::isCopyInstrImpl is saying that a W-reg orr is a copy, even if it is really a zextend because the entire X output register is depended upon. Can you try and add something to isCopyInstImpl

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Michael Buch via lldb-commits
@@ -1446,23 +1446,23 @@ void SymbolFilePDB::AddSymbols(lldb_private::Symtab ) { symtab.Finalize(); } -void SymbolFilePDB::FindTypes( -lldb_private::ConstString name, const CompilerDeclContext _decl_ctx, -uint32_t max_matches, -llvm::DenseSet _symbol_files, -

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Michael Buch via lldb-commits
@@ -9070,6 +9070,66 @@ size_t TypeSystemClang::DeclGetFunctionNumArguments(void *opaque_decl) { return 0; } +static CompilerContextKind GetCompilerKind(clang::Decl::Kind clang_kind, + clang::DeclContext *decl_ctx) {

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Michael Buch via lldb-commits
@@ -1859,17 +1851,11 @@ lldb::SBTypeList SBTarget::FindTypes(const char *typename_cstr) { if (typename_cstr && typename_cstr[0] && target_sp) { ModuleList = target_sp->GetImages(); ConstString const_typename(typename_cstr); -bool exact_match = false; -

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Michael Buch via lldb-commits
@@ -12,33 +12,32 @@ class UniqueTypesTestCase4(TestBase): def do_test(self, debug_flags): """Test that we display the correct template instantiation.""" self.build(dictionary=debug_flags) +exe = self.getBuildArtifact("a.out") +print(exe)

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Michael Buch via lldb-commits
@@ -12,33 +12,32 @@ class UniqueTypesTestCase4(TestBase): def do_test(self, debug_flags): """Test that we display the correct template instantiation.""" self.build(dictionary=debug_flags) +exe = self.getBuildArtifact("a.out") +print(exe)

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Michael Buch via lldb-commits
@@ -12,33 +12,32 @@ class UniqueTypesTestCase4(TestBase): def do_test(self, debug_flags): """Test that we display the correct template instantiation.""" self.build(dictionary=debug_flags) +exe = self.getBuildArtifact("a.out") +print(exe)

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Michael Buch via lldb-commits
@@ -73,9 +73,22 @@ class DWARFDIE : public DWARFBaseDIE { std::vector GetDeclContextDIEs() const; /// Return this DIE's decl context as it is needed to look up types - /// in Clang's -gmodules debug info format. + /// in Clang modules. This context will include any

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Michael Buch via lldb-commits
@@ -12,33 +12,32 @@ class UniqueTypesTestCase4(TestBase): def do_test(self, debug_flags): """Test that we display the correct template instantiation.""" self.build(dictionary=debug_flags) +exe = self.getBuildArtifact("a.out") +print(exe)

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Michael Buch via lldb-commits
@@ -1696,16 +1696,16 @@ static size_t LookupTypeInModule(Target *target, CommandInterpreter , Stream , Module *module, const char *name_cstr, bool name_is_regex) { - TypeList

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Michael Buch via lldb-commits
@@ -146,6 +133,9 @@ class TypeSystem : public PluginInterface, virtual CompilerDeclContext GetCompilerDeclContextForType(const CompilerType ); + virtual std::vector + DeclContextGetCompilerContext(void *opaque_decl_ctx); Michael137 wrote: could this

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Michael Buch via lldb-commits
@@ -122,6 +106,9 @@ class TypeSystem : public PluginInterface, virtual CompilerType DeclGetFunctionArgumentType(void *opaque_decl, size_t arg_idx); + virtual std::vector + DeclGetCompilerContext(void *opaque_decl);

[Lldb-commits] [lldb] [lldb][NFC] Simplify DWARRFDeclContext::GetQualifiedName (PR #74788)

2023-12-11 Thread Felipe de Azevedo Piovezan via lldb-commits
https://github.com/felipepiovezan closed https://github.com/llvm/llvm-project/pull/74788 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] 06d6af7 - [lldb][NFC] Simplify DWARRFDeclContext::GetQualifiedName (#74788)

2023-12-11 Thread via lldb-commits
Author: Felipe de Azevedo Piovezan Date: 2023-12-11T11:16:36-03:00 New Revision: 06d6af72fb6f87cebe90ab96fa56fb88f53d5f66 URL: https://github.com/llvm/llvm-project/commit/06d6af72fb6f87cebe90ab96fa56fb88f53d5f66 DIFF:

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Michael Buch via lldb-commits
https://github.com/Michael137 edited https://github.com/llvm/llvm-project/pull/74786 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Michael Buch via lldb-commits
@@ -502,11 +499,8 @@ lldb::SBTypeList SBModule::FindTypes(const char *type) { retval.Append(SBType(compiler_type)); } } else { - for (size_t idx = 0; idx < type_list.GetSize(); idx++) { -TypeSP type_sp(type_list.GetTypeAtIndex(idx)); -

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Michael Buch via lldb-commits
@@ -45,6 +66,286 @@ struct CompilerContext { bool contextMatches(llvm::ArrayRef context_chain, llvm::ArrayRef pattern); +FLAGS_ENUM(TypeQueryOptions){ +e_none = 0u, +/// If set TypeQuery::m_context contains an exact context that must match +///

[Lldb-commits] [lldb] [lldb][NFC] Simplify DWARRFDeclContext::GetQualifiedName (PR #74788)

2023-12-11 Thread Michael Buch via lldb-commits
https://github.com/Michael137 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/74788 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Michael Buch via lldb-commits
@@ -437,26 +437,25 @@ lldb::SBType SBModule::FindFirstType(const char *name_cstr) { LLDB_INSTRUMENT_VA(this, name_cstr); ModuleSP module_sp(GetSP()); - if (!name_cstr || !module_sp) -return {}; - SymbolContext sc; - const bool exact_match = false; - ConstString

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Michael Buch via lldb-commits
@@ -437,26 +437,25 @@ lldb::SBType SBModule::FindFirstType(const char *name_cstr) { LLDB_INSTRUMENT_VA(this, name_cstr); ModuleSP module_sp(GetSP()); - if (!name_cstr || !module_sp) Michael137 wrote: why did we get rid of the early return here?

[Lldb-commits] [lldb] [lldb][NFC] Simplify DWARRFDeclContext::GetQualifiedName (PR #74788)

2023-12-11 Thread Felipe de Azevedo Piovezan via lldb-commits
https://github.com/felipepiovezan updated https://github.com/llvm/llvm-project/pull/74788 >From 19452a77fbaa8376686ae9fcdb6c675621f515d8 Mon Sep 17 00:00:00 2001 From: Felipe de Azevedo Piovezan Date: Thu, 7 Dec 2023 15:45:05 -0800 Subject: [PATCH] [lldb][NFC] Simplify

[Lldb-commits] [lldb] [lldb][NFC] Simplify DWARRFDeclContext::GetQualifiedName (PR #74788)

2023-12-11 Thread Felipe de Azevedo Piovezan via lldb-commits
https://github.com/felipepiovezan updated https://github.com/llvm/llvm-project/pull/74788 >From 5a5309c1c81fadb0378f1fa821798471f00f9b29 Mon Sep 17 00:00:00 2001 From: Felipe de Azevedo Piovezan Date: Thu, 7 Dec 2023 15:45:05 -0800 Subject: [PATCH] [lldb][NFC] Simplify

[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

2023-12-11 Thread Michael Buch via lldb-commits
@@ -45,6 +66,286 @@ struct CompilerContext { bool contextMatches(llvm::ArrayRef context_chain, llvm::ArrayRef pattern); +FLAGS_ENUM(TypeQueryOptions){ +e_none = 0u, +/// If set TypeQuery::m_context contains an exact context that must match +///

  1   2   >