[Lldb-commits] [lldb] [AMDGPU] Change the representation of double literals in operands (PR #68740)

2023-10-12 Thread Stanislav Mekhanoshin via lldb-commits
rampitec wrote: > I suppose left shift of negative values is undefined because if you shift out > the sign bit you can overflow and get a positive value. Sounds like BS. It is defined. Unexpected maybe. https://github.com/llvm/llvm-project/pull/68740 ___

[Lldb-commits] [lldb] [AMDGPU] Change the representation of double literals in operands (PR #68740)

2023-10-12 Thread via lldb-commits
mikaelholmen wrote: I suppose left shift of negative values is undefined because if you shift out the sign bit you can overflow and get a positive value. https://github.com/llvm/llvm-project/pull/68740 ___ lldb-commits mailing list lldb-commits@lists.

[Lldb-commits] [lldb] [AMDGPU] Change the representation of double literals in operands (PR #68740)

2023-10-12 Thread via lldb-commits
mikaelholmen wrote: Hi @rampitec With UBSan built binaries the MC/AMDGPU/literals.s testcase fails and triggers UB like ``` 07:33:04 ../lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp:2246:59: runtime error: left shift of negative value -54321 07:33:04 SUMMARY: UndefinedBehaviorSanitizer: und

[Lldb-commits] [lldb] [lldb] Add SBType::FindNestedType() function (PR #68705)

2023-10-12 Thread Vlad Serebrennikov via lldb-commits
https://github.com/Endilll updated https://github.com/llvm/llvm-project/pull/68705 >From ca4d1bbdeb4ea541199e3db3518b35eb2d5a8cad Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Tue, 10 Oct 2023 15:07:56 +0300 Subject: [PATCH 01/12] [lldb] Add SBType::FindNestedType() function --- lld

[Lldb-commits] [lldb] [lldb] Fix `po` alias by printing fix-its to the console. (PR #68755)

2023-10-12 Thread Med Ismail Bennani via lldb-commits
medismailben wrote: > Ok, I put the 2 new tests into a single, new file, which makes the file > naming a bit simpler and set up for future FixIt tests specific to C++. This is exactly what I had in mind :) https://github.com/llvm/llvm-project/pull/68755 ___

[Lldb-commits] [lldb] [lldb][DataFormatter] VectorType: fix format for arrays with size not a power-of-2 (PR #68907)

2023-10-12 Thread Med Ismail Bennani via lldb-commits
@@ -169,19 +169,42 @@ static lldb::Format GetItemFormatForFormat(lldb::Format format, } } +/// \brief Returns the number of elements of 'container_type' +/// as if its elements had type 'element_type'. +/// +/// For example, a container of type +/// `uint8_t __attribute__((

[Lldb-commits] [lldb] [lldb][DataFormatter] VectorType: fix format for arrays with size not a power-of-2 (PR #68907)

2023-10-12 Thread Med Ismail Bennani via lldb-commits
@@ -169,19 +169,42 @@ static lldb::Format GetItemFormatForFormat(lldb::Format format, } } +/// \brief Returns the number of elements of 'container_type' +/// as if its elements had type 'element_type'. +/// +/// For example, a container of type +/// `uint8_t __attribute__((

[Lldb-commits] [lldb] [mlir][sparse] remove unused sparse tensor iterator (PR #68951)

2023-10-12 Thread Peiming Liu via lldb-commits
https://github.com/PeimingLiu approved this pull request. https://github.com/llvm/llvm-project/pull/68951 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [mlir][sparse] remove unused sparse tensor iterator (PR #68951)

2023-10-12 Thread Aart Bik via lldb-commits
https://github.com/aartbik created https://github.com/llvm/llvm-project/pull/68951 None >From 64011a22c3e9b97515e34139d0fbb03e0b1fe330 Mon Sep 17 00:00:00 2001 From: Aart Bik Date: Thu, 12 Oct 2023 21:24:05 -0700 Subject: [PATCH] [mlir][sparse] remove unused sparse tensor iterator --- .../ml

[Lldb-commits] [lldb] [mlir][sparse] add a forwarding insertion to SparseTensorStorage (PR #68939)

2023-10-12 Thread Aart Bik via lldb-commits
https://github.com/aartbik closed https://github.com/llvm/llvm-project/pull/68939 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [libc++] Use -nostdlib++ on GCC unconditionally (PR #68832)

2023-10-12 Thread Louis Dionne via lldb-commits
@@ -642,18 +642,8 @@ get_sanitizer_flags(SANITIZER_FLAGS "${LLVM_USE_SANITIZER}") # Link system libraries === function(cxx_link_system_libraries target) - -# In order to remove just libc++ from the link step -# we need to us

[Lldb-commits] [lldb] [libc++] Use -nostdlib++ on GCC unconditionally (PR #68832)

2023-10-12 Thread Louis Dionne via lldb-commits
https://github.com/ldionne updated https://github.com/llvm/llvm-project/pull/68832 >From 9ca88d1a30ec1bcaa9c3c943c32649c36ad136d0 Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Wed, 11 Oct 2023 12:21:39 -0700 Subject: [PATCH 1/3] [libc++] Use -nostdlib++ on GCC unconditionally We support GC

[Lldb-commits] [lldb] [LLDB][NFC] Remove dead code (PR #68927)

2023-10-12 Thread Walter Erquinigo via lldb-commits
walter-erquinigo wrote: @jimingham , thanks! I reverted the changes to that method and left a tiny comment mentioning that it's used by swift. https://github.com/llvm/llvm-project/pull/68927 ___ lldb-commits mailing list lldb-commits@lists.llvm.org ht

[Lldb-commits] [lldb] [LLDB][NFC] Remove dead code (PR #68927)

2023-10-12 Thread Walter Erquinigo via lldb-commits
https://github.com/walter-erquinigo updated https://github.com/llvm/llvm-project/pull/68927 >From fa598fac03c2be067cf3adc7c2b161b403ebf4de Mon Sep 17 00:00:00 2001 From: walter erquinigo Date: Thu, 12 Oct 2023 16:58:08 -0400 Subject: [PATCH] [LLDB][NFC] Remove dead code I found this type/types

[Lldb-commits] [lldb] [mlir] Add ContractionOpInterface utility functions for vector matrix multiplication (PR #68945)

2023-10-12 Thread via lldb-commits
https://github.com/NatashaKnk created https://github.com/llvm/llvm-project/pull/68945 None >From e431cc466e5609e19757481604dad47558219166 Mon Sep 17 00:00:00 2001 From: Natasha Kononenko Date: Fri, 13 Oct 2023 00:48:17 + Subject: [PATCH 1/2] Add ContractionOpInterface utility functions for

[Lldb-commits] [lldb] [mlir][sparse] add a forwarding insertion to SparseTensorStorage (PR #68939)

2023-10-12 Thread Peiming Liu via lldb-commits
https://github.com/PeimingLiu approved this pull request. https://github.com/llvm/llvm-project/pull/68939 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [libc++] Implement ranges::contains (PR #65148)

2023-10-12 Thread via lldb-commits
https://github.com/ZijunZhaoCCK updated https://github.com/llvm/llvm-project/pull/65148 >From 02e9afd761228f401df4d9f8dfaaca44ffae0c6e Mon Sep 17 00:00:00 2001 From: zijunzhao Date: Thu, 31 Aug 2023 20:08:32 + Subject: [PATCH 01/12] [libc++] Implement ranges::contains Differential Revision

[Lldb-commits] [lldb] [LLDB][NFC] Remove dead code (PR #68927)

2023-10-12 Thread via lldb-commits
jimingham wrote: Swift uses the `IsRuntimeGeneratedType` API, so it would be nice if you could leave that in to reduce diffs. All the others are not used in the swift support. https://github.com/llvm/llvm-project/pull/68927 ___ lldb-commits mailing

[Lldb-commits] [lldb] [LLDB][NFC] Remove dead code (PR #68927)

2023-10-12 Thread via lldb-commits
@@ -183,8 +181,6 @@ class CompilerType { bool IsPointerToScalarType() const; - bool IsRuntimeGeneratedType() const; jimingham wrote: Swift uses this one. https://github.com/llvm/llvm-project/pull/68927 ___ lldb

[Lldb-commits] [lldb] [lldb][dump-debug-info] Fix `image dump separate-debug-info` in Release. (PR #68940)

2023-10-12 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Tom Yang (zhyty) Changes Follow up to #66035. @kazutakahirata noticed ([comment](https://github.com/llvm/llvm-project/commit/64d78d8b3cd09dff32c97fbefa56bcfc8b676406#r129848406)) that I was reading structured data in assert statements whi

[Lldb-commits] [lldb] [lldb][dump-debug-info] Fix `image dump separate-debug-info` in Release. (PR #68940)

2023-10-12 Thread Tom Yang via lldb-commits
https://github.com/zhyty created https://github.com/llvm/llvm-project/pull/68940 Follow up to #66035. @kazutakahirata noticed ([comment](https://github.com/llvm/llvm-project/commit/64d78d8b3cd09dff32c97fbefa56bcfc8b676406#r129848406)) that I was reading structured data in assert statements whi

[Lldb-commits] [lldb] [LLDB][NFC] Remove dead code (PR #68927)

2023-10-12 Thread Greg Clayton via lldb-commits
https://github.com/clayborg commented: Looks fine to me, but anyone at Apple might need to comment to make sure it doesn't take away something needed for Swift. https://github.com/llvm/llvm-project/pull/68927 ___ lldb-commits mailing list lldb-commits

[Lldb-commits] [lldb] cd0d478 - quick fix for TestDumpDwo

2023-10-12 Thread Tom Yang via lldb-commits
Author: Tom Yang Date: 2023-10-12T16:28:56-07:00 New Revision: cd0d478e7cfa4ecf44c6fa97c796678cea5e4256 URL: https://github.com/llvm/llvm-project/commit/cd0d478e7cfa4ecf44c6fa97c796678cea5e4256 DIFF: https://github.com/llvm/llvm-project/commit/cd0d478e7cfa4ecf44c6fa97c796678cea5e4256.diff LOG:

[Lldb-commits] [lldb] [LLDB][NFC] Remove dead code (PR #68927)

2023-10-12 Thread Walter Erquinigo via lldb-commits
https://github.com/walter-erquinigo updated https://github.com/llvm/llvm-project/pull/68927 >From fd9b54296757e86b3798e6782513a11356c56622 Mon Sep 17 00:00:00 2001 From: walter erquinigo Date: Thu, 12 Oct 2023 16:58:08 -0400 Subject: [PATCH] [LLDB][NFC] Remove dead code I found this type/types

[Lldb-commits] [lldb] [lldb] [mostly NFC] Large WP foundation: WatchpointResources (PR #68845)

2023-10-12 Thread Jason Molenda via lldb-commits
jasonmolenda wrote: I started on the next step of updating ProcessGDBRemote to identify the WatchpointResource that was hit by a watchpoint stop, and evaluate all of its Watchpoints, when I looked at BreakpointSite and BreakpointSiteList and realize I should have started by coping their design

[Lldb-commits] [lldb] [LLDB][NFC] Remove dead code (PR #68927)

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

[Lldb-commits] [lldb] [LLDB][NFC] Remove dead code (PR #68927)

2023-10-12 Thread Walter Erquinigo via lldb-commits
https://github.com/walter-erquinigo updated https://github.com/llvm/llvm-project/pull/68927 >From de55d41ed7c3bed798953b69e401cfeb403304e0 Mon Sep 17 00:00:00 2001 From: walter erquinigo Date: Thu, 12 Oct 2023 16:58:08 -0400 Subject: [PATCH] [LLDB][NFC] Remove dead code I found this type/types

[Lldb-commits] [lldb] [AMDGPU] Change the representation of double literals in operands (PR #68740)

2023-10-12 Thread Stanislav Mekhanoshin via lldb-commits
https://github.com/rampitec closed https://github.com/llvm/llvm-project/pull/68740 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [LLDB][NFC] Remove dead code (PR #68927)

2023-10-12 Thread Walter Erquinigo via lldb-commits
@@ -384,13 +384,15 @@ class TypeSystem : public PluginInterface, dump(lldb::opaque_compiler_type_t type) const = 0; #endif - virtual void DumpValue(lldb::opaque_compiler_type_t type, - ExecutionContext *exe_ctx, Stream &s, - l

[Lldb-commits] [lldb] [LLDB][NFC] Remove dead code (PR #68927)

2023-10-12 Thread Walter Erquinigo via lldb-commits
https://github.com/walter-erquinigo updated https://github.com/llvm/llvm-project/pull/68927 >From bf47938af6e80a02402a492ca7c61cf47391bd3c Mon Sep 17 00:00:00 2001 From: walter erquinigo Date: Thu, 12 Oct 2023 16:58:08 -0400 Subject: [PATCH] [LLDB][NFC] Remove dead code I found this type/types

[Lldb-commits] [lldb] [LLDB][NFC] Remove dead code (PR #68927)

2023-10-12 Thread Greg Clayton via lldb-commits
@@ -384,13 +384,15 @@ class TypeSystem : public PluginInterface, dump(lldb::opaque_compiler_type_t type) const = 0; #endif - virtual void DumpValue(lldb::opaque_compiler_type_t type, - ExecutionContext *exe_ctx, Stream &s, - l

[Lldb-commits] [lldb] [LLDB][NFC] Remove dead code (PR #68927)

2023-10-12 Thread Walter Erquinigo via lldb-commits
https://github.com/walter-erquinigo updated https://github.com/llvm/llvm-project/pull/68927 >From c6ca8497de2cfabf22d29b8210021f36263302c9 Mon Sep 17 00:00:00 2001 From: walter erquinigo Date: Thu, 12 Oct 2023 16:58:08 -0400 Subject: [PATCH] [LLDB][NFC] Remove dead code I found this type/types

[Lldb-commits] [lldb] [LLDB][NFC] Remove dead code (PR #68927)

2023-10-12 Thread Walter Erquinigo via lldb-commits
@@ -384,13 +384,15 @@ class TypeSystem : public PluginInterface, dump(lldb::opaque_compiler_type_t type) const = 0; #endif - virtual void DumpValue(lldb::opaque_compiler_type_t type, - ExecutionContext *exe_ctx, Stream &s, - l

[Lldb-commits] [lldb] [LLDB][NFC] Remove dead code (PR #68927)

2023-10-12 Thread Greg Clayton via lldb-commits
@@ -384,13 +384,15 @@ class TypeSystem : public PluginInterface, dump(lldb::opaque_compiler_type_t type) const = 0; #endif - virtual void DumpValue(lldb::opaque_compiler_type_t type, - ExecutionContext *exe_ctx, Stream &s, - l

[Lldb-commits] [lldb] [LLDB][NFC] Remove dead code (PR #68927)

2023-10-12 Thread Walter Erquinigo via lldb-commits
https://github.com/walter-erquinigo updated https://github.com/llvm/llvm-project/pull/68927 >From 8671fd2bb1808322e24688feba75e7b6df1a302e Mon Sep 17 00:00:00 2001 From: walter erquinigo Date: Thu, 12 Oct 2023 16:58:08 -0400 Subject: [PATCH] [LLDB][NFC] Remove dead code I found this type/types

[Lldb-commits] [lldb] [LLDB][NFC] Remove dead code (PR #68927)

2023-10-12 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Walter Erquinigo (walter-erquinigo) Changes I found this type/typesystem code that is dead and seems to have been replaced by the ValueObjectPrinter. --- Patch is 25.20 KiB, truncated to 20.00 KiB below, full version: https://github.com

[Lldb-commits] [lldb] [LLDB][NFC] Remove dead code (PR #68927)

2023-10-12 Thread Walter Erquinigo via lldb-commits
https://github.com/walter-erquinigo updated https://github.com/llvm/llvm-project/pull/68927 >From ddea9112d479eddeaf95a30d5f3dd314cae6860b Mon Sep 17 00:00:00 2001 From: walter erquinigo Date: Thu, 12 Oct 2023 16:58:08 -0400 Subject: [PATCH] [LLDB][NFC] Remove dead code I found this type/types

[Lldb-commits] [lldb] [LLDB][NFC] Remove dead code (PR #68927)

2023-10-12 Thread Walter Erquinigo via lldb-commits
https://github.com/walter-erquinigo created https://github.com/llvm/llvm-project/pull/68927 I found this type/typesystem code that is dead and seems to have been replaced by the ValueObjectPrinter. >From 2e589d7e13959947bf7c81b089f164ccd8d22906 Mon Sep 17 00:00:00 2001 From: walter erquinigo

[Lldb-commits] [lldb] [LLDB] Fix type formatting empty c-strings (PR #68924)

2023-10-12 Thread Walter Erquinigo via lldb-commits
@@ -19,6 +19,21 @@ def getFormatted(self, format, expr): self.assertTrue(result.Succeeded(), result.GetError()) return result.GetOutput() +@no_debug_info_test +@skipIfWindows +def testAllPlatforms(self): +self.build() +lldbutil.run_t

[Lldb-commits] [lldb] [LLDB] Fix type formatting empty c-strings (PR #68924)

2023-10-12 Thread Greg Clayton via lldb-commits
@@ -19,6 +19,21 @@ def getFormatted(self, format, expr): self.assertTrue(result.Succeeded(), result.GetError()) return result.GetOutput() +@no_debug_info_test +@skipIfWindows +def testAllPlatforms(self): +self.build() +lldbutil.run_t

[Lldb-commits] [lldb] [LLDB] Fix type formatting empty c-strings (PR #68924)

2023-10-12 Thread Walter Erquinigo via lldb-commits
https://github.com/walter-erquinigo updated https://github.com/llvm/llvm-project/pull/68924 >From eaf314f813202fd71b884f3cd2e87db6cfd97e96 Mon Sep 17 00:00:00 2001 From: walter erquinigo Date: Thu, 12 Oct 2023 15:58:19 -0400 Subject: [PATCH 1/3] [LLDB] Fix type formatting empty c-strings The t

[Lldb-commits] [lldb] [AMDGPU] Change the representation of double literals in operands (PR #68740)

2023-10-12 Thread Stanislav Mekhanoshin via lldb-commits
https://github.com/rampitec updated https://github.com/llvm/llvm-project/pull/68740 >From cc9e065a9218eb36750a2c2a4a4d08fae3f329fa Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Wed, 4 Oct 2023 13:36:25 -0700 Subject: [PATCH 1/6] [AMDGPU] Change the representation of double literals

[Lldb-commits] [lldb] [LLDB] Fix type formatting empty c-strings (PR #68924)

2023-10-12 Thread Walter Erquinigo via lldb-commits
https://github.com/walter-erquinigo updated https://github.com/llvm/llvm-project/pull/68924 >From eaf314f813202fd71b884f3cd2e87db6cfd97e96 Mon Sep 17 00:00:00 2001 From: walter erquinigo Date: Thu, 12 Oct 2023 15:58:19 -0400 Subject: [PATCH 1/2] [LLDB] Fix type formatting empty c-strings The t

[Lldb-commits] [lldb] [LLDB] Fix type formatting empty c-strings (PR #68924)

2023-10-12 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 220244b71ba2a0301bb13fb195d64a66418d1c70..eaf314f813202fd71b884f3cd2e87db6cfd97e96 lldb/

[Lldb-commits] [lldb] [LLDB] Fix type formatting empty c-strings (PR #68924)

2023-10-12 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Walter Erquinigo (walter-erquinigo) Changes The type formatter code is effectively considering empty strings as read errors, which is wrong. The fix is very simple. We should rely on the error object and stop checking the size. I also adde

[Lldb-commits] [lldb] [LLDB] Fix type formatting empty c-strings (PR #68924)

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

[Lldb-commits] [lldb] [LLDB] Fix type formatting empty c-strings (PR #68924)

2023-10-12 Thread Walter Erquinigo via lldb-commits
https://github.com/walter-erquinigo created https://github.com/llvm/llvm-project/pull/68924 The type formatter code is effectively considering empty strings as read errors, which is wrong. The fix is very simple. We should rely on the error object and stop checking the size. I also added a tes

[Lldb-commits] [lldb] [AMDGPU] Change the representation of double literals in operands (PR #68740)

2023-10-12 Thread Stanislav Mekhanoshin via lldb-commits
https://github.com/rampitec updated https://github.com/llvm/llvm-project/pull/68740 >From cc9e065a9218eb36750a2c2a4a4d08fae3f329fa Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Wed, 4 Oct 2023 13:36:25 -0700 Subject: [PATCH 1/6] [AMDGPU] Change the representation of double literals

[Lldb-commits] [lldb] [lldb] Add SBType::FindNestedType() function (PR #68705)

2023-10-12 Thread Vlad Serebrennikov via lldb-commits
@@ -313,6 +313,8 @@ class TypeImpl { bool GetDescription(lldb_private::Stream &strm, lldb::DescriptionLevel description_level); + CompilerType FindNestedType(ConstString name); Endilll wrote: @jimingham @Michael137 Any opinions? http

[Lldb-commits] [lldb] [lldb] Add SBType::FindNestedType() function (PR #68705)

2023-10-12 Thread Vlad Serebrennikov via lldb-commits
@@ -186,6 +186,11 @@ std::optional TypeSystem::ReportStatistics() { return std::nullopt; } +CompilerDeclContext Endilll wrote: Both items are done! https://github.com/llvm/llvm-project/pull/68705 ___ lldb-commit

[Lldb-commits] [lldb] [lldb] Add SBType::FindNestedType() function (PR #68705)

2023-10-12 Thread Vlad Serebrennikov via lldb-commits
https://github.com/Endilll updated https://github.com/llvm/llvm-project/pull/68705 >From ca4d1bbdeb4ea541199e3db3518b35eb2d5a8cad Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Tue, 10 Oct 2023 15:07:56 +0300 Subject: [PATCH 01/11] [lldb] Add SBType::FindNestedType() function --- lld

[Lldb-commits] [lldb] [lldb][lldb-vscode] Add example configuration for connecting to a remote gdbserver (PR #68866)

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

[Lldb-commits] [lldb] [lldb][lldb-vscode] Add example configuration for connecting to a remote gdbserver (PR #68866)

2023-10-12 Thread Walter Erquinigo via lldb-commits
@@ -212,6 +212,21 @@ This loads the coredump file `/cores/123.core` associated with the program } ``` +### Connect to a Remote Debug Server + +This connects to a debug server (e.g. `lldb-server`, `gdbserver`) that is +debugging the program `/tmp/a.out` and listening locally o

[Lldb-commits] [lldb] Add `target modules dump separate-debug-info` (PR #66035)

2023-10-12 Thread Greg Clayton via lldb-commits
clayborg wrote: > (aside: isn't the SBAPI meant to be the thing to use if you want to script > stuff, rather than having formatted output/scraping that? - but sounds like > the output has converged on a table rather than JSON anyway? So maybe a moot > point) The reason we use StructuredData i

[Lldb-commits] [lldb] Add `target modules dump separate-debug-info` (PR #66035)

2023-10-12 Thread Tom Yang via lldb-commits
https://github.com/zhyty closed https://github.com/llvm/llvm-project/pull/66035 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] 64d78d8 - Add `target modules dump separate-debug-info` (#66035)

2023-10-12 Thread via lldb-commits
Author: Tom Yang Date: 2023-10-12T11:21:53-07:00 New Revision: 64d78d8b3cd09dff32c97fbefa56bcfc8b676406 URL: https://github.com/llvm/llvm-project/commit/64d78d8b3cd09dff32c97fbefa56bcfc8b676406 DIFF: https://github.com/llvm/llvm-project/commit/64d78d8b3cd09dff32c97fbefa56bcfc8b676406.diff LOG:

[Lldb-commits] [lldb] Add `target modules dump separate-debug-info` (PR #66035)

2023-10-12 Thread Greg Clayton via lldb-commits
https://github.com/clayborg approved this pull request. https://github.com/llvm/llvm-project/pull/66035 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Add `target modules dump separate-debug-info` (PR #66035)

2023-10-12 Thread Tom Yang via lldb-commits
https://github.com/zhyty updated https://github.com/llvm/llvm-project/pull/66035 >From fe1f2874d91b6583759f43ba5a0ed28b44275ab6 Mon Sep 17 00:00:00 2001 From: Tom Yang Date: Mon, 11 Sep 2023 17:17:13 -0700 Subject: [PATCH 1/3] Add `target modules dump separate-debug-info` Summary: Add a new co

[Lldb-commits] [lldb] Add `target modules dump separate-debug-info` (PR #66035)

2023-10-12 Thread Tom Yang via lldb-commits
https://github.com/zhyty updated https://github.com/llvm/llvm-project/pull/66035 >From 9a52ac5193af2a8ddca2a5d922684935b043d0ef Mon Sep 17 00:00:00 2001 From: Tom Yang Date: Mon, 11 Sep 2023 17:17:13 -0700 Subject: [PATCH 1/2] Add `target modules dump separate-debug-info` Summary: Add a new co

[Lldb-commits] [lldb] [lldb] Add SBType::FindNestedType() function (PR #68705)

2023-10-12 Thread via lldb-commits
jimingham wrote: As long as it does (and will continue doing) what it says, `FindDirectNestedType` is okay. Part of me thinks: "later on somebody will want to add an N levels deep search -requiring a depth parameter, and then we'll have to add another `FindNestedTypeAtDepth` API where passi

[Lldb-commits] [lldb] Lower std::string's alignment requirement from 16 to 8. (PR #68807)

2023-10-12 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 05181a849b4c1ec14fdd6d667285d6f5ad34a5a2..ffc0f0ffa4164f9b426e4b30897c86577e2aa867 mlir/p

[Lldb-commits] [lldb] [lldb][lldb-vscode] Add example configuration for connecting to a remote gdbserver (PR #68866)

2023-10-12 Thread Greg Clayton via lldb-commits
@@ -212,6 +212,21 @@ This loads the coredump file `/cores/123.core` associated with the program } ``` +### Connect to a Remote Debug Server + +This connects to a debug server (e.g. `lldb-server`, `gdbserver`) that is +debugging the program `/tmp/a.out` and listening locally o

[Lldb-commits] [lldb] [lldb][lldb-vscode] Add example configuration for connecting to a remote gdbserver (PR #68866)

2023-10-12 Thread Greg Clayton via lldb-commits
@@ -212,6 +212,21 @@ This loads the coredump file `/cores/123.core` associated with the program } ``` +### Connect to a Remote Debug Server + +This connects to a debug server (e.g. `lldb-server`, `gdbserver`) that is +debugging the program `/tmp/a.out` and listening locally o

[Lldb-commits] [lldb] Add `target modules dump separate-debug-info` (PR #66035)

2023-10-12 Thread Greg Clayton via lldb-commits
clayborg wrote: > I am not a big fan of having a specialized name `separate-debug-info` to dump > external debug info. Ideally, I would like a single/centralized command for > end users to see/check symbols/debug info status for a target including all > possible situations. > > How about we r

[Lldb-commits] [lldb] [lldb][DataFormatter] VectorType: fix format for arrays with size not a power-of-2 (PR #68907)

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

[Lldb-commits] [lldb] [lldb][DataFormatter] VectorType: fix format for arrays with size not a power-of-2 (PR #68907)

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

[Lldb-commits] [lldb] [lldb][DataFormatter] VectorType: fix format for arrays with size not a power-of-2 (PR #68907)

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

[Lldb-commits] [lldb] [lldb][DataFormatter] VectorType: fix format for arrays with size not a power-of-2 (PR #68907)

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

[Lldb-commits] [lldb] [lldb][DataFormatter] VectorType: fix format for arrays with size not a power-of-2 (PR #68907)

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

[Lldb-commits] [lldb] [lldb][DataFormatter] Fix GetNumChildren for VectorType formatter (PR #68907)

2023-10-12 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Michael Buch (Michael137) Changes To get the number of children for a VectorType (i.e., a type declared with a `vector_size`/`ext_vector_type` attribute) LLDB previously did following calculation: 1. Get byte-size of the vector container fro

[Lldb-commits] [lldb] [lldb][DataFormatter] Fix GetNumChildren for VectorType formatter (PR #68907)

2023-10-12 Thread Michael Buch via lldb-commits
https://github.com/Michael137 created https://github.com/llvm/llvm-project/pull/68907 To get the number of children for a VectorType (i.e., a type declared with a `vector_size`/`ext_vector_type` attribute) LLDB previously did following calculation: 1. Get byte-size of the vector container from C

[Lldb-commits] [lldb] [lldb] Add SBType::FindNestedType() function (PR #68705)

2023-10-12 Thread Vlad Serebrennikov via lldb-commits
https://github.com/Endilll updated https://github.com/llvm/llvm-project/pull/68705 >From ca4d1bbdeb4ea541199e3db3518b35eb2d5a8cad Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Tue, 10 Oct 2023 15:07:56 +0300 Subject: [PATCH 1/8] [lldb] Add SBType::FindNestedType() function --- lldb/

[Lldb-commits] [lldb] [lldb] Add SBType::FindNestedType() function (PR #68705)

2023-10-12 Thread Vlad Serebrennikov via lldb-commits
@@ -119,6 +119,15 @@ def test(self): self.assertEqual(task_type, task_head_pointee_type) +# Check whether we can find a nested type by name +name_type = task_type.FindNestedType("name") +self.assertTrue(name_type) +self.DebugSBType(name

[Lldb-commits] [lldb] [lldb] Add SBType::FindNestedType() function (PR #68705)

2023-10-12 Thread Vlad Serebrennikov via lldb-commits
https://github.com/Endilll updated https://github.com/llvm/llvm-project/pull/68705 >From ca4d1bbdeb4ea541199e3db3518b35eb2d5a8cad Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Tue, 10 Oct 2023 15:07:56 +0300 Subject: [PATCH 1/7] [lldb] Add SBType::FindNestedType() function --- lldb/

[Lldb-commits] [lldb] [lldb] Add SBType::FindNestedType() function (PR #68705)

2023-10-12 Thread Vlad Serebrennikov via lldb-commits
@@ -1082,6 +1082,19 @@ bool TypeImpl::GetDescription(lldb_private::Stream &strm, return true; } +CompilerType TypeImpl::FindNestedType(ConstString name) { Endilll wrote: Done! https://github.com/llvm/llvm-project/pull/68705

[Lldb-commits] [lldb] [lldb] Add SBType::FindNestedType() function (PR #68705)

2023-10-12 Thread Vlad Serebrennikov via lldb-commits
@@ -119,6 +119,11 @@ def test(self): self.assertEqual(task_type, task_head_pointee_type) +# Check whether we can find a nested type by name +name_type = task_type.FindNestedType("name") Endilll wrote: Done! https://github.com/llvm/ll

[Lldb-commits] [lldb] [lldb] Add SBType::FindNestedType() function (PR #68705)

2023-10-12 Thread Vlad Serebrennikov via lldb-commits
https://github.com/Endilll updated https://github.com/llvm/llvm-project/pull/68705 >From ca4d1bbdeb4ea541199e3db3518b35eb2d5a8cad Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Tue, 10 Oct 2023 15:07:56 +0300 Subject: [PATCH 1/6] [lldb] Add SBType::FindNestedType() function --- lldb/

[Lldb-commits] [lldb] [lldb] Add SBType::FindNestedType() function (PR #68705)

2023-10-12 Thread Michael Buch via lldb-commits
@@ -119,6 +119,15 @@ def test(self): self.assertEqual(task_type, task_head_pointee_type) +# Check whether we can find a nested type by name +name_type = task_type.FindNestedType("name") +self.assertTrue(name_type) +self.DebugSBType(name

[Lldb-commits] [lldb] [lldb] Add SBType::FindNestedType() function (PR #68705)

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

[Lldb-commits] [lldb] [lldb] Add SBType::FindNestedType() function (PR #68705)

2023-10-12 Thread Michael Buch via lldb-commits
@@ -119,6 +119,11 @@ def test(self): self.assertEqual(task_type, task_head_pointee_type) +# Check whether we can find a nested type by name +name_type = task_type.FindNestedType("name") Michael137 wrote: Up to you, though it would be

[Lldb-commits] [lldb] [mlir][OpenMP] Added `omp.structured_region` operation (PR #68825)

2023-10-12 Thread Kiran Chandramohan via lldb-commits
@@ -1468,6 +1468,18 @@ LogicalResult CancellationPointOp::verify() { return success(); } +//===--===// +// RegionOp +//===--===// + +Logica

[Lldb-commits] [lldb] [mlir][OpenMP] Added `omp.structured_region` operation (PR #68825)

2023-10-12 Thread Kiran Chandramohan via lldb-commits
@@ -1987,4 +1987,40 @@ def ClauseRequiresAttr : EnumAttr { } + +def StructuredRegionOp : OpenMP_Op<"structured_region"> { + let summary = "Encapsulates a region in an OpenMP construct."; + let description = [{ +Encapsulates a region surrounded by an OpenMP Construct. T

[Lldb-commits] [lldb] [lldb] Add SBType::FindNestedType() function (PR #68705)

2023-10-12 Thread Vlad Serebrennikov via lldb-commits
@@ -119,6 +119,11 @@ def test(self): self.assertEqual(task_type, task_head_pointee_type) +# Check whether we can find a nested type by name +name_type = task_type.FindNestedType("name") Endilll wrote: I can, but I'm not sure it would

[Lldb-commits] [lldb] [lldb] Add SBType::FindNestedType() function (PR #68705)

2023-10-12 Thread Vlad Serebrennikov via lldb-commits
@@ -186,6 +186,11 @@ std::optional TypeSystem::ReportStatistics() { return std::nullopt; } +CompilerDeclContext Endilll wrote: > Could add a brief oxygen docstring saying: "Returns the direct parent context > of specified type". I'd be happy to do that a

[Lldb-commits] [lldb] [lldb] Add SBType::FindNestedType() function (PR #68705)

2023-10-12 Thread Vlad Serebrennikov via lldb-commits
@@ -1082,6 +1082,19 @@ bool TypeImpl::GetDescription(lldb_private::Stream &strm, return true; } +CompilerType TypeImpl::FindNestedType(ConstString name) { Endilll wrote: Makes sense. IIRC it's possible to have multiple anonymous unions, so it's not going to

[Lldb-commits] [lldb] [lldb] Add SBType::FindNestedType() function (PR #68705)

2023-10-12 Thread Michael Buch via lldb-commits
@@ -186,6 +186,11 @@ std::optional TypeSystem::ReportStatistics() { return std::nullopt; } +CompilerDeclContext Michael137 wrote: Could add a brief oxygen docstring saying: "Returns the direct parent context of specified type". Also, what happens if no su

[Lldb-commits] [lldb] [lldb] Add SBType::FindNestedType() function (PR #68705)

2023-10-12 Thread Michael Buch via lldb-commits
@@ -1082,6 +1082,19 @@ bool TypeImpl::GetDescription(lldb_private::Stream &strm, return true; } +CompilerType TypeImpl::FindNestedType(ConstString name) { Michael137 wrote: fwiw, `name.IsValid()` would check for both nullptr and empty string https://github

[Lldb-commits] [lldb] [lldb] Add SBType::FindNestedType() function (PR #68705)

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

[Lldb-commits] [lldb] [lldb] Add SBType::FindNestedType() function (PR #68705)

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

[Lldb-commits] [lldb] [lldb] Add SBType::FindNestedType() function (PR #68705)

2023-10-12 Thread Michael Buch via lldb-commits
@@ -119,6 +119,11 @@ def test(self): self.assertEqual(task_type, task_head_pointee_type) +# Check whether we can find a nested type by name +name_type = task_type.FindNestedType("name") Michael137 wrote: Should add tests for enums/uni

[Lldb-commits] [lldb] [lldb] Add SBType::FindNestedType() function (PR #68705)

2023-10-12 Thread Michael Buch via lldb-commits
@@ -1082,6 +1082,19 @@ bool TypeImpl::GetDescription(lldb_private::Stream &strm, return true; } +CompilerType TypeImpl::FindNestedType(ConstString name) { Michael137 wrote: Should an `empty` name require special treatment? Like we don't support that as a v

[Lldb-commits] [lldb] [lldb] Add SBType::FindNestedType() function (PR #68705)

2023-10-12 Thread Vlad Serebrennikov via lldb-commits
https://github.com/Endilll updated https://github.com/llvm/llvm-project/pull/68705 >From ca4d1bbdeb4ea541199e3db3518b35eb2d5a8cad Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Tue, 10 Oct 2023 15:07:56 +0300 Subject: [PATCH 1/4] [lldb] Add SBType::FindNestedType() function --- lldb/

[Lldb-commits] [lldb] [InstCombine] Canonicalize `(X +/- Y) & Y` into `~X & Y` when Y is a power of 2 (PR #67915)

2023-10-12 Thread Yingwei Zheng via lldb-commits
https://github.com/dtcxzyw closed https://github.com/llvm/llvm-project/pull/67915 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][lldb-vscode] Add example configuration for connecting to a remote gdbserver (PR #68866)

2023-10-12 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: David Spickett (DavidSpickett) Changes This can be used to have VS Code debug various emulators, remote systems, hardware probes, etc. In my case I was doing this for the Gameboy Advance, https://github.com/stuij/gba-llvm-devkit/blob/main

[Lldb-commits] [lldb] [lldb][lldb-vscode] Add example configuration for connecting to a remote gdbserver (PR #68866)

2023-10-12 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/68866 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][lldb-vscode] Add example configuration for connecting to a remote gdbserver (PR #68866)

2023-10-12 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/68866 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][lldb-vscode] Add example configuration for connecting to a rem… (PR #68866)

2023-10-12 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett created https://github.com/llvm/llvm-project/pull/68866 …ote gdbserver This can be used to have VS Code debug various emulators, remote systems, hardware probes, etc. In my case I was doing this for the Gameboy Advance, https://github.com/stuij/gba-llvm-devki

[Lldb-commits] [lldb] [InstCombine] Canonicalize `(X +/- Y) & Y` into `~X & Y` when Y is a power of 2 (PR #67915)

2023-10-12 Thread Nikita Popov via lldb-commits
https://github.com/nikic approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/67915 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] add stop-at-user-entry option to process launch (PR #67019)

2023-10-12 Thread David Spickett via lldb-commits
DavidSpickett wrote: Thanks for working on this! It's going to save me a lot of "b main" in the future. https://github.com/llvm/llvm-project/pull/67019 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/li

[Lldb-commits] [lldb] [lldb] Add SBType::FindNestedType() function (PR #68705)

2023-10-12 Thread Michael Buch via lldb-commits
Michael137 wrote: > It's not clear to me whether `TypeSystem::DeclContextIsContainedInLookup` > provides such a guarantee. Implementation suggests that it's only interested > in direct `DeclContext`, maybe ignoring transparent decl contexts like inline > namespace it already handles. I hope re

  1   2   >