[Lldb-commits] [lldb] [lldb] Introduce Language::AreEquivalentFunctions (PR #112720)

2024-10-17 Thread Felipe de Azevedo Piovezan via lldb-commits
https://github.com/felipepiovezan created https://github.com/llvm/llvm-project/pull/112720 This allows languages to provide an opinion on whether two symbol contexts are equivalent (i.e. belong to the same function). It is useful to drive the comparisons done by stepping plans that need to en

[Lldb-commits] [lldb] [lldb] Introduce Language::AreEquivalentFunctions (PR #112720)

2024-10-17 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Felipe de Azevedo Piovezan (felipepiovezan) Changes This allows languages to provide an opinion on whether two symbol contexts are equivalent (i.e. belong to the same function). It is useful to drive the comparisons done by stepping plans

[Lldb-commits] [lldb] [lldb] Don't exit the main loop when in runs out of things to listen on (PR #112565)

2024-10-17 Thread Pavel Labath via lldb-commits
@@ -212,15 +209,14 @@ TEST_F(MainLoopTest, PendingCallbackTrigger) { ASSERT_TRUE(callback2_called); } -// Regression test for assertion failure if a lot of callbacks end up -// being queued after loop exits. -TEST_F(MainLoopTest, PendingCallbackAfterLoopExited) { +TEST_F(Mai

[Lldb-commits] [lldb] [lldb] Don't exit the main loop when in runs out of things to listen on (PR #112565)

2024-10-17 Thread Pavel Labath via lldb-commits
labath wrote: Thanks for the reviews. https://github.com/llvm/llvm-project/pull/112565 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][test] Add test for ASTImporter's name conflict resolution (PR #112566)

2024-10-17 Thread Michael Buch via lldb-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/112566 >From d8369837a10f0e4750dd6c0f6c6b4467931b5012 Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Wed, 16 Oct 2024 15:48:47 +0100 Subject: [PATCH 1/4] [lldb][test] Add test for ASTImporter's name conflict res

[Lldb-commits] [lldb] [lldb][test] Add test for ASTImporter's name conflict resolution (PR #112566)

2024-10-17 Thread Michael Buch via lldb-commits
Michael137 wrote: Skipped for now https://github.com/llvm/llvm-project/pull/112566 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Introduce Language::AreEquivalentFunctions (PR #112720)

2024-10-17 Thread Felipe de Azevedo Piovezan via lldb-commits
@@ -363,6 +363,14 @@ class Language : public PluginInterface { return false; } + /// Returns a boolean indicating whether two symbol contexts correspond to + /// the same function. If the plugin has no opinion, it should return nullopt. + virtual std::optional + Are

[Lldb-commits] [lldb] [lldb] Introduce Language::AreEquivalentFunctions (PR #112720)

2024-10-17 Thread Felipe de Azevedo Piovezan via lldb-commits
felipepiovezan wrote: > do we have in mind any other languages that will implement this? I suspect any language wanting to implement this notion of function splitting (e.g. all the users of corosplitter) and virtual frames could have a use for this https://github.com/llvm/llvm-project/pull/1

[Lldb-commits] [lldb] [lldb][test] Add test for ASTImporter's name conflict resolution (PR #112566)

2024-10-17 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 f113a66c29b17e4937ff5d0ab67dc087fa6ee27e...110b0d6ba90be4041a880a9a9963019850782e75 lldb/

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

2024-10-17 Thread Dhruv Srivastava via lldb-commits
@@ -0,0 +1,243 @@ +//===-- ObjectFileXCOFF.cpp +//-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier

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

2024-10-17 Thread Dhruv Srivastava via lldb-commits
https://github.com/DhruvSrivastavaX updated https://github.com/llvm/llvm-project/pull/111814 >From 08c9d5ae66ca857d165dc878ebd1b2e0de364a24 Mon Sep 17 00:00:00 2001 From: Dhruv-Srivastava Date: Thu, 10 Oct 2024 02:24:42 -0500 Subject: [PATCH 1/6] Taking base file structure from ELF as reference

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

2024-10-17 Thread Dhruv Srivastava via lldb-commits
@@ -0,0 +1,243 @@ +//===-- ObjectFileXCOFF.cpp +//-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier

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

2024-10-17 Thread Dhruv Srivastava via lldb-commits
@@ -0,0 +1,243 @@ +//===-- ObjectFileXCOFF.cpp +//-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier

[Lldb-commits] [lldb] [lldb] Fix write only file action to truncate the file (PR #112657)

2024-10-17 Thread via lldb-commits
kusmour wrote: > What you describe makes some sense, but could you give an example of where > this is used? > > Can this be triggered with `lldb program file --`? If > so it would be good to 1. put that in the commit message in case anyone hits > the same problem and searches the log, and 2.

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

2024-10-17 Thread Dhruv Srivastava via lldb-commits
DhruvSrivastavaX wrote: > This is exactly what I had in mind -- thank you. > > The patch looks mostly good, apart from the inline comments. My main question > is about the "dependant modules" parsing code. AFAICT, its not actually > functional (and not tested). Is yaml2objs xcoff backend suffi

[Lldb-commits] [lldb] [lldb][ClangASTImporter][NFC] Emit a log message when we break MapImported invariant (PR #112748)

2024-10-17 Thread Michael Buch via lldb-commits
https://github.com/Michael137 created https://github.com/llvm/llvm-project/pull/112748 This patch emits a warning into the expression log when we call `MapImported` on a decl which has already been imported, but with a new `to` destination decl. In asserts builds this would lead to triggering

[Lldb-commits] [lldb] [lldb][ClangASTImporter][NFC] Emit a log message when we break MapImported invariant (PR #112748)

2024-10-17 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Michael Buch (Michael137) Changes This patch emits a warning into the expression log when we call `MapImported` on a decl which has already been imported, but with a new `to` destination decl. In asserts builds this would lead to triggerin

[Lldb-commits] [lldb] [lldb] Fix write only file action to truncate the file (PR #112657)

2024-10-17 Thread Pavel Labath via lldb-commits
labath wrote: It would be nice to have a test which verifies actual behavior rather than just some flag being set somewhere. For example, you could add to/extend `test/API/python_api/process/io/TestProcessIO.py` so that it writes some initial data to the output file, and then verify that the

[Lldb-commits] [lldb] [lldb] Don't exit the main loop when in runs out of things to listen on (PR #112565)

2024-10-17 Thread Pavel Labath via lldb-commits
@@ -365,10 +365,7 @@ Status MainLoopPosix::Run() { Status error; RunImpl impl(*this); - // run until termination or until we run out of things to listen to - // (m_read_fds will always contain m_trigger_pipe fd, so check for > 1) - while (!m_terminate_request && ---

[Lldb-commits] [lldb] [lldb] Introduce Language::AreEquivalentFunctions (PR #112720)

2024-10-17 Thread Dave Lee via lldb-commits
kastiglione wrote: do we have in mind any other languages that will implement this? https://github.com/llvm/llvm-project/pull/112720 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] 9173fd7 - [lldb] Avoid repeated map lookups (NFC) (#112655)

2024-10-17 Thread via lldb-commits
Author: Kazu Hirata Date: 2024-10-17T07:45:50-07:00 New Revision: 9173fd77394aa9617b235e1b146114f76c6d77d6 URL: https://github.com/llvm/llvm-project/commit/9173fd77394aa9617b235e1b146114f76c6d77d6 DIFF: https://github.com/llvm/llvm-project/commit/9173fd77394aa9617b235e1b146114f76c6d77d6.diff L

[Lldb-commits] [lldb] [lldb] Don't exit the main loop when in runs out of things to listen on (PR #112565)

2024-10-17 Thread Pavel Labath via lldb-commits
https://github.com/labath updated https://github.com/llvm/llvm-project/pull/112565 >From 8a531630f6b233d83f33740ce9dbbd9b3a778641 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Wed, 16 Oct 2024 16:54:06 +0200 Subject: [PATCH 1/4] [lldb] Don't exit the main loop when in runs out of things to

[Lldb-commits] [lldb] [lldb] Avoid repeated map lookups (NFC) (PR #112655)

2024-10-17 Thread Kazu Hirata via lldb-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/112655 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

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

2024-10-17 Thread Miro Bucko via lldb-commits
https://github.com/mbucko approved this pull request. https://github.com/llvm/llvm-project/pull/111951 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Introduce Language::AreEquivalentFunctions (PR #112720)

2024-10-17 Thread Dave Lee via lldb-commits
@@ -363,6 +363,14 @@ class Language : public PluginInterface { return false; } + /// Returns a boolean indicating whether two symbol contexts correspond to + /// the same function. If the plugin has no opinion, it should return nullopt. + virtual std::optional + Are

[Lldb-commits] [lldb] 8c7f80f - [lldb] Disable warning about codecvt_utf8 deprecation (NFC) (#112446)

2024-10-17 Thread via lldb-commits
Author: Jonas Devlieghere Date: 2024-10-17T08:19:58-07:00 New Revision: 8c7f80f77505b7ff275d67a49f4f2dd07d604403 URL: https://github.com/llvm/llvm-project/commit/8c7f80f77505b7ff275d67a49f4f2dd07d604403 DIFF: https://github.com/llvm/llvm-project/commit/8c7f80f77505b7ff275d67a49f4f2dd07d604403.d

[Lldb-commits] [lldb] [lldb] Disable warning about codecvt_utf8 deprecation (NFC) (PR #112446)

2024-10-17 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere closed https://github.com/llvm/llvm-project/pull/112446 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] 4897fc4 - [lldb] Narrow scope of -Wno-deprecated-declarations (NFC) (#112276)

2024-10-17 Thread via lldb-commits
Author: Jonas Devlieghere Date: 2024-10-17T08:22:56-07:00 New Revision: 4897fc44a918b8da886d48082b6cf004cf3ffe0b URL: https://github.com/llvm/llvm-project/commit/4897fc44a918b8da886d48082b6cf004cf3ffe0b DIFF: https://github.com/llvm/llvm-project/commit/4897fc44a918b8da886d48082b6cf004cf3ffe0b.d

[Lldb-commits] [lldb] [lldb] Narrow scope of -Wno-deprecated-declarations (NFC) (PR #112276)

2024-10-17 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere closed https://github.com/llvm/llvm-project/pull/112276 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Don't exit the main loop when in runs out of things to listen on (PR #112565)

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

[Lldb-commits] [lldb] 98b419c - [lldb] Don't exit the main loop when in runs out of things to listen on (#112565)

2024-10-17 Thread via lldb-commits
Author: Pavel Labath Date: 2024-10-17T17:29:38+02:00 New Revision: 98b419ca7688aa2823df1e87f58051aaa8d9c37f URL: https://github.com/llvm/llvm-project/commit/98b419ca7688aa2823df1e87f58051aaa8d9c37f DIFF: https://github.com/llvm/llvm-project/commit/98b419ca7688aa2823df1e87f58051aaa8d9c37f.diff

[Lldb-commits] [lldb] [lldb][test][NFC] Document DYLIB_NAME Makefile variable (PR #112735)

2024-10-17 Thread Michael Buch via lldb-commits
https://github.com/Michael137 created https://github.com/llvm/llvm-project/pull/112735 Got caught out by this because simply specifying `DYLIB_CXX_SOURCES` (without specifying `DYLIB_NAME`) resulted in linker errors because the dylib was never built (and linked). We should probably make that a

[Lldb-commits] [lldb] [lldb][test][NFC] Document DYLIB_NAME Makefile variable (PR #112735)

2024-10-17 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Michael Buch (Michael137) Changes Got caught out by this because simply specifying `DYLIB_CXX_SOURCES` (without specifying `DYLIB_NAME`) resulted in linker errors because the dylib was never built (and linked). We should probably make that

[Lldb-commits] [lldb] [lldb][test] Add test for ASTImporter's name conflict resolution (PR #112566)

2024-10-17 Thread Michael Buch via lldb-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/112566 >From d8369837a10f0e4750dd6c0f6c6b4467931b5012 Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Wed, 16 Oct 2024 15:48:47 +0100 Subject: [PATCH 1/5] [lldb][test] Add test for ASTImporter's name conflict res

[Lldb-commits] [lldb] [lldb] Avoid repeated map lookups (NFC) (PR #112655)

2024-10-17 Thread via lldb-commits
jimingham wrote: Note that a lot of lldb was written before C++11 was allowed in llvm projects. So looking through code that hasn't been touched recently, you will likely find constructs that could be made more efficient with some of the newer C++ gadgets. We probably shouldn't be doing chan

[Lldb-commits] [lldb] [lldb] Introduce Language::AreEquivalentFunctions (PR #112720)

2024-10-17 Thread via lldb-commits
@@ -363,6 +363,14 @@ class Language : public PluginInterface { return false; } + /// Returns a boolean indicating whether two symbol contexts correspond to + /// the same function. If the plugin has no opinion, it should return nullopt. + virtual std::optional + Are

[Lldb-commits] [lldb] [lldb] Introduce Language::AreEquivalentFunctions (PR #112720)

2024-10-17 Thread via lldb-commits
jimingham wrote: > > do we have in mind any other languages that will implement this? > > I suspect any language wanting to implement this notion of function splitting > (e.g. all the users of corosplitter) and virtual frames could have a use for > this We already have `.cold` functions that

<    1   2