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

2024-10-14 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/112315.diff 1 Files Affected: - (modified) lldb/source/Commands/CommandObjectMultiword.cpp (+1-10) ``diff diff --git a/lldb/source/

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

2024-10-14 Thread Kazu Hirata via lldb-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/112315 None >From 70d0a4b3ce6445dd182225df09aecf450b4073ec Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Mon, 14 Oct 2024 23:11:09 -0700 Subject: [PATCH] [lldb] Avoid repeated map lookups (NFC) --- lldb/so

[Lldb-commits] [clang] [lldb] [llvm] [APInt] Fix APInt constructions where value does not fit bitwidth (NFCI) (PR #80309)

2024-10-14 Thread David Green via lldb-commits
@@ -1159,7 +1159,9 @@ class ARMOperand : public MCParsedAsmOperand { if (!isImm()) return false; const MCConstantExpr *CE = dyn_cast(getImm()); if (!CE) return false; davemgreen wrote: Can this check that CE->getActiveBits() > 32? https://github.c

[Lldb-commits] [lldb] [LoongArch64]: Add support for LoongArch64 in elf-core for lldb (PR #112296)

2024-10-14 Thread Lu Weining via lldb-commits
@@ -0,0 +1,87 @@ +//===-- RegisterContextPOSIXCore_loongarch64.cpp +//--===// SixWeining wrote: format https://github.com/llvm/llvm-project/pull/112296 ___ lldb-commits mailing list lldb-com

[Lldb-commits] [lldb] [LoongArch64]: Add support for LoongArch64 in elf-core for lldb (PR #112296)

2024-10-14 Thread Lu Weining via lldb-commits
@@ -0,0 +1,62 @@ +//===-- RegisterContextPOSIXCore_loongarch64.h --*- C++ +//-*-===// SixWeining wrote: ditto https://github.com/llvm/llvm-project/pull/112296 ___ lldb-commits mailing list lldb-comm

[Lldb-commits] [lldb] [LoongArch64]: Add support for LoongArch64 in elf-core for lldb (PR #112296)

2024-10-14 Thread Lu Weining via lldb-commits
https://github.com/SixWeining edited https://github.com/llvm/llvm-project/pull/112296 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [LoongArch64]: Add support for LoongArch64 in elf-core for lldb (PR #112296)

2024-10-14 Thread Lu Weining via lldb-commits
https://github.com/SixWeining commented: @wangleiat may take a look. https://github.com/llvm/llvm-project/pull/112296 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Avoid repeated hash lookups (NFC) (PR #112301)

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

[Lldb-commits] [lldb] [LoongArch64]: Add support for LoongArch64 in elf-core for lldb (PR #112296)

2024-10-14 Thread Qiao Pengcheng via lldb-commits
shushanhf wrote: > @shushanhf @SixWeining https://github.com/llvm/llvm-project/pull/112296 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [LoongArch64]: Add support for LoongArch64 in elf-core for lldb (PR #112296)

2024-10-14 Thread Liu An via lldb-commits
lawn123 wrote: @shushanhf https://github.com/llvm/llvm-project/pull/112296 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [LoongArch64]: Add support for LoongArch64 in elf-core for lldb (PR #112296)

2024-10-14 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Liu An (lawn123) Changes When using the lldb command 'target create -- core' on the LoongArch64 architecture, this part of the code is required. --- Full diff: https://github.com/llvm/llvm-project/pull/112296.diff 4 Files Affected: - (m

[Lldb-commits] [lldb] [LoongArch64]: Add support for LoongArch64 in elf-core for lldb (PR #112296)

2024-10-14 Thread via lldb-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[Lldb-commits] [lldb] [LoongArch64]: Add support for LoongArch64 in elf-core for lldb (PR #112296)

2024-10-14 Thread Liu An via lldb-commits
https://github.com/lawn123 created https://github.com/llvm/llvm-project/pull/112296 When using the lldb command 'target create -- core' on the LoongArch64 architecture, this part of the code is required. >From ba485de763a08f6ff3c7468c1a1bfbbfb25ac48f Mon Sep 17 00:00:00 2001 From: Liu An Date

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

2024-10-14 Thread Vladimir Vereschaka via lldb-commits
https://github.com/vvereschaka closed https://github.com/llvm/llvm-project/pull/111977 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

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

2024-10-14 Thread via lldb-commits
Author: Vladislav Dzhidzhoev Date: 2024-10-14T17:35:55-07:00 New Revision: 1cb83147801a4b4bac193e1aa94a05853ab09c68 URL: https://github.com/llvm/llvm-project/commit/1cb83147801a4b4bac193e1aa94a05853ab09c68 DIFF: https://github.com/llvm/llvm-project/commit/1cb83147801a4b4bac193e1aa94a05853ab09c6

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

2024-10-14 Thread Vladimir Vereschaka via lldb-commits
vvereschaka wrote: @dzhidzhoev is sick. I'll merge this MR for him. https://github.com/llvm/llvm-project/pull/111977 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Remove ASL (Apple System Log) support from debugserver (NFC) (PR #112260)

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

[Lldb-commits] [lldb] 8225938 - [lldb] Remove ASL (Apple System Log) support from debugserver (NFC) (#112260)

2024-10-14 Thread via lldb-commits
Author: Jonas Devlieghere Date: 2024-10-14T17:06:02-07:00 New Revision: 8225938a73406f26e599c7a55fa019422fe18369 URL: https://github.com/llvm/llvm-project/commit/8225938a73406f26e599c7a55fa019422fe18369 DIFF: https://github.com/llvm/llvm-project/commit/8225938a73406f26e599c7a55fa019422fe18369.d

[Lldb-commits] [lldb] [lldb] Remove ASL (Apple System Log) support from debugserver (NFC) (PR #112260)

2024-10-14 Thread Jason Molenda via lldb-commits
https://github.com/jasonmolenda approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/112260 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

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

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

[Lldb-commits] [lldb] [LLDB][SBSaveCore] Add Extension to Save a thread and N pointers deep (PR #111601)

2024-10-14 Thread Jacob Lalonde via lldb-commits
Jlalond wrote: This does require us to walk the stack backwards instead of just taking the `0th` frame https://github.com/llvm/llvm-project/pull/111601 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/li

[Lldb-commits] [lldb] 6539481 - [lldb] Account for DWARF 5 sections in TestCTF.py

2024-10-14 Thread Jonas Devlieghere via lldb-commits
Author: Jonas Devlieghere Date: 2024-10-14T16:57:33-07:00 New Revision: 6539481c8e7a840a41f6835426ddfbcdc234c831 URL: https://github.com/llvm/llvm-project/commit/6539481c8e7a840a41f6835426ddfbcdc234c831 DIFF: https://github.com/llvm/llvm-project/commit/6539481c8e7a840a41f6835426ddfbcdc234c831.d

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

2024-10-14 Thread Vy Nguyen via lldb-commits
oontvoo wrote: Can I merge this? Or would anyone else like to have another look/comments? Thanks! https://github.com/llvm/llvm-project/pull/111891 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinf

[Lldb-commits] [lldb] 9eddc8b - [lldb] Expose structured command diagnostics via the SBAPI. (#112109)

2024-10-14 Thread via lldb-commits
Author: Adrian Prantl Date: 2024-10-14T16:29:26-07:00 New Revision: 9eddc8b9bf4e4e0b01e2ecc90a71c4b3b4e9c8af URL: https://github.com/llvm/llvm-project/commit/9eddc8b9bf4e4e0b01e2ecc90a71c4b3b4e9c8af DIFF: https://github.com/llvm/llvm-project/commit/9eddc8b9bf4e4e0b01e2ecc90a71c4b3b4e9c8af.diff

[Lldb-commits] [lldb] [lldb] Expose structured command diagnostics via the SBAPI. (PR #112109)

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

[Lldb-commits] [lldb] [lldb] Expose structured command diagnostics via the SBAPI. (PR #112109)

2024-10-14 Thread Adrian Prantl via lldb-commits
https://github.com/adrian-prantl updated https://github.com/llvm/llvm-project/pull/112109 >From 23e1eeafd84d0f14803da52f89723a3ae257dbb8 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Fri, 11 Oct 2024 19:27:37 -0700 Subject: [PATCH] [lldb] Expose structured command diagnostics via the SBAPI

[Lldb-commits] [lldb] [lldb] Remove ASL (Apple System Log) support from debugserver (NFC) (PR #112260)

2024-10-14 Thread Adrian Prantl via lldb-commits
https://github.com/adrian-prantl approved this pull request. https://github.com/llvm/llvm-project/pull/112260 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] DynamicLoaderDarwin load images in parallel with preload (PR #110646)

2024-10-14 Thread Jonas Devlieghere via lldb-commits
@@ -642,26 +652,86 @@ ModuleSP DynamicLoaderDarwin::GetDYLDModule() { void DynamicLoaderDarwin::ClearDYLDModule() { m_dyld_module_wp.reset(); } +template +static std::vector parallel_map( +llvm::ThreadPoolInterface &threadPool, InputIterator first, +InputIterator las

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

2024-10-14 Thread Adrian Prantl via lldb-commits
adrian-prantl wrote: > @adrian-prantl do you want the system log to include the dropped errors in > `Status`. If so we'll need to promote that to use `LLDB_LOG_ERROR` instead. No, I expect that to be too much traffic in the beginning at least. https://github.com/llvm/llvm-project/pull/111911 _

[Lldb-commits] [lldb] DynamicLoaderDarwin load images in parallel with preload (PR #110646)

2024-10-14 Thread Dmitrii Galimzianov via lldb-commits
@@ -642,26 +652,86 @@ ModuleSP DynamicLoaderDarwin::GetDYLDModule() { void DynamicLoaderDarwin::ClearDYLDModule() { m_dyld_module_wp.reset(); } +template +static std::vector parallel_map( +llvm::ThreadPoolInterface &threadPool, InputIterator first, +InputIterator las

[Lldb-commits] [lldb] d8de239 - Revert "[lldb] Improve unwinding for discontinuous functions (#111409)"

2024-10-14 Thread Shubham Sandeep Rastogi via lldb-commits
Author: Shubham Sandeep Rastogi Date: 2024-10-14T15:27:05-07:00 New Revision: d8de2391eb014fb3f750f4c38abc101edc1e2cc2 URL: https://github.com/llvm/llvm-project/commit/d8de2391eb014fb3f750f4c38abc101edc1e2cc2 DIFF: https://github.com/llvm/llvm-project/commit/d8de2391eb014fb3f750f4c38abc101edc1e

[Lldb-commits] [lldb] [lldb] Improve unwinding for discontinuous functions (PR #111409)

2024-10-14 Thread Shubham Sandeep Rastogi via lldb-commits
rastogishubham wrote: Hi this patch broke Unwind/trap_frame_sym_ctx.test in greendragon, you can see the link to the failing build here: https://green.lab.llvm.org/job/llvm.org/view/LLDB/job/lldb-cmake/6724/consoleFull#-1880437047d6fdb6cb-f376-4f2e-8bce-d31c7304698b I will be reverting this ch

[Lldb-commits] [lldb] [lldb][test] Fix TestStdCXXDisassembly test for case when tests are linked with libc++ statically (PR #98694)

2024-10-14 Thread Dmitry Vasilyev via lldb-commits
https://github.com/slydiman approved this pull request. Thanks https://github.com/llvm/llvm-project/pull/98694 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

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

2024-10-14 Thread Jonas Devlieghere via lldb-commits
JDevlieghere wrote: Depends on: - https://github.com/llvm/llvm-project/pull/112260 - https://github.com/llvm/llvm-project/pull/112262 Remaining issues: - IRDynamicChecks.cpp:333:72: warning: 'InsertPosition' is deprecated: Use BasicBlock::iterators for insertion instead [-Wdeprecated-declar

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

2024-10-14 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere created https://github.com/llvm/llvm-project/pull/112276 Currently all of LLDB is being compiled with -Wno-deprecated-declarations. That's not desirable, especially as part of the LLVM monorepo, as we miss deprecation warnings from LLVM and clang. According to

[Lldb-commits] [lldb] DynamicLoaderDarwin load images in parallel with preload (PR #110646)

2024-10-14 Thread Dmitrii Galimzianov via lldb-commits
https://github.com/DmT021 edited https://github.com/llvm/llvm-project/pull/110646 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] DynamicLoaderDarwin load images in parallel with preload (PR #110646)

2024-10-14 Thread Jonas Devlieghere via lldb-commits
@@ -642,26 +652,86 @@ ModuleSP DynamicLoaderDarwin::GetDYLDModule() { void DynamicLoaderDarwin::ClearDYLDModule() { m_dyld_module_wp.reset(); } +template +static std::vector parallel_map( +llvm::ThreadPoolInterface &threadPool, InputIterator first, +InputIterator las

[Lldb-commits] [lldb] [lldb] Use CFPropertyListCreateData in debugserver (NFC) (PR #112262)

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

[Lldb-commits] [lldb] 9cc6e6f - [lldb] Use CFPropertyListCreateData in debugserver (NFC) (#112262)

2024-10-14 Thread via lldb-commits
Author: Jonas Devlieghere Date: 2024-10-14T14:30:32-07:00 New Revision: 9cc6e6f71c117c3c47f3eee253c8a429118c11e5 URL: https://github.com/llvm/llvm-project/commit/9cc6e6f71c117c3c47f3eee253c8a429118c11e5 DIFF: https://github.com/llvm/llvm-project/commit/9cc6e6f71c117c3c47f3eee253c8a429118c11e5.d

[Lldb-commits] [lldb] DynamicLoaderDarwin load images in parallel with preload (PR #110646)

2024-10-14 Thread Jason Molenda via lldb-commits
jasonmolenda wrote: @DmT021 I will, can you edit the Description in this PR for the commit message that will be recorded? https://github.com/llvm/llvm-project/pull/110646 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org

[Lldb-commits] [lldb] [lldb] Use CFPropertyListCreateData in debugserver (NFC) (PR #112262)

2024-10-14 Thread Jason Molenda via lldb-commits
https://github.com/jasonmolenda approved this pull request. LGTM, honestly i'm not sure we even use `ListApplications` in debugserver any longer, but this looks correct. https://github.com/llvm/llvm-project/pull/112262 ___ lldb-commits mailing list ll

[Lldb-commits] [lldb] [lldb] Use CFPropertyListCreateData in debugserver (NFC) (PR #112262)

2024-10-14 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere updated https://github.com/llvm/llvm-project/pull/112262 >From 325d131bd24947a9be1f50a22ca9600c19c8dc84 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Mon, 14 Oct 2024 14:19:24 -0700 Subject: [PATCH] [lldb] Use CFPropertyListCreateData in debugserver (NFC

[Lldb-commits] [lldb] [lldb] Use CFPropertyListCreateData in debugserver (NFC) (PR #112262)

2024-10-14 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Jonas Devlieghere (JDevlieghere) Changes CFPropertyListCreateXMLData has been deprecated since macOS 10.10. Use CFPropertyListCreateData instead. --- Full diff: https://github.com/llvm/llvm-project/pull/112262.diff 4 Files Affected: - (

[Lldb-commits] [lldb] [lldb] Use CFPropertyListCreateData in debugserver (NFC) (PR #112262)

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

[Lldb-commits] [lldb] [lldb] Use CFPropertyListCreateData in debug server (NFC) (PR #112262)

2024-10-14 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere created https://github.com/llvm/llvm-project/pull/112262 CFPropertyListCreateXMLData has been deprecated since macOS 10.10. Use CFPropertyListCreateData instead. >From 9048d3a65e9478d5b25338bef656f69c2fc65969 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Dat

[Lldb-commits] [lldb] [lldb] Remove ASL (Apple System Log) support from debugserver (NFC) (PR #112260)

2024-10-14 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Jonas Devlieghere (JDevlieghere) Changes Remove support for ASL (Apple System Log) which has been deprecated since macOS 10.12. Fixes the following warnings: warning: 'asl_new' is deprecated: first deprecated in macOS 10.12 - os_log(3)

[Lldb-commits] [lldb] [lldb] Remove ASL (Apple System Log) support from debugserver (NFC) (PR #112260)

2024-10-14 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere created https://github.com/llvm/llvm-project/pull/112260 Remove support for ASL (Apple System Log) which has been deprecated since macOS 10.12. Fixes the following warnings: warning: 'asl_new' is deprecated: first deprecated in macOS 10.12 - os_log(3) has rep

[Lldb-commits] [lldb] [LLDB][SBSaveCore] Add Extension to Save a thread and N pointers deep (PR #111601)

2024-10-14 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/111601 >From 2d693e8208ea99fc57b1137668ee0e12777ab767 Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Tue, 8 Oct 2024 15:52:45 -0700 Subject: [PATCH 1/7] Create new extension for save core to save a thread and N po

[Lldb-commits] [lldb] [lldb] Escape ? for zsh (PR #112107)

2024-10-14 Thread Keith Smiley via lldb-commits
keith wrote: Oh yea great point. I guess another way to put that is if I copy the exact same invocation and run it directly it works, so that differing is unexpected. https://github.com/llvm/llvm-project/pull/112107 ___ lldb-commits mailing list lldb

[Lldb-commits] [lldb] DynamicLoaderDarwin load images in parallel with preload (PR #110646)

2024-10-14 Thread Dmitrii Galimzianov via lldb-commits
DmT021 wrote: @jasonmolenda All the tests are green but I don't have the merge button. Can you merge it, please? https://github.com/llvm/llvm-project/pull/110646 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/

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

2024-10-14 Thread Robert O'Callahan via lldb-commits
rocallahan wrote: > I'd say that this is failing because macos generates slightly different > packet sequences, and the test is not expecting those. Makes sense. But given Mac tests don't run against PRs, and I don't have a Mac, how am I supposed to debug this? https://github.com/llvm/llvm-pr

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

2024-10-14 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: > In fact, I ran into that on Friday myself. I checked `LLDB_INCLUDE_TESTS=Off`

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

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

[Lldb-commits] [lldb] [lldb] Expose structured command diagnostics via the SBAPI. (PR #112109)

2024-10-14 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere approved this pull request. LGTM with the other comments addressed. https://github.com/llvm/llvm-project/pull/112109 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

[Lldb-commits] [lldb] [lldb] Escape ? for zsh (PR #112107)

2024-10-14 Thread Dave Lee via lldb-commits
kastiglione wrote: > so they know they have to escape it depending on their use case in the example shown, `"some arg?"` is quoted, which normally escapes a glob. Do we really need to force an additional level of escaping on users? Hopefully not but I can see that this is tricky. https://gith

[Lldb-commits] [lldb] [lldb] Expose structured command diagnostics via the SBAPI. (PR #112109)

2024-10-14 Thread Adrian Prantl via lldb-commits
@@ -123,30 +123,79 @@ void CommandReturnObject::SetError(llvm::Error error) { } } -llvm::StringRef -CommandReturnObject::GetInlineDiagnosticString(unsigned indent) { - RenderDiagnosticDetails(m_diag_stream, indent, true, m_diagnostics); +std::string CommandReturnObject::Get

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

2024-10-14 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-14 Thread Alex Langford via lldb-commits
@@ -136,6 +136,8 @@ class LLDB_API SBWatchpoint; class LLDB_API SBWatchpointOptions; class LLDB_API SBUnixSignals; +typedef SourceLanguageName SBSourceLanguageName; bulbazord wrote: I'm not sure a typedef is enough here. It ends up being little more than syn

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

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

[Lldb-commits] [lldb] [lldb] Expose structured command diagnostics via the SBAPI. (PR #112109)

2024-10-14 Thread Alex Langford via lldb-commits
@@ -123,30 +123,79 @@ void CommandReturnObject::SetError(llvm::Error error) { } } -llvm::StringRef -CommandReturnObject::GetInlineDiagnosticString(unsigned indent) { - RenderDiagnosticDetails(m_diag_stream, indent, true, m_diagnostics); +std::string CommandReturnObject::Get

[Lldb-commits] [lldb] [lldb] Expose structured command diagnostics via the SBAPI. (PR #112109)

2024-10-14 Thread Alex Langford via lldb-commits
@@ -3187,11 +3185,12 @@ void CommandInterpreter::IOHandlerInputComplete(IOHandler &io_handler, io_handler.GetFlags().Test(eHandleCommandFlagPrintResult)) || io_handler.GetFlags().Test(eHandleCommandFlagPrintErrors)) { // Display any inline diagnostics first. -

[Lldb-commits] [lldb] [lldb] Expose structured command diagnostics via the SBAPI. (PR #112109)

2024-10-14 Thread Alex Langford via lldb-commits
@@ -2636,20 +2636,18 @@ void CommandInterpreter::HandleCommands(const StringList &commands, } if (!success || !tmp_result.Succeeded()) { - llvm::StringRef error_msg = tmp_result.GetErrorString(); + std::string error_msg = tmp_result.GetErrorString();

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

2024-10-14 Thread Jonas Devlieghere via lldb-commits
JDevlieghere wrote: Let me try to provide a bit more context. Darwin has the concept of a [sysdiagnose](https://it-training.apple.com/tutorials/support/sup075/). It's essentially an archive with diagnostic files, including crashlogs and a dump of the last few minutes of the system log. On our

[Lldb-commits] [clang] [clang-tools-extra] [lldb] [c++20] P1907R1: Support for generalized non-type template arguments of scalar type. (PR #78041)

2024-10-14 Thread Shafik Yaghmour via lldb-commits
shafik wrote: This crash is due to this set of changes: https://github.com/llvm/llvm-project/issues/11 https://github.com/llvm/llvm-project/pull/78041 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman

[Lldb-commits] [lldb] [lldb] Expose structured command diagnostics via the SBAPI. (PR #112109)

2024-10-14 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben approved this pull request. LGTM with comments. https://github.com/llvm/llvm-project/pull/112109 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Expose structured command diagnostics via the SBAPI. (PR #112109)

2024-10-14 Thread Med Ismail Bennani via lldb-commits
@@ -45,13 +45,14 @@ class LLDB_API SBCommandReturnObject { const char *GetOutput(); const char *GetError(); + SBStructuredData GetErrorData(); #ifndef SWIG LLDB_DEPRECATED_FIXME("Use PutOutput(SBFile) or PutOutput(FileSP)", "PutOutput(SBFile

[Lldb-commits] [lldb] [lldb] Expose structured command diagnostics via the SBAPI. (PR #112109)

2024-10-14 Thread Med Ismail Bennani via lldb-commits
medismailben wrote: ditto (line returns) https://github.com/llvm/llvm-project/pull/112109 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Expose structured command diagnostics via the SBAPI. (PR #112109)

2024-10-14 Thread Med Ismail Bennani via lldb-commits
@@ -184,53 +184,26 @@ def test_source_locations_from_objc_modules(self): # the first argument are probably stable enough that this test can check for them. self.assertIn("void NSLog(NSString *format", value.GetError().GetCString()) -def test_command_expr_

[Lldb-commits] [lldb] [lldb] Expose structured command diagnostics via the SBAPI. (PR #112109)

2024-10-14 Thread Med Ismail Bennani via lldb-commits
@@ -485,35 +485,8 @@ bool CommandObjectExpression::EvaluateExpression(llvm::StringRef expr, result.SetStatus(eReturnStatusSuccessFinishResult); } else { -// Retrieve the diagnostics. -std::vector details; -llvm::consumeError(llvm::handleE

[Lldb-commits] [lldb] [lldb] Expose structured command diagnostics via the SBAPI. (PR #112109)

2024-10-14 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben edited https://github.com/llvm/llvm-project/pull/112109 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] DynamicLoaderDarwin load images in parallel with preload (PR #110646)

2024-10-14 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Dmitrii Galimzianov (DmT021) Changes This is another approach to the goal described in [this PR](https://github.com/llvm/llvm-project/pull/110439). This PR is provided just for convenience. --- Patch is 23.83 KiB, truncated to 20.00 KiB

[Lldb-commits] [lldb] [lldb] Improve unwinding for discontinuous functions (PR #111409)

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

[Lldb-commits] [lldb] a89e016 - [lldb] Improve unwinding for discontinuous functions (#111409)

2024-10-14 Thread via lldb-commits
Author: Pavel Labath Date: 2024-10-14T18:56:37+02:00 New Revision: a89e01634fe2e6ce0b967ead24280b6693b523dc URL: https://github.com/llvm/llvm-project/commit/a89e01634fe2e6ce0b967ead24280b6693b523dc DIFF: https://github.com/llvm/llvm-project/commit/a89e01634fe2e6ce0b967ead24280b6693b523dc.diff

[Lldb-commits] [lldb] [lldb] Improve unwinding for discontinuous functions (PR #111409)

2024-10-14 Thread Pavel Labath via lldb-commits
labath wrote: Yeah, I plan to look into Function::GetAddressRange and see how we can make it do something reasonable for these kinds of functions (probably by having it return a list of ranges). That will likely involve looking at the users of that API as well, although I'm less than enthusias

[Lldb-commits] [lldb] [lldb] Escape ? for zsh (PR #112107)

2024-10-14 Thread Keith Smiley via lldb-commits
keith wrote: hmm good point. I wonder if the fix here should be around surfacing the error to users then, so they know they have to escape it depending on their use case https://github.com/llvm/llvm-project/pull/112107 ___ lldb-commits mailing list ll

[Lldb-commits] [lldb] DynamicLoaderDarwin load images in parallel with preload (PR #110646)

2024-10-14 Thread Dmitrii Galimzianov via lldb-commits
https://github.com/DmT021 updated https://github.com/llvm/llvm-project/pull/110646 >From 64a4d69d1bb3f32c4b303d6f45b45cdf513183c2 Mon Sep 17 00:00:00 2001 From: Dmitrii Galimzianov Date: Sun, 29 Sep 2024 22:24:19 +0200 Subject: [PATCH 1/2] DynamicLoaderDarwin load images in parallel --- .../D

[Lldb-commits] [lldb] DynamicLoaderDarwin load images in parallel with preload (PR #110646)

2024-10-14 Thread Dmitrii Galimzianov via lldb-commits
https://github.com/DmT021 ready_for_review https://github.com/llvm/llvm-project/pull/110646 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

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

2024-10-14 Thread via lldb-commits
@@ -70,6 +70,8 @@ class CommandObjectMultiword : public CommandObject { return m_subcommand_dict; } + std::string GetTopSubcommands(int count); jimingham wrote: Sure, that's fine too. https://github.com/llvm/llvm-project/pull/111891 __

[Lldb-commits] [lldb] DynamicLoaderDarwin load images in parallel (PR #110439)

2024-10-14 Thread Jason Molenda via lldb-commits
jasonmolenda wrote: Sounds good, I agree. I marked https://github.com/llvm/llvm-project/pull/110646 as approved, please merge at your convenience. Thanks again for spotting this opportunity for multithreading and seeing it through! https://github.com/llvm/llvm-project/pull/110439 __

[Lldb-commits] [lldb] DynamicLoaderDarwin load images in parallel with preload (PR #110646)

2024-10-14 Thread Jason Molenda via lldb-commits
https://github.com/jasonmolenda approved this pull request. Most of the review and discussion happened in the "non-preload" version of the PR ( https://github.com/llvm/llvm-project/pull/110439 ), but I agree with Dmitrii that this is the best approach to merge, this is approved. Very nice job

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

2024-10-14 Thread via lldb-commits
https://github.com/jimingham commented: 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-14 Thread via lldb-commits
jimingham wrote: The best I can reconstruct, these were GetData because of the StreamString API name. That's not a good reason, and after all they do return strings, so this makes sense. https://github.com/llvm/llvm-project/pull/112062 ___ lldb-comm

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

2024-10-14 Thread Pavel Labath via lldb-commits
@@ -194,28 +194,54 @@ 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-14 Thread Pavel Labath via lldb-commits
@@ -194,28 +194,54 @@ 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-14 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: P.S: Actually, didn't end up renaming it Jim's suggestion, but to something else, hopefully

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

2024-10-14 Thread Vy Nguyen via lldb-commits
https://github.com/oontvoo edited https://github.com/llvm/llvm-project/pull/111891 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] DynamicLoaderDarwin load images in parallel (PR #110439)

2024-10-14 Thread Dmitrii Galimzianov via lldb-commits
DmT021 wrote: > I think that's where the real perf difference you were measuring kicked in > (you showed a 10.5 second versus 13.4 second time difference for preload > versus parallel in the beginning), do I have that right? That's right. > Do you prefer the non-preload approach? No, I thin

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

2024-10-14 Thread David Spickett via lldb-commits
DavidSpickett wrote: > Log errors to the system log if they would otherwise get dropped Dropped because of what exactly, because the user did not enable a channel that would include them? How does one enable collection of these with the current lldb? > @DavidSpickett, do you have any thoughts

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

2024-10-14 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/4] [LLDB]Provide clearer error message for invalid commands. Somet

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

2024-10-14 Thread Vy Nguyen via lldb-commits
@@ -0,0 +1,8 @@ +# UNSUPPORTED: system-windows +# +# RUN: %clang_host -g -O0 %S/Inputs/main.c -o %t.out +# RUN: not %lldb -b -o 'breakpoint foo' %t.out -o exit 2>&1 | FileCheck %s --check-prefix BP-MSG +# RUN: not %lldb -b -o 'watchpoint set foo' %t.out -o exit 2>&1 | FileCheck %

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

2024-10-14 Thread Vy Nguyen via lldb-commits
@@ -194,28 +194,54 @@ 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] [lldb] [llvm] [APInt] Fix APInt constructions where value does not fit bitwidth (NFCI) (PR #80309)

2024-10-14 Thread Yingwei Zheng via lldb-commits
dtcxzyw wrote: `APInt::getAllOnes` will assert if `BitWidth == 0`. ``` [--] 6 tests from APFloatTest [ RUN ] APFloatTest.MinimumNumber [ OK ] APFloatTest.MinimumNumber (0 ms) [ RUN ] APFloatTest.Float8E8M0FNUValues ADTTests: /home/dtcxzyw/WorkSpace/Projects/compilers/llvm

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

2024-10-14 Thread Pavel Labath via lldb-commits
labath wrote: > Should it work? It should, and I suspect (I haven't seen the error msg, do you have a link?) that the problem isn't in this part of the code. If I had to guess, I'd say that this is failing because macos generates slightly different packet sequences, and the test is not expect

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

2024-10-14 Thread Pavel Labath via lldb-commits
labath wrote: > Regarding limiting the output, I'm happy to draw the line at > `LLDB_LOG_ERRORV`. The system log is pretty cheap on our platform and I > assumed it's the same on Linux, so personally I would hope it doesn't deter > anyone from using `LLDB_LOG_ERROR`. >From the looks of things,

[Lldb-commits] [clang] [lldb] [llvm] [APInt] Fix APInt constructions where value does not fit bitwidth (NFCI) (PR #80309)

2024-10-14 Thread Simon Pilgrim via lldb-commits
@@ -171,7 +171,7 @@ bool HexagonGenExtract::convert(Instruction *In) { // this value. if (!LogicalSR && (SR > SL)) return false; -APInt A = APInt(BW, ~0ULL).lshr(SR).shl(SL); +APInt A = APInt(BW, ~0ULL, true).lshr(SR).shl(SL); RKSimon wrot

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

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

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

2024-10-14 Thread via lldb-commits
Author: Jonas Devlieghere Date: 2024-10-14T15:02:02+01:00 New Revision: 3dedcab6d9b660a690d8fe5ddad3d43276a82708 URL: https://github.com/llvm/llvm-project/commit/3dedcab6d9b660a690d8fe5ddad3d43276a82708 DIFF: https://github.com/llvm/llvm-project/commit/3dedcab6d9b660a690d8fe5ddad3d43276a82708.d

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

2024-10-14 Thread David Spickett via lldb-commits
DavidSpickett wrote: Merging to fix our Windows bot. https://github.com/llvm/llvm-project/pull/112052 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

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

2024-10-14 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett approved this pull request. https://github.com/llvm/llvm-project/pull/112052 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [clang] [lldb] [llvm] [APInt] Fix APInt constructions where value does not fit bitwidth (NFCI) (PR #80309)

2024-10-14 Thread Yingwei Zheng via lldb-commits
https://github.com/dtcxzyw commented: Middle-end/CodeGen/RISC-V changes LGTM. https://github.com/llvm/llvm-project/pull/80309 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

  1   2   >