[Lldb-commits] [lldb] [lldb] Implement basic support for reverse-continue (PR #112079)

2024-10-11 Thread Robert O'Callahan via lldb-commits
rocallahan wrote: I adapted the code from here https://github.com/llvm/llvm-project/blob/a62768c427ec1f34d7c3823021a6c5a794709103/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py#L516 into `lldbgdbproxy.py`: ``` +lldb_server_exe = lldbgdbserverutils.get_lldb_server

[Lldb-commits] [lldb] [lldb] Implement basic support for reverse-continue (PR #112079)

2024-10-11 Thread Med Ismail Bennani via lldb-commits
medismailben wrote: Answering https://github.com/llvm/llvm-project/pull/99736#issuecomment-2408387985 and https://github.com/llvm/llvm-project/pull/99736#issuecomment-2408398073here: > Is there a way to run the full post-merge CI test suite against a Github PR? Not that I'm aware of, unfortun

[Lldb-commits] [lldb] [lldb] Implement basic support for reverse-continue (PR #99736)

2024-10-11 Thread Med Ismail Bennani via lldb-commits
medismailben wrote: Answered in your new PR. https://github.com/llvm/llvm-project/pull/99736 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Implement basic support for reverse-continue (PR #99736)

2024-10-11 Thread Robert O'Callahan via lldb-commits
rocallahan wrote: > added @skipIfDarwin markers to the TestReverseContinueBreakpoints.py and > TestReverseContinueNotSupported.py API tests because lldb-server is not > supported in gdbserver mode on Darwin systems So there is no LLDB-based daemon that implements the gdbserver protocol on Dar

[Lldb-commits] [lldb] [lldb] Implement basic support for reverse-continue (PR #112079)

2024-10-11 Thread Robert O'Callahan via lldb-commits
https://github.com/rocallahan updated https://github.com/llvm/llvm-project/pull/112079 >From c373425ab4be848bb376d2710e13efafb6058d11 Mon Sep 17 00:00:00 2001 From: Robert O'Callahan Date: Fri, 19 Jul 2024 22:46:42 +1200 Subject: [PATCH] [lldb] Implement basic support for reverse-continue This

[Lldb-commits] [lldb] [lldb] Implement basic support for reverse-continue (PR #112079)

2024-10-11 Thread Robert O'Callahan via lldb-commits
https://github.com/rocallahan updated https://github.com/llvm/llvm-project/pull/112079 >From 9f33f8e5e0efb74772022c4ffadb65a6aefedf55 Mon Sep 17 00:00:00 2001 From: Robert O'Callahan Date: Fri, 19 Jul 2024 22:46:42 +1200 Subject: [PATCH] [lldb] Implement basic support for reverse-continue This

[Lldb-commits] [lldb] [lldb] Implement basic support for reverse-continue (PR #112079)

2024-10-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 79d695f049343c96eccbce9c06357256bc567be3...6bd33589417195eafe945f2d2f57b01352f56568 lldb/

[Lldb-commits] [lldb] [lldb] Implement basic support for reverse-continue (PR #112079)

2024-10-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 79d695f049343c96eccbce9c06357256bc567be3 6bd33589417195eafe945f2d2f57b01352f56568 --e

[Lldb-commits] [lldb] [lldb] Implement basic support for reverse-continue (PR #99736)

2024-10-11 Thread Robert O'Callahan via lldb-commits
rocallahan wrote: I have created a new PR #112079 to continue work on this. Is there a way to run the full post-merge CI test suite against a Github PR? https://github.com/llvm/llvm-project/pull/99736 ___ lldb-commits mailing list lldb-commits@lists.ll

[Lldb-commits] [lldb] [lldb] Implement basic support for reverse-continue (PR #112079)

2024-10-11 Thread Robert O'Callahan via lldb-commits
https://github.com/rocallahan edited https://github.com/llvm/llvm-project/pull/112079 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Implement basic support for reverse-continue (PR #112079)

2024-10-11 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Robert O'Callahan (rocallahan) Changes This commit only adds support for the `SBProcess::ReverseContinue()` API. A user-accessible command for this will follow in a later commit. This feature depends on a gdbserver implementation (e.g. `rr

[Lldb-commits] [lldb] [lldb] Implement basic support for reverse-continue (PR #112079)

2024-10-11 Thread Robert O'Callahan via lldb-commits
https://github.com/rocallahan created https://github.com/llvm/llvm-project/pull/112079 This commit only adds support for the `SBProcess::ReverseContinue()` API. A user-accessible command for this will follow in a later commit. This feature depends on a gdbserver implementation (e.g. `rr`) prov

[Lldb-commits] [lldb] [lldb] Rename CommandReturnObject::Get.*Data -> Get.*String (PR #112062)

2024-10-11 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben approved this pull request. Makes sense, LGTM! https://github.com/llvm/llvm-project/pull/112062 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Rename CommandReturnObject::Get.*Data -> Get.*String (PR #112062)

2024-10-11 Thread Adrian Prantl via lldb-commits
https://github.com/adrian-prantl updated https://github.com/llvm/llvm-project/pull/112062 >From c40bb5f2b7d8ac95faa14579cd55bd2885ea9705 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Fri, 11 Oct 2024 17:02:39 -0700 Subject: [PATCH] [lldb] Rename CommandReturnObject::Get.*Data -> Get.*Strin

[Lldb-commits] [lldb] [lldb] Rename CommandReturnObject::Get.*Data -> Get.*String (PR #112062)

2024-10-11 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Adrian Prantl (adrian-prantl) Changes In a later commit, I want to add a method to access diagnostics as actual structured data, which will make these function names rather confusing. --- Full diff: https://github.com/llvm/llvm-project/pul

[Lldb-commits] [lldb] [lldb] Rename CommandReturnObject::Get.*Data -> Get.*String (PR #112062)

2024-10-11 Thread Adrian Prantl via lldb-commits
https://github.com/adrian-prantl created https://github.com/llvm/llvm-project/pull/112062 In a later commit, I want to add a method to access diagnostics as actual structured data, which will make these function names rather confusing. >From e0f65d0a82d8ba5b7375b158a88e2680c4bf40c3 Mon Sep 17

[Lldb-commits] [lldb] Improve namespace lookup using .debug_names parent chain (PR #110062)

2024-10-11 Thread Greg Clayton via lldb-commits
@@ -565,6 +565,48 @@ void DebugNamesDWARFIndex::GetTypesWithQuery( m_fallback.GetTypesWithQuery(query, callback); } +void DebugNamesDWARFIndex::GetNamespacesWithParents( +ConstString name, const CompilerDeclContext &parent_decl_ctx, +llvm::function_ref callback) { +

[Lldb-commits] [lldb] Improve namespace lookup using .debug_names parent chain (PR #110062)

2024-10-11 Thread Greg Clayton via lldb-commits
@@ -71,6 +71,14 @@ class DWARFIndex { virtual void GetTypesWithQuery(TypeQuery &query, llvm::function_ref callback); + /// Get namespace DIEs whose base name match \param name with \param clayborg wrote: This comment is out of date now

[Lldb-commits] [lldb] Improve namespace lookup using .debug_names parent chain (PR #110062)

2024-10-11 Thread Greg Clayton via lldb-commits
@@ -151,3 +151,19 @@ bool DWARFIndex::ProcessTypeDIEMatchQuery( return true; return callback(die); } + +void DWARFIndex::GetNamespacesWithParents( +ConstString name, const CompilerDeclContext &parent_decl_ctx, +llvm::function_ref callback) { + GetNamespaces(name,

[Lldb-commits] [lldb] Improve namespace lookup using .debug_names parent chain (PR #110062)

2024-10-11 Thread Greg Clayton via lldb-commits
@@ -565,6 +565,48 @@ void DebugNamesDWARFIndex::GetTypesWithQuery( m_fallback.GetTypesWithQuery(query, callback); } +void DebugNamesDWARFIndex::GetNamespacesWithParents( +ConstString name, const CompilerDeclContext &parent_decl_ctx, +llvm::function_ref callback) { +

[Lldb-commits] [lldb] [llvm] [lldb] Move SBLanguages.h out of API tree (PR #111929)

2024-10-11 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben updated https://github.com/llvm/llvm-project/pull/111929 >From 82b48c688943a3e2a61288a08955148a2d240952 Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Fri, 11 Oct 2024 14:55:03 -0700 Subject: [PATCH] [lldb] Move SBLanguages.h out of API tree This patch

[Lldb-commits] [lldb] [lldb] Log errors to the system log if they would otherwise get dropped (PR #111911)

2024-10-11 Thread Jonas Devlieghere via lldb-commits
JDevlieghere wrote: > So, I have a couple of thoughts: > > * the system log currently writes to stdout on windows. This was sort of > okay, when we were writing there only sporadically, but I think piping all of > that here would make lldb unusable. If we want to go down this path, I think >

[Lldb-commits] [lldb] [lldb] Make the system log a NOOP on Windows (PR #112052)

2024-10-11 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Jonas Devlieghere (JDevlieghere) Changes Windows doesn't have a built-in system log. Previously we got away with writing to stdout and stderr because it was used only sporadically. As we're trying to make the system log more useful on the

[Lldb-commits] [lldb] [lldb] Make the system log a NOOP on Windows (PR #112052)

2024-10-11 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere created https://github.com/llvm/llvm-project/pull/112052 Windows doesn't have a built-in system log. Previously we got away with writing to stdout and stderr because it was used only sporadically. As we're trying to make the system log more useful on the other p

[Lldb-commits] [lldb] [llvm] [lldb] Move SBLanguages.h out of API tree (PR #111929)

2024-10-11 Thread Med Ismail Bennani via lldb-commits
@@ -71,7 +70,7 @@ class LLDB_API SBExpressionOptions { /// Set the language using a pair of language code and version as /// defined by the DWARF 6 specification. /// WARNING: These codes may change until DWARF 6 is finalized. - void SetLanguage(lldb::SBSourceLanguageNam

[Lldb-commits] [lldb] [LLDB] FindLibCppStdFunctionCallableInfo improvements (PR #111892)

2024-10-11 Thread David Mentler via lldb-commits
https://github.com/mentlerd updated https://github.com/llvm/llvm-project/pull/111892 >From b1e6178b1130135262884d99262716fcc0ada86e Mon Sep 17 00:00:00 2001 From: David Mentler Date: Mon, 7 Oct 2024 21:46:50 +0200 Subject: [PATCH 1/8] Make existing tests break --- .../data-formatter-stl/libcx

[Lldb-commits] [lldb] [llvm] [lldb] Move SBLanguages.h out of API tree (PR #111929)

2024-10-11 Thread via lldb-commits
@@ -71,7 +70,7 @@ class LLDB_API SBExpressionOptions { /// Set the language using a pair of language code and version as /// defined by the DWARF 6 specification. /// WARNING: These codes may change until DWARF 6 is finalized. - void SetLanguage(lldb::SBSourceLanguageNam

[Lldb-commits] [lldb] [llvm] [lldb] Move SBLanguages.h out of API tree (PR #111929)

2024-10-11 Thread via lldb-commits
jimingham wrote: I would feel a little worse about that if the API didn't explicitly say that the values of the enum might change meanings. So it explicitly says it isn't stable... https://github.com/llvm/llvm-project/pull/111929 ___ lldb-commits ma

[Lldb-commits] [clang] [flang] [libc] [libcxx] [libcxxabi] [libunwind] [lldb] [llvm] [mlir] [clang][frontend] Add support for attribute plugins for statement attributes (PR #110334)

2024-10-11 Thread Eric Astor via lldb-commits
Valentin Clement =?utf-8?b?KOODkOODrOODsw=?=,Renato Golin ,Eric Astor Message-ID: In-Reply-To: https://github.com/ericastor closed https://github.com/llvm/llvm-project/pull/110334 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lis

[Lldb-commits] [lldb] [lldb] Speed up FindInMemory tests (PR #111951)

2024-10-11 Thread Igor Kudrin via lldb-commits
@@ -6,27 +6,30 @@ UNALIGNED_INSTANCE_PATTERN_HEAP = ALIGNED_INSTANCE_PATTERN_HEAP[1:] -def GetAlignedRange(test_base): +def GetAlignedRange(test_base, shrink=False): frame = test_base.thread.GetSelectedFrame() ex = frame.EvaluateExpression("aligned_string_ptr")

[Lldb-commits] [lldb] [lldb] Add early CMake check for 'make' tool (PR #111531)

2024-10-11 Thread via lldb-commits
Stefan =?utf-8?q?Gränitz?= , Stefan =?utf-8?q?Gränitz?= , Stefan =?utf-8?q?Gränitz?= , Stefan =?utf-8?q?Gränitz?= , Stefan =?utf-8?q?Gränitz?= , Stefan =?utf-8?q?Gränitz?= Message-ID: In-Reply-To: zeroomega wrote: > > Not all lldb tests require `make` to run and it feels wrong to me to > > ma

[Lldb-commits] [lldb] [lldb] Add early CMake check for 'make' tool (PR #111531)

2024-10-11 Thread Jonas Devlieghere via lldb-commits
Stefan =?utf-8?q?Gränitz?= , Stefan =?utf-8?q?Gränitz?= , Stefan =?utf-8?q?Gränitz?= , Stefan =?utf-8?q?Gränitz?= , Stefan =?utf-8?q?Gränitz?= , Stefan =?utf-8?q?Gränitz?= Message-ID: In-Reply-To: JDevlieghere wrote: > Not all lldb tests require `make` to run and it feels wrong to me to mandat

[Lldb-commits] [lldb] [lldb] Add early CMake check for 'make' tool (PR #111531)

2024-10-11 Thread via lldb-commits
Stefan =?utf-8?q?Gränitz?= , Stefan =?utf-8?q?Gränitz?= , Stefan =?utf-8?q?Gränitz?= , Stefan =?utf-8?q?Gränitz?= , Stefan =?utf-8?q?Gränitz?= , Stefan =?utf-8?q?Gränitz?= Message-ID: In-Reply-To: zeroomega wrote: Hi, I noticed that our LLDB Windows builders all failed after this change is la

[Lldb-commits] [lldb] [lldb] Fix finding make tool for tests (PR #111980)

2024-10-11 Thread via lldb-commits
zeroomega wrote: Hi, I noticed that our LLDB Windows builders all failed after this change is landed: ``` CMake Error at C:/b/s/w/ir/x/w/llvm-llvm-project/lldb/test/API/CMakeLists.txt:60 (message): LLDB tests require 'make' tool. Please pass via `LLDB_TEST_MAKE` (or otherwise disable te

[Lldb-commits] [lldb] [llvm] [lldb] Move SBLanguages.h out of API tree (PR #111929)

2024-10-11 Thread Alex Langford via lldb-commits
@@ -71,7 +70,7 @@ class LLDB_API SBExpressionOptions { /// Set the language using a pair of language code and version as /// defined by the DWARF 6 specification. /// WARNING: These codes may change until DWARF 6 is finalized. - void SetLanguage(lldb::SBSourceLanguageNam

[Lldb-commits] [lldb] [llvm] [lldb] Move SBLanguages.h out of API tree (PR #111929)

2024-10-11 Thread Alex Langford via lldb-commits
https://github.com/bulbazord requested changes to this pull request. https://github.com/llvm/llvm-project/pull/111929 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [LLDB] FindLibCppStdFunctionCallableInfo improvements (PR #111892)

2024-10-11 Thread David Mentler via lldb-commits
mentlerd wrote: > A high-level comment: could we split up `FindLibCppStdFunctionCallableInfo`? > Exactly how I haven't fully thought through. But possibly a function for each > of the callable cases? Sure! I think a natural split could be to make a version which returns a (possibly dummy) `Va

[Lldb-commits] [lldb] [lldb] Speed up FindInMemory tests (PR #111951)

2024-10-11 Thread Alex Langford via lldb-commits
@@ -6,27 +6,30 @@ UNALIGNED_INSTANCE_PATTERN_HEAP = ALIGNED_INSTANCE_PATTERN_HEAP[1:] -def GetAlignedRange(test_base): +def GetAlignedRange(test_base, shrink=False): frame = test_base.thread.GetSelectedFrame() ex = frame.EvaluateExpression("aligned_string_ptr")

[Lldb-commits] [lldb] [LLDB] FindLibCppStdFunctionCallableInfo improvements (PR #111892)

2024-10-11 Thread David Mentler via lldb-commits
@@ -174,6 +174,233 @@ CPPLanguageRuntime::FindLibCppStdFunctionCallableInfo( if (!valobj_sp) return optional_info; + // std::function has many variants, try to disambiguate + ValueObjectSP func_as_base_ptr; + { +ValueObjectSP outer_f = valobj_sp->GetChildMemberWit

[Lldb-commits] [lldb] [LLDB] FindLibCppStdFunctionCallableInfo improvements (PR #111892)

2024-10-11 Thread David Mentler via lldb-commits
@@ -174,6 +174,233 @@ CPPLanguageRuntime::FindLibCppStdFunctionCallableInfo( if (!valobj_sp) return optional_info; + // std::function has many variants, try to disambiguate + ValueObjectSP func_as_base_ptr; + { +ValueObjectSP outer_f = valobj_sp->GetChildMemberWit

[Lldb-commits] [lldb] [LLDB] FindLibCppStdFunctionCallableInfo improvements (PR #111892)

2024-10-11 Thread David Mentler via lldb-commits
@@ -191,14 +191,6 @@ llvm::Error ItaniumABILanguageRuntime::TypeHasVTable(CompilerType type) { type = pointee_type; } - // Make sure this is a class or a struct first by checking the type class - // bitfield that gets returned. - if ((type.GetTypeClass() & (eTypeCl

[Lldb-commits] [lldb] [LLDB] FindLibCppStdFunctionCallableInfo improvements (PR #111892)

2024-10-11 Thread David Mentler via lldb-commits
@@ -174,6 +174,233 @@ CPPLanguageRuntime::FindLibCppStdFunctionCallableInfo( if (!valobj_sp) return optional_info; + // std::function has many variants, try to disambiguate + ValueObjectSP func_as_base_ptr; + { +ValueObjectSP outer_f = valobj_sp->GetChildMemberWit

[Lldb-commits] [lldb] [lldb] Add include for SBLanguages in lldb-enumerations (PR #111907)

2024-10-11 Thread Med Ismail Bennani via lldb-commits
medismailben wrote: > > I agree with that, but the argument here was going the other way. > > lldb-enumerations.h are a base set of enumerations that anybody using LLDB, > > either lldb_private or the SB API's are free to use. But the SB API's are > > purely wrappers around lldb_private API's,

[Lldb-commits] [lldb] [lldb] Add include for SBLanguages in lldb-enumerations (PR #111907)

2024-10-11 Thread Alex Langford via lldb-commits
bulbazord wrote: > I agree with that, but the argument here was going the other way. > lldb-enumerations.h are a base set of enumerations that anybody using LLDB, > either lldb_private or the SB API's are free to use. But the SB API's are > purely wrappers around lldb_private API's, and so sho

[Lldb-commits] [lldb] [llvm] [lldb] Move SBLanguages.h out of API tree (PR #111929)

2024-10-11 Thread Med Ismail Bennani via lldb-commits
medismailben wrote: > I'm just wondering, would this patch run into the same issue that I ran into > on #111907 where this could cause a clean build to fail since the > `SourceLangugageNames` file wouldn't be generated before it gets included in > `lldb-enumerations.h`? Possibly, we'll see wh

[Lldb-commits] [lldb] [llvm] [lldb] Move SBLanguages.h out of API tree (PR #111929)

2024-10-11 Thread Chelsea Cassanova via lldb-commits
chelcassanova wrote: I'm just wondering, would this patch run into the same issue that I ran into on https://github.com/llvm/llvm-project/pull/111907 where this could cause a clean build to fail since the `SourceLangugageNames` file wouldn't be generated before it gets included in `lldb-enumer

[Lldb-commits] [lldb] [LLDB]Provide clearer error message for invalid commands. (PR #111891)

2024-10-11 Thread via lldb-commits
@@ -70,6 +70,8 @@ class CommandObjectMultiword : public CommandObject { return m_subcommand_dict; } + std::string GetTopSubcommands(int count); jimingham wrote: It would have to be really clear that's what we were doing, however. If you saw this list

[Lldb-commits] [lldb] Improve namespace lookup using .debug_names parent chain (PR #110062)

2024-10-11 Thread Felipe de Azevedo Piovezan via lldb-commits
@@ -565,6 +565,48 @@ void DebugNamesDWARFIndex::GetTypesWithQuery( m_fallback.GetTypesWithQuery(query, callback); } +void DebugNamesDWARFIndex::GetNamespacesWithParents( +ConstString name, const CompilerDeclContext &parent_decl_ctx, +llvm::function_ref callback) { +

[Lldb-commits] [lldb] [lldb] Implement basic support for reverse-continue (PR #99736)

2024-10-11 Thread David Spickett via lldb-commits
DavidSpickett wrote: Also X86 may support the memory allocation packets and not need to call mmap to get JIT memory. So if making it a function call doesn't reproduce it, try hacking out support for `_M`. https://github.com/llvm/llvm-project/pull/99736 _

[Lldb-commits] [lldb] [lldb] Implement basic support for reverse-continue (PR #99736)

2024-10-11 Thread David Spickett via lldb-commits
DavidSpickett wrote: The problem is not to do with the debug symbols, or it being a "properly remote" connection due to the proxy and that messing up search paths. It's because evaluating an expression using JIT requires us to send a `vCont` and something goes wrong there, it appears to be mis

[Lldb-commits] [lldb] Support inline diagnostics in CommandReturnObject (PR #110901)

2024-10-11 Thread Adrian Prantl via lldb-commits
https://github.com/adrian-prantl closed https://github.com/llvm/llvm-project/pull/110901 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] 089227f - Support inline diagnostics in CommandReturnObject (#110901)

2024-10-11 Thread via lldb-commits
Author: Adrian Prantl Date: 2024-10-11T09:08:52-07:00 New Revision: 089227feaf0efb5e540783a5542655e25669e7d8 URL: https://github.com/llvm/llvm-project/commit/089227feaf0efb5e540783a5542655e25669e7d8 DIFF: https://github.com/llvm/llvm-project/commit/089227feaf0efb5e540783a5542655e25669e7d8.diff

[Lldb-commits] [lldb] [lldb] Implement basic support for reverse-continue (PR #99736)

2024-10-11 Thread David Spickett via lldb-commits
@@ -0,0 +1,418 @@ +import os +import os.path +import lldb +from lldbsuite.test.lldbtest import * +from lldbsuite.test.gdbclientutils import * +from lldbsuite.test.lldbgdbproxy import * +import lldbgdbserverutils +import re + + +class ThreadSnapshot: +def __init__(self, thread_

[Lldb-commits] [lldb] [LLDB]Provide clearer error message for invalid commands. (PR #111891)

2024-10-11 Thread Vy Nguyen via lldb-commits
https://github.com/oontvoo updated https://github.com/llvm/llvm-project/pull/111891 >From 4493bf07c8b18dac39a2a421f97fa34cd15a6031 Mon Sep 17 00:00:00 2001 From: Vy Nguyen Date: Thu, 10 Oct 2024 14:48:08 -0400 Subject: [PATCH 1/2] [LLDB]Provide clearer error message for invalid commands. Somet

[Lldb-commits] [lldb] [LLDB]Provide clearer error message for invalid commands. (PR #111891)

2024-10-11 Thread Vy Nguyen via lldb-commits
@@ -194,28 +194,50 @@ void CommandObjectMultiword::Execute(const char *args_string, std::string error_msg; const size_t num_subcmd_matches = matches.GetSize(); - if (num_subcmd_matches > 0) + if (num_subcmd_matches > 0) { error_msg.assign("ambiguous command "); -

[Lldb-commits] [clang] [flang] [libc] [libcxx] [libcxxabi] [libunwind] [lldb] [llvm] [mlir] [clang][frontend] Add support for attribute plugins for statement attributes (PR #110334)

2024-10-11 Thread Aaron Ballman via lldb-commits
Valentin Clement =?utf-8?b?KOODkOODrOODsw=?=,Renato Golin Message-ID: In-Reply-To: https://github.com/AaronBallman approved this pull request. LGTM, though we should probably add a release note to clang/docs/ReleaseNotes.rst so users know that the plugin system got a bit more functionality.

[Lldb-commits] [lldb] [LLDB]Provide clearer error message for invalid commands. (PR #111891)

2024-10-11 Thread Vy Nguyen via lldb-commits
@@ -194,28 +194,50 @@ void CommandObjectMultiword::Execute(const char *args_string, std::string error_msg; const size_t num_subcmd_matches = matches.GetSize(); - if (num_subcmd_matches > 0) + if (num_subcmd_matches > 0) { error_msg.assign("ambiguous command "); -

[Lldb-commits] [lldb] [LLDB]Provide clearer error message for invalid commands. (PR #111891)

2024-10-11 Thread Vy Nguyen via lldb-commits
@@ -70,6 +70,8 @@ class CommandObjectMultiword : public CommandObject { return m_subcommand_dict; } + std::string GetTopSubcommands(int count); oontvoo wrote: Will rename this to Jim's suggestion. I like Pavel's idea of having this returning the popula

[Lldb-commits] [lldb] [lldb] Implement basic support for reverse-continue (PR #99736)

2024-10-11 Thread David Spickett via lldb-commits
DavidSpickett wrote: The only info I can get out of the call to `__mmap` is that it's frame 0 is at `0x` aka "the process died for some reason". I'm thinking that something is preventing us finding the debug info files because this is a "remote" not a local server, haven't found what y

[Lldb-commits] [lldb] [LLDB]Provide clearer error message for invalid commands. (PR #111891)

2024-10-11 Thread Vy Nguyen via lldb-commits
https://github.com/oontvoo updated https://github.com/llvm/llvm-project/pull/111891 >From 4493bf07c8b18dac39a2a421f97fa34cd15a6031 Mon Sep 17 00:00:00 2001 From: Vy Nguyen Date: Thu, 10 Oct 2024 14:48:08 -0400 Subject: [PATCH] [LLDB]Provide clearer error message for invalid commands. Sometimes

[Lldb-commits] [lldb] [lldb] Implement basic support for reverse-continue (PR #99736)

2024-10-11 Thread David Spickett via lldb-commits
DavidSpickett wrote: So on x86, either `false_condition` doesn't require JIT, or it does and the mmap found is fine. I tried changing it to `0` or `false`, and while this will fall back to an interpreter, the lldb-server appears to have already died by the time that finishes. https://github.c

[Lldb-commits] [lldb] [lldb] Implement basic support for reverse-continue (PR #99736)

2024-10-11 Thread David Spickett via lldb-commits
DavidSpickett wrote: This is something to do with evaluating `false_condition`. With a normal session we see these libraries: ``` (lldb) image list [ 0] 371298DF 0xa000 /home/david.spickett/build-llvm-aarch64/lldb-test-build.noindex/functionalities/reverse-execution/TestReverseCont

[Lldb-commits] [lldb] [lldb] Fix finding make tool for tests (PR #111980)

2024-10-11 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett closed https://github.com/llvm/llvm-project/pull/111980 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] a2bd5db - [lldb] Fix finding make tool for tests (#111980)

2024-10-11 Thread via lldb-commits
Author: David Spickett Date: 2024-10-11T14:14:04+01:00 New Revision: a2bd5db00d07bc28fcfb3350b9d50e72e6350cba URL: https://github.com/llvm/llvm-project/commit/a2bd5db00d07bc28fcfb3350b9d50e72e6350cba DIFF: https://github.com/llvm/llvm-project/commit/a2bd5db00d07bc28fcfb3350b9d50e72e6350cba.diff

[Lldb-commits] [lldb] [lldb] Fix finding make tool for tests (PR #111980)

2024-10-11 Thread David Spickett via lldb-commits
DavidSpickett wrote: I don't think so, it's used to generate dotest.py on all platforms I think. Perhaps my cmake is being strict / less strict? The funny thing is, I can see `LLDB_TEST_MAKE` set in the cache even when the build breaks. https://github.com/llvm/llvm-project/pull/111980

[Lldb-commits] [lldb] [lldb] Fix finding make tool for tests (PR #111980)

2024-10-11 Thread Stefan Gränitz via lldb-commits
https://github.com/weliveindetail approved this pull request. Interesting! Your changes look fine, as they are symmetric with what we do here for dsymutil. I just wonder why I didn't hit that. Is this a separate test driver for Linux? https://github.com/llvm/llvm-project/pull/111980 __

[Lldb-commits] [lldb] [lldb] Fix finding make tool for tests (PR #111980)

2024-10-11 Thread David Spickett via lldb-commits
DavidSpickett wrote: Putting this in review because I've zero idea why this fixes it. Without it I get this on a rebuild: ``` Traceback (most recent call last): File "/home/david.spickett/llvm-project/lldb/test/API/functionalities/reverse-execution/TestReverseContinueBreakpoints.py", line 67

[Lldb-commits] [lldb] [lldb] Fix finding make tool for tests (PR #111980)

2024-10-11 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: David Spickett (DavidSpickett) Changes Fixes 0e913237871e8c9290e82be30be8b3484952eee0 / https://github.com/llvm/llvm-project/pull/111531 For reasons I can't explain, a clean build works fine for me, and all the bots are working fine. But

[Lldb-commits] [lldb] [lldb] Fix finding make tool for tests (PR #111980)

2024-10-11 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett created https://github.com/llvm/llvm-project/pull/111980 Fixes 0e913237871e8c9290e82be30be8b3484952eee0 / https://github.com/llvm/llvm-project/pull/111531 For reasons I can't explain, a clean build works fine for me, and all the bots are working fine. But if I

[Lldb-commits] [lldb] d941254 - [lldb][test] Fix var name typo in TestProcessSaveCoreMinidump

2024-10-11 Thread David Spickett via lldb-commits
Author: David Spickett Date: 2024-10-11T11:00:07Z New Revision: d941254da94c8a5897689a74012a57de279c2c9e URL: https://github.com/llvm/llvm-project/commit/d941254da94c8a5897689a74012a57de279c2c9e DIFF: https://github.com/llvm/llvm-project/commit/d941254da94c8a5897689a74012a57de279c2c9e.diff LOG

[Lldb-commits] [lldb] [lldb][test] Remove objcopy detection from API tests' CMakeLists.txt (PR #111977)

2024-10-11 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Vladislav Dzhidzhoev (dzhidzhoev) Changes This commit essentially reverts https://reviews.llvm.org/D30453. In #109961, objcopy util search code was added to dotest.py. dotest.py should use llvm-X by default if no path to a utility X is pro

[Lldb-commits] [lldb] [lldb][test] Remove objcopy detection from API tests' CMakeLists.txt (PR #111977)

2024-10-11 Thread Vladislav Dzhidzhoev via lldb-commits
https://github.com/dzhidzhoev created https://github.com/llvm/llvm-project/pull/111977 This commit essentially reverts https://reviews.llvm.org/D30453. In #109961, objcopy util search code was added to dotest.py. dotest.py should use llvm-X by default if no path to a utility X is provided exte

[Lldb-commits] [clang] [lldb] [clang][RecordLayoutBuilder] Be stricter about inferring packed-ness in ExternalLayouts (PR #97443)

2024-10-11 Thread Pavel Labath via lldb-commits
labath wrote: > (btw, @labath is the alignment miscalculation still causing issues for you > internally? or did you find a workaround?) The fire has been extinguished by #110648, but it's not ideal that any structure with a [[no_unique_address]] is treated as packed. It's not causing any issu

[Lldb-commits] [lldb] [lldb] Implement basic support for reverse-continue (PR #99736)

2024-10-11 Thread David Spickett via lldb-commits
DavidSpickett wrote: Failed on Arm and AArch64: ``` FAIL: LLDB (/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/bin/clang-aarch64) :: test_reverse_continue_skip_breakpoint (TestReverseContinueBreakpoints.TestReverseContinueBreakpoints) lldb-server exiting... error: stopped due to an error

[Lldb-commits] [lldb] [lldb][test] Fixed the test `no_unique_address-with-bitfields` (PR #111902)

2024-10-11 Thread Michael Buch via lldb-commits
Michael137 wrote: Can we do this for all the `no_unique_address-...` tests? Would be nice if they were all in the same place. I'm not sure I added `--target` in all of them, but probably should? https://github.com/llvm/llvm-project/pull/111902 ___ ll

[Lldb-commits] [lldb] [lldb][test] Use `xcrun -f strip` for API tests on Darwin (PR #111842)

2024-10-11 Thread Michael Buch via lldb-commits
Michael137 wrote: > So does that mean that the `strip` coming with xcode is not `llvm-strip` ? I > did not expect that.. > > I don't suppose anyone has any background on this that they can share? :) Yea pretty sure it's not. Just based on the options it accepts, etc. Someone else might have mo

[Lldb-commits] [clang] [lldb] [clang][RecordLayoutBuilder] Be stricter about inferring packed-ness in ExternalLayouts (PR #97443)

2024-10-11 Thread Michael Buch via lldb-commits
Michael137 wrote: ping (btw, @labath is the alignment miscalculation still causing issues for you internally? or did you find a workaround?) https://github.com/llvm/llvm-project/pull/97443 ___ lldb-commits mailing list lldb-commits@lists.llvm.org htt

[Lldb-commits] [lldb] b222f31 - [lldb][test] Fixed the test `no_unique_address-with-bitfields` (#111902)

2024-10-11 Thread via lldb-commits
Author: Dmitry Vasilyev Date: 2024-10-11T12:56:42+04:00 New Revision: b222f319306a9cad9ac11183b7036ff45097c26f URL: https://github.com/llvm/llvm-project/commit/b222f319306a9cad9ac11183b7036ff45097c26f DIFF: https://github.com/llvm/llvm-project/commit/b222f319306a9cad9ac11183b7036ff45097c26f.dif

[Lldb-commits] [lldb] [lldb][test] Fixed the test `no_unique_address-with-bitfields` (PR #111902)

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

[Lldb-commits] [lldb] [lldb] Only send "posix" error codes through the gdb-remote protocol (PR #108170)

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

[Lldb-commits] [lldb] [lldb][test] Fixed the test `no_unique_address-with-bitfields` (PR #111902)

2024-10-11 Thread Pavel Labath via lldb-commits
https://github.com/labath approved this pull request. https://github.com/llvm/llvm-project/pull/111902 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][AIX] Added XCOFF Object File Header for AIX (PR #111814)

2024-10-11 Thread Pavel Labath via lldb-commits
labath wrote: > > A couple of quick notes: > > > > * are you sure that ObjectFileELF is the best thing to start with here? > > Based on the name, I would expect that ObjectFilePECOFF would be a better > > baseline. Or maybe the object file format is different enough from all of > > the existi

[Lldb-commits] [lldb] [lldb][test] Fixed the test `no_unique_address-with-bitfields` (PR #111902)

2024-10-11 Thread Dmitry Vasilyev via lldb-commits
slydiman wrote: > The right fix is to move this test into the x86 subdir. Done. https://github.com/llvm/llvm-project/pull/111902 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][test] Fixed the test `no_unique_address-with-bitfields` (PR #111902)

2024-10-11 Thread Dmitry Vasilyev via lldb-commits
https://github.com/slydiman updated https://github.com/llvm/llvm-project/pull/111902 >From 7827659341b5633d8e555f7ea783a36a1fa0b574 Mon Sep 17 00:00:00 2001 From: Dmitry Vasilyev Date: Thu, 10 Oct 2024 23:37:57 +0400 Subject: [PATCH] [lldb][test] Fixed the test `no_unique_address-with-bitfield

[Lldb-commits] [lldb] [lldb][test] Use `xcrun -f strip` for API tests on Darwin (PR #111842)

2024-10-11 Thread Pavel Labath via lldb-commits
labath wrote: So does that mean that the `strip` coming with xcode is not `llvm-strip` ? I did not expect that.. I don't suppose anyone has any background on this that they can share? :) https://github.com/llvm/llvm-project/pull/111842 ___ lldb-commi

[Lldb-commits] [lldb] [lldb] Lookup static const members in FindGlobalVariables (PR #111859)

2024-10-11 Thread Pavel Labath via lldb-commits
https://github.com/labath commented: I think this is a very interesting patch and, at some point, I wanted to do something similar as well. At the same time, I am somewhat worried about the performance impact of the extra lookups. I think we may want to implement this in a slightly different ma

[Lldb-commits] [lldb] [LLDB] FindLibCppStdFunctionCallableInfo improvements (PR #111892)

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

[Lldb-commits] [lldb] [LLDB] FindLibCppStdFunctionCallableInfo improvements (PR #111892)

2024-10-11 Thread Michael Buch via lldb-commits
@@ -174,6 +174,233 @@ CPPLanguageRuntime::FindLibCppStdFunctionCallableInfo( if (!valobj_sp) return optional_info; + // std::function has many variants, try to disambiguate + ValueObjectSP func_as_base_ptr; + { +ValueObjectSP outer_f = valobj_sp->GetChildMemberWit

[Lldb-commits] [lldb] [LLDB] FindLibCppStdFunctionCallableInfo improvements (PR #111892)

2024-10-11 Thread Michael Buch via lldb-commits
@@ -174,6 +174,233 @@ CPPLanguageRuntime::FindLibCppStdFunctionCallableInfo( if (!valobj_sp) return optional_info; + // std::function has many variants, try to disambiguate + ValueObjectSP func_as_base_ptr; + { +ValueObjectSP outer_f = valobj_sp->GetChildMemberWit

[Lldb-commits] [lldb] [LLDB] FindLibCppStdFunctionCallableInfo improvements (PR #111892)

2024-10-11 Thread Michael Buch via lldb-commits
@@ -174,6 +174,233 @@ CPPLanguageRuntime::FindLibCppStdFunctionCallableInfo( if (!valobj_sp) return optional_info; + // std::function has many variants, try to disambiguate + ValueObjectSP func_as_base_ptr; + { +ValueObjectSP outer_f = valobj_sp->GetChildMemberWit

[Lldb-commits] [lldb] [LLDB] FindLibCppStdFunctionCallableInfo improvements (PR #111892)

2024-10-11 Thread Michael Buch via lldb-commits
@@ -174,6 +174,233 @@ CPPLanguageRuntime::FindLibCppStdFunctionCallableInfo( if (!valobj_sp) return optional_info; + // std::function has many variants, try to disambiguate + ValueObjectSP func_as_base_ptr; + { +ValueObjectSP outer_f = valobj_sp->GetChildMemberWit

[Lldb-commits] [lldb] [LLDB] FindLibCppStdFunctionCallableInfo improvements (PR #111892)

2024-10-11 Thread Michael Buch via lldb-commits
@@ -191,14 +191,6 @@ llvm::Error ItaniumABILanguageRuntime::TypeHasVTable(CompilerType type) { type = pointee_type; } - // Make sure this is a class or a struct first by checking the type class - // bitfield that gets returned. - if ((type.GetTypeClass() & (eTypeCl

[Lldb-commits] [lldb] [LLDB] FindLibCppStdFunctionCallableInfo improvements (PR #111892)

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

[Lldb-commits] [lldb] [LLDB] FindLibCppStdFunctionCallableInfo improvements (PR #111892)

2024-10-11 Thread Michael Buch via lldb-commits
https://github.com/Michael137 commented: Thanks for putting this together! Looks like non-trivial amount of investigation. On the first pass, I think this seems like a reasonable (and more maintainable) alternative to what we're currently doing. Using the `TypeSystem` to fish out the various

[Lldb-commits] [lldb] [lldb] Introduce an always-on system log category/channel (PR #108495)

2024-10-11 Thread antoine moynault via lldb-commits
antmox wrote: Hi, could this patch be the cause of lldb-aarch64-windows bot failure ? https://lab.llvm.org/buildbot/#/builders/141/builds/3100 https://github.com/llvm/llvm-project/pull/108495 ___ lldb-commits mailing list lldb-commits@lists.llvm.org ht

[Lldb-commits] [lldb] [lldb] Fix and re-enable TestUseSourceCache.py (PR #111237)

2024-10-11 Thread Pavel Labath via lldb-commits
labath wrote: > > With this in mind, deleting the file is representative of an editor wanting > > to save the file using the deletion strategy,... > > Yes. I had meant it is not representative of what Android Studio (or _some_ > > editors) does. > > > think it's not our goal here to ensure the

[Lldb-commits] [lldb] [LLDB]Provide clearer error message for invalid commands. (PR #111891)

2024-10-11 Thread Pavel Labath via lldb-commits
@@ -194,28 +194,50 @@ void CommandObjectMultiword::Execute(const char *args_string, std::string error_msg; const size_t num_subcmd_matches = matches.GetSize(); - if (num_subcmd_matches > 0) + if (num_subcmd_matches > 0) { error_msg.assign("ambiguous command "); -

[Lldb-commits] [lldb] [LLDB]Provide clearer error message for invalid commands. (PR #111891)

2024-10-11 Thread Pavel Labath via lldb-commits
@@ -3,8 +3,10 @@ # RUN: %clang_host -g -O0 %S/Inputs/main.c -o %t.out # RUN: %lldb -b -o 'help breakpoint set' -o 'breakpoint set -f main.c -l 2 -u 21' %t.out | FileCheck %s --check-prefix HELP --check-prefix CHECK # RUN: %lldb -b -o 'help _regexp-break' -o 'b main.c:2:21' %t.

[Lldb-commits] [lldb] [LLDB]Provide clearer error message for invalid commands. (PR #111891)

2024-10-11 Thread Pavel Labath via lldb-commits
@@ -194,28 +194,50 @@ void CommandObjectMultiword::Execute(const char *args_string, std::string error_msg; const size_t num_subcmd_matches = matches.GetSize(); - if (num_subcmd_matches > 0) + if (num_subcmd_matches > 0) { error_msg.assign("ambiguous command "); -

[Lldb-commits] [lldb] [LLDB]Provide clearer error message for invalid commands. (PR #111891)

2024-10-11 Thread Pavel Labath via lldb-commits
@@ -70,6 +70,8 @@ class CommandObjectMultiword : public CommandObject { return m_subcommand_dict; } + std::string GetTopSubcommands(int count); labath wrote: This is definitely a topic for another patch, but I actually think it would be really cool if

  1   2   >