[Lldb-commits] [lldb] [lldb][NFC] Move few static helpers to the class Socket (PR #106640)

2024-09-03 Thread Pavel Labath via lldb-commits
@@ -34,9 +34,11 @@ namespace lldb_private { #if defined(_WIN32) typedef SOCKET NativeSocket; typedef lldb::pipe_t shared_fd_t; +typedef const char *set_socket_option_arg_type; labath wrote: Instead of exposing this quirk, it would be better to have a static ve

[Lldb-commits] [lldb] [lldb] Do not use LC_FUNCTION_STARTS data to determine symbol size as symbols are created (PR #106791)

2024-09-03 Thread Greg Clayton via lldb-commits
clayborg wrote: We already have bits that know if the size is synthesize in `lldb_private::Symbol::m_size_is_synthesized` and we have a bit that tracks is the size is valid with `lldb_private::Symbol::m_size_is_valid`. We could accomplish this `size on demand` feature by letting clients subcla

[Lldb-commits] [lldb] [lldb] Do not use LC_FUNCTION_STARTS data to determine symbol size as symbols are created (PR #106791)

2024-09-03 Thread Greg Clayton via lldb-commits
https://github.com/clayborg commented: All symbol sizes are zero for mach-o symbols unless they come from the debug map as there is no size field in nlist entries. This PR seems to just not do the work of setting the symbol size at all. Does something try to set the symbol sizes later? Does th

[Lldb-commits] [lldb] [LLDB] Reappply SBSaveCore AddMemoryList (PR #107159)

2024-09-03 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/107159 >From 63a343d2613d09a866180c8bebdf4568e20fd3b7 Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Thu, 29 Aug 2024 10:09:19 -0700 Subject: [PATCH 1/3] =?UTF-8?q?Reapply=20"[LLDB][SBSaveCore]=20Add=20selec?= =?U

[Lldb-commits] [lldb] [lldb] Change the implementation of Status to store an llvm::Error (NFC) (PR #106774)

2024-09-03 Thread Adrian Prantl via lldb-commits
adrian-prantl wrote: So far I broke out https://github.com/llvm/llvm-project/pull/106774 and https://github.com/llvm/llvm-project/pull/107170. I'm still thinking about how to approach Pavel's cloneableError suggestion. https://github.com/llvm/llvm-project/pull/106774 __

[Lldb-commits] [lldb] [lldb] Make deep copies of Status explicit (NFC) (PR #107170)

2024-09-03 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Adrian Prantl (adrian-prantl) Changes Broken out from https://github.com/llvm/llvm-project/pull/106774 for easier review. --- Patch is 108.56 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/1071

[Lldb-commits] [lldb] [lldb] Remove limit on max memory read size (PR #105765)

2024-09-03 Thread LLVM Continuous Integration via lldb-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-aarch64-ubuntu` running on `linaro-lldb-aarch64-ubuntu` while building `lldb` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/59/builds/4279 Here is the relevant piece of the bu

[Lldb-commits] [lldb] [lldb] Remove limit on max memory read size (PR #105765)

2024-09-03 Thread Jason Molenda via lldb-commits
https://github.com/jasonmolenda closed https://github.com/llvm/llvm-project/pull/105765 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] b076f66 - [lldb] Remove limit on max memory read size (#105765)

2024-09-03 Thread via lldb-commits
Author: Jason Molenda Date: 2024-09-03T16:45:28-07:00 New Revision: b076f6640e3c2781410588f4a8e4ccfeed8eb606 URL: https://github.com/llvm/llvm-project/commit/b076f6640e3c2781410588f4a8e4ccfeed8eb606 DIFF: https://github.com/llvm/llvm-project/commit/b076f6640e3c2781410588f4a8e4ccfeed8eb606.diff

[Lldb-commits] [lldb] [lldb] Do not use LC_FUNCTION_STARTS data to determine symbol size as symbols are created (PR #106791)

2024-09-03 Thread Jason Molenda via lldb-commits
jasonmolenda wrote: OK, I see in `Symtab::InitAddressIndexes` we go through the symbol table and calculate the sizes of any entries that don't have a size based on the next symbol, or the end of the section. A little further in ObjectFileMachO::ParseSymtab when we add any LC_FUNCTION_STARTS

[Lldb-commits] [clang] [compiler-rt] [libcxx] [lldb] [llvm] Rename Sanitizer Coverage => Coverage Sanitizer (PR #106505)

2024-09-03 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben approved this pull request. LGTM for lldb's part https://github.com/llvm/llvm-project/pull/106505 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [clang] [clang-tools-extra] [lld] [lldb] [llvm] [mlir] [polly] [NFC] Add explicit #include llvm-config.h where its macros are used. (PR #106810)

2024-09-03 Thread Daniil Fukalov via lldb-commits
https://github.com/dfukalov updated https://github.com/llvm/llvm-project/pull/106810 >From 0221e97459534f0f7396e7970663e1a4f1f98cca Mon Sep 17 00:00:00 2001 From: dfukalov Date: Sat, 31 Aug 2024 01:45:27 +0200 Subject: [PATCH 1/2] [NFC] Add explicit #include llvm-config.h where its macros are

[Lldb-commits] [lldb] [lldb] Make conversions from llvm::Error explicit with Status::FromEr… (PR #107163)

2024-09-03 Thread Adrian Prantl via lldb-commits
https://github.com/adrian-prantl updated https://github.com/llvm/llvm-project/pull/107163 >From 98a56877999a24edd62f9a1b7ef205c8defb686f Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Tue, 3 Sep 2024 15:29:25 -0700 Subject: [PATCH] [lldb] Make conversions from llvm::Error explicit with Sta

[Lldb-commits] [lldb] [lldb] Make conversions from llvm::Error explicit with Status::FromEr… (PR #107163)

2024-09-03 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Adrian Prantl (adrian-prantl) Changes …ror() [NFC] Broken out from https://github.com/llvm/llvm-project/pull/106774 for easier review. --- Patch is 52.99 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-proj

[Lldb-commits] [lldb] [lldb] Make conversions from llvm::Error explicit with Status::FromEr… (PR #107163)

2024-09-03 Thread Adrian Prantl via lldb-commits
https://github.com/adrian-prantl created https://github.com/llvm/llvm-project/pull/107163 …ror() [NFC] Broken out from https://github.com/llvm/llvm-project/pull/106774 for easier review. >From 012b0a7d135a4d4816c78988d6145595c7852b0e Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Tue, 3

[Lldb-commits] [lldb] 7d3b81d - [lldb] Bump the lldb-dap version number

2024-09-03 Thread Jonas Devlieghere via lldb-commits
Author: Jonas Devlieghere Date: 2024-09-03T15:40:39-07:00 New Revision: 7d3b81d06f96bc27673f31a7bd7d141ce4a2777b URL: https://github.com/llvm/llvm-project/commit/7d3b81d06f96bc27673f31a7bd7d141ce4a2777b DIFF: https://github.com/llvm/llvm-project/commit/7d3b81d06f96bc27673f31a7bd7d141ce4a2777b.d

[Lldb-commits] [lldb] [llvm] [Docs] Use cacheable myst_heading_slug_func value (PR #104847)

2024-09-03 Thread Scott Linder via lldb-commits
https://github.com/slinder1 closed https://github.com/llvm/llvm-project/pull/104847 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [LLDB] Reappply SBSaveCore AddMemoryList (PR #107159)

2024-09-03 Thread via lldb-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 18cf14efe3e82b2343817fd174bcac48244c8f50 e79e6561b68ff11f93239ce901de1e02aa0c16c3 --e

[Lldb-commits] [lldb] [LLDB] Reappply SBSaveCore AddMemoryList (PR #107159)

2024-09-03 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Jacob Lalonde (Jlalond) Changes Reapplies #106293, testing identified issue in the merging code. I used this opportunity to strip CoreFileMemoryRanges to it's own file and then add unit tests on it's behavior. --- Patch is 41.75 KiB, tru

[Lldb-commits] [lldb] [LLDB] Reappply SBSaveCore AddMemoryList (PR #107159)

2024-09-03 Thread Jacob Lalonde via lldb-commits
Jlalond wrote: Need to verify this passes `SaveSkinnyCore`. https://github.com/llvm/llvm-project/pull/107159 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [LLDB] Reappply SBSaveCore AddMemoryList (PR #107159)

2024-09-03 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond created https://github.com/llvm/llvm-project/pull/107159 Reapplies #106293, testing identified issue in the merging code. I used this opportunity to strip CoreFileMemoryRanges to it's own file and then add unit tests on it's behavior. >From 63a343d2613d09a866180c8be

[Lldb-commits] [lldb] 18cf14e - [Docs] Use cacheable myst_heading_slug_func value

2024-09-03 Thread Scott Linder via lldb-commits
Author: Scott Linder Date: 2024-09-03T22:05:03Z New Revision: 18cf14efe3e82b2343817fd174bcac48244c8f50 URL: https://github.com/llvm/llvm-project/commit/18cf14efe3e82b2343817fd174bcac48244c8f50 DIFF: https://github.com/llvm/llvm-project/commit/18cf14efe3e82b2343817fd174bcac48244c8f50.diff LOG:

[Lldb-commits] [lldb] 98bde7f - [lldb] Avoid FileSpec indirection where we can use SupportFiles directly

2024-09-03 Thread Jonas Devlieghere via lldb-commits
Author: Jonas Devlieghere Date: 2024-09-03T14:38:39-07:00 New Revision: 98bde7fd872c10e49035d5dc5d2f2b44489f6a07 URL: https://github.com/llvm/llvm-project/commit/98bde7fd872c10e49035d5dc5d2f2b44489f6a07 DIFF: https://github.com/llvm/llvm-project/commit/98bde7fd872c10e49035d5dc5d2f2b44489f6a07.d

[Lldb-commits] [lldb] d966d47 - [lldb] Make SupportFile's FileSpec and Checksum const (NFC)

2024-09-03 Thread Jonas Devlieghere via lldb-commits
Author: Jonas Devlieghere Date: 2024-09-03T14:38:34-07:00 New Revision: d966d4708fe5084e47ca3d9d411935d6870aefff URL: https://github.com/llvm/llvm-project/commit/d966d4708fe5084e47ca3d9d411935d6870aefff DIFF: https://github.com/llvm/llvm-project/commit/d966d4708fe5084e47ca3d9d411935d6870aefff.d

[Lldb-commits] [lldb] [lldb][test] Improve toolchain detection in Makefile.rules (PR #102185)

2024-09-03 Thread Vladislav Dzhidzhoev via lldb-commits
https://github.com/dzhidzhoev updated https://github.com/llvm/llvm-project/pull/102185 >From e40ca68a934d0595ebc6c07010a4f6a814fa026f Mon Sep 17 00:00:00 2001 From: Vladislav Dzhidzhoev Date: Sat, 27 Jul 2024 02:39:32 +0200 Subject: [PATCH 01/13] [lldb][test] Improve toolchain detection in Mak

[Lldb-commits] [lldb] [lldb] Fix and speedup the `memory find` command (PR #104193)

2024-09-03 Thread Greg Clayton via lldb-commits
https://github.com/clayborg approved this pull request. https://github.com/llvm/llvm-project/pull/104193 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Change the implementation of Status to store an llvm::Error (NFC) (PR #106774)

2024-09-03 Thread Adrian Prantl via lldb-commits
adrian-prantl wrote: > Two high-level comments: > > * I think that the `FromError`/`clone` changes would be better of as a > separate patch(es). I have no problem with the changes themselves, but I > think it'd be better to separate the meat of this patch from the mechanical > renaming. The r

[Lldb-commits] [lldb] Make env and source map dictionaries #95137 (PR #106919)

2024-09-03 Thread Greg Clayton via lldb-commits
clayborg wrote: Can we modify this patch to support both formats? It should be easy to see if "env" is a dictionary, and if it is, use your new code. If it is an array, use the old parsing code. I would like to make sure this change doesn't break anyone that has existing launch configurations.

[Lldb-commits] [clang] [compiler-rt] [libcxx] [lldb] [llvm] Rename Sanitizer Coverage => Coverage Sanitizer (PR #106505)

2024-09-03 Thread Aaron Ballman via lldb-commits
https://github.com/AaronBallman approved this pull request. Clang bits LGTM https://github.com/llvm/llvm-project/pull/106505 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb-dap] Support inspecting memory (PR #104317)

2024-09-03 Thread Greg Clayton via lldb-commits
clayborg wrote: Ping for my comments? https://github.com/llvm/llvm-project/pull/104317 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [LLDB] Finish implementing support for DW_FORM_data16 (PR #106799)

2024-09-03 Thread Greg Clayton via lldb-commits
https://github.com/clayborg commented: We need the `DWARFFormValue::ExtractValue ` to work. We spoke about pointing the `DWARFFormValue::ValueType::data` at the 16 bytes of data and have the `DWARFFormValue::ValueType::value.uval` contain 16 as the length of the data in `DWARFFormValue::ValueT

[Lldb-commits] [lldb] [lldb] Change the implementation of Status to store an llvm::Error (NFC) (PR #106774)

2024-09-03 Thread Adrian Prantl via lldb-commits
https://github.com/adrian-prantl updated https://github.com/llvm/llvm-project/pull/106774 >From 3ffcc5e1d8a088f3ebd988ab9e18a658149be7f7 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Thu, 29 Aug 2024 17:29:10 -0700 Subject: [PATCH] [lldb] Change the implementation of Status to store an ll

[Lldb-commits] [lldb] [lldb] Change the implementation of Status to store an llvm::Error (NFC) (PR #106774)

2024-09-03 Thread Adrian Prantl via lldb-commits
@@ -33,16 +33,16 @@ class RemoteAwarePlatformTester : public RemoteAwarePlatform { MOCK_METHOD0(CalculateTrapHandlerSymbolNames, void()); MOCK_METHOD2(ResolveExecutable, - std::pair(const ModuleSpec &, - const FileSp

[Lldb-commits] [lldb] [lldb] Change the implementation of Status to store an llvm::Error (NFC) (PR #106774)

2024-09-03 Thread Adrian Prantl via lldb-commits
@@ -96,16 +124,44 @@ Status Status::FromErrorStringWithFormat(const char *format, ...) { return Status(string); } -llvm::Error Status::ToError() const { - if (Success()) -return llvm::Error::success(); - if (m_type == ErrorType::eErrorTypePOSIX) -return llvm::erro

[Lldb-commits] [lldb] [lldb] Change the implementation of Status to store an llvm::Error (NFC) (PR #106774)

2024-09-03 Thread Adrian Prantl via lldb-commits
https://github.com/adrian-prantl updated https://github.com/llvm/llvm-project/pull/106774 >From 992600a058c8dffb0d39a3c840ed03087181376c Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Thu, 29 Aug 2024 17:29:10 -0700 Subject: [PATCH] [lldb] Change the implementation of Status to store an ll

[Lldb-commits] [lldb] [lldb] Change the implementation of Status to store an llvm::Error (NFC) (PR #106774)

2024-09-03 Thread Adrian Prantl via lldb-commits
@@ -96,16 +124,44 @@ Status Status::FromErrorStringWithFormat(const char *format, ...) { return Status(string); } -llvm::Error Status::ToError() const { - if (Success()) -return llvm::Error::success(); - if (m_type == ErrorType::eErrorTypePOSIX) -return llvm::erro

[Lldb-commits] [lldb] [lldb] gdb rsp file error pass fix (PR #106950)

2024-09-03 Thread David Spickett via lldb-commits
@@ -3064,22 +3064,41 @@ static int gdb_errno_to_system(int err) { static uint64_t ParseHostIOPacketResponse(StringExtractorGDBRemote &response, uint64_t fail_result, Status &error) { + // The packet is expected to have the following

[Lldb-commits] [lldb] [lldb] gdb rsp file error pass fix (PR #106950)

2024-09-03 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett commented: Please update the PR description with an explanation of the bug you are fixing, along the lines of the comment you wrote previously. https://github.com/llvm/llvm-project/pull/106950 ___ lldb-commits mailing

[Lldb-commits] [lldb] [lldb] gdb rsp file error pass fix (PR #106950)

2024-09-03 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/106950 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Removed gdbserver ports map from lldb-server (PR #104238)

2024-09-03 Thread Dmitry Vasilyev via lldb-commits
slydiman wrote: Refactored after merging #106955. Acceptor.cpp has been deleted. Please review. Thanks. https://github.com/llvm/llvm-project/pull/104238 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/li

[Lldb-commits] [lldb] [lldb] Removed gdbserver ports map from lldb-server (PR #104238)

2024-09-03 Thread Dmitry Vasilyev via lldb-commits
https://github.com/slydiman edited https://github.com/llvm/llvm-project/pull/104238 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Removed gdbserver ports map from lldb-server (PR #104238)

2024-09-03 Thread Dmitry Vasilyev via lldb-commits
https://github.com/slydiman updated https://github.com/llvm/llvm-project/pull/104238 >From 18b8a835a3182e5be5f0dd848977333d9b8a26fa Mon Sep 17 00:00:00 2001 From: Dmitry Vasilyev Date: Fri, 30 Aug 2024 01:08:24 +0400 Subject: [PATCH] [lldb] Removed gdbserver ports map from lldb-server Listen t

[Lldb-commits] [lldb] [lldb][NFC] Move few static helpers to the class Socket (PR #106640)

2024-09-03 Thread Dmitry Vasilyev via lldb-commits
https://github.com/slydiman edited https://github.com/llvm/llvm-project/pull/106640 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][NFC] Move few static helpers to the class Socket (PR #106640)

2024-09-03 Thread Dmitry Vasilyev via lldb-commits
https://github.com/slydiman edited https://github.com/llvm/llvm-project/pull/106640 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][NFC] Move few static helpers to the class Socket and make them public (PR #106640)

2024-09-03 Thread Dmitry Vasilyev via lldb-commits
https://github.com/slydiman updated https://github.com/llvm/llvm-project/pull/106640 >From fe58bf1f08553b75f089692077abdff0ccaf96bb Mon Sep 17 00:00:00 2001 From: Dmitry Vasilyev Date: Fri, 30 Aug 2024 01:29:58 +0400 Subject: [PATCH] [lldb][NFC] Move few static helpers to the class Socket ---

[Lldb-commits] [lldb] [lldb] Add a callback version of TCPSocket::Accept (PR #106955)

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

[Lldb-commits] [lldb] 3d5e1ec - [lldb] Add a callback version of TCPSocket::Accept (#106955)

2024-09-03 Thread via lldb-commits
Author: Pavel Labath Date: 2024-09-03T13:24:39+02:00 New Revision: 3d5e1ec6508c8425601d4cfaba4c8a8f18791e2b URL: https://github.com/llvm/llvm-project/commit/3d5e1ec6508c8425601d4cfaba4c8a8f18791e2b DIFF: https://github.com/llvm/llvm-project/commit/3d5e1ec6508c8425601d4cfaba4c8a8f18791e2b.diff

[Lldb-commits] [lldb] [lldb/windows] Reset MainLoop events after handling them (PR #107061)

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

[Lldb-commits] [lldb] 4353530 - [lldb/windows] Reset MainLoop events after handling them (#107061)

2024-09-03 Thread via lldb-commits
Author: Pavel Labath Date: 2024-09-03T13:23:07+02:00 New Revision: 4353530a6fc92c5748a73042371c2ddf487433e7 URL: https://github.com/llvm/llvm-project/commit/4353530a6fc92c5748a73042371c2ddf487433e7 DIFF: https://github.com/llvm/llvm-project/commit/4353530a6fc92c5748a73042371c2ddf487433e7.diff

[Lldb-commits] [lldb] [lldb] Support "dereferencing" std::optional in `frame var` (PR #107077)

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

[Lldb-commits] [lldb] a5f03b4 - [lldb] Support "dereferencing" std::optional in `frame var` (#107077)

2024-09-03 Thread via lldb-commits
Author: Pavel Labath Date: 2024-09-03T13:22:31+02:00 New Revision: a5f03b4adcd147aeecc0e0d029660c12fb4d2951 URL: https://github.com/llvm/llvm-project/commit/a5f03b4adcd147aeecc0e0d029660c12fb4d2951 DIFF: https://github.com/llvm/llvm-project/commit/a5f03b4adcd147aeecc0e0d029660c12fb4d2951.diff

[Lldb-commits] [lldb] [lldb/windows] Reset MainLoop events after handling them (PR #107061)

2024-09-03 Thread Dmitry Vasilyev via lldb-commits
https://github.com/slydiman approved this pull request. LGTM, thanks https://github.com/llvm/llvm-project/pull/107061 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Add a callback version of TCPSocket::Accept (PR #106955)

2024-09-03 Thread Dmitry Vasilyev via lldb-commits
https://github.com/slydiman approved this pull request. LGTM, thanks https://github.com/llvm/llvm-project/pull/106955 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Support "dereferencing" std::optional in `frame var` (PR #107077)

2024-09-03 Thread Michael Buch via lldb-commits
@@ -79,6 +79,18 @@ def cleanup(): ], ) +self.expect_var_path("*number_engaged", value="42") +self.expect_var_path("*x", children=[ValueCheck(name="x", value="42")]) +self.expect_var_path("x->x", value="42") + +# The error mes

[Lldb-commits] [lldb] [lldb] Support "dereferencing" std::optional in `frame var` (PR #107077)

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

[Lldb-commits] [lldb] [lldb] Support "dereferencing" std::optional in `frame var` (PR #107077)

2024-09-03 Thread Michael Buch via lldb-commits
https://github.com/Michael137 approved this pull request. Nice, was wishing for this just yesterday https://github.com/llvm/llvm-project/pull/107077 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listin

[Lldb-commits] [lldb] [lldb] Support "dereferencing" std::optional in `frame var` (PR #107077)

2024-09-03 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Pavel Labath (labath) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/107077.diff 3 Files Affected: - (modified) lldb/source/Plugins/Language/CPlusPlus/GenericOptional.cpp (+2) - (modified) lldb/test/API/functionaliti

[Lldb-commits] [lldb] [lldb] Support "dereferencing" std::optional in `frame var` (PR #107077)

2024-09-03 Thread Pavel Labath via lldb-commits
https://github.com/labath created https://github.com/llvm/llvm-project/pull/107077 None >From 86b1e913b0756974b82b69f803238974f249b876 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Tue, 3 Sep 2024 12:15:17 +0200 Subject: [PATCH] [lldb] Support "dereferencing" std::optional --- .../Plugin

[Lldb-commits] [lldb] [lldb/windows] Reset MainLoop events after handling them (PR #107061)

2024-09-03 Thread Pavel Labath via lldb-commits
labath wrote: Yeah, that's probably it. https://github.com/llvm/llvm-project/pull/107061 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb/windows] Reset MainLoop events after handling them (PR #107061)

2024-09-03 Thread David Spickett via lldb-commits
DavidSpickett wrote: Is this related to https://github.com/llvm/llvm-project/issues/106283 as well? https://github.com/llvm/llvm-project/pull/107061 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listin

[Lldb-commits] [lldb] [lldb] Add a callback version of TCPSocket::Accept (PR #106955)

2024-09-03 Thread Pavel Labath via lldb-commits
@@ -95,6 +96,40 @@ TEST_P(SocketTest, TCPListen0ConnectAccept) { &socket_b_up); } +TEST_P(SocketTest, TCPMainLoopAccept) { + const bool child_processes_inherit = false; + auto listen_socket_up = + std::make_unique(true, child_processes_inheri

[Lldb-commits] [lldb] [lldb] Add a callback version of TCPSocket::Accept (PR #106955)

2024-09-03 Thread Pavel Labath via lldb-commits
@@ -254,67 +255,60 @@ void TCPSocket::CloseListenSockets() { m_listen_sockets.clear(); } -Status TCPSocket::Accept(Socket *&conn_socket) { - Status error; - if (m_listen_sockets.size() == 0) { -error = Status::FromErrorString("No open listening sockets!"); -return

[Lldb-commits] [lldb] [lldb] Add a callback version of TCPSocket::Accept (PR #106955)

2024-09-03 Thread Pavel Labath via lldb-commits
labath wrote: > BTW, I have figured out a side effect. MainLoopWindows uses events created by > WSACreateEvent(). WSACreateEvent() creates the `manual-reset` event. But > WSAResetEvent() is used only for m_trigger_event. All other events (READ, > ACCEPT, CLOSE) are never reset. I have no idea

[Lldb-commits] [lldb] [lldb/windows] Reset MainLoop events after handling them (PR #107061)

2024-09-03 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Pavel Labath (labath) Changes This prevents the callback function from being called in a busy loop. Discovered by @slydiman on #106955. --- Full diff: https://github.com/llvm/llvm-project/pull/107061.diff 2 Files Affected: - (modified)

[Lldb-commits] [lldb] [lldb/windows] Reset MainLoop events after handling them (PR #107061)

2024-09-03 Thread Pavel Labath via lldb-commits
https://github.com/labath created https://github.com/llvm/llvm-project/pull/107061 This prevents the callback function from being called in a busy loop. Discovered by @slydiman on #106955. >From 0a5ea38fe79ed5433535a3bc3bf895385c9d96e9 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Tue, 3

[Lldb-commits] [lldb] [lldb] Support partial memory reads on windows (PR #106981)

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

[Lldb-commits] [lldb] 04ed12c - [lldb] Support partial memory reads on windows (#106981)

2024-09-03 Thread via lldb-commits
Author: Pavel Labath Date: 2024-09-03T10:48:40+02:00 New Revision: 04ed12ca3f027a3a189d181e5e5880285ebc7916 URL: https://github.com/llvm/llvm-project/commit/04ed12ca3f027a3a189d181e5e5880285ebc7916 DIFF: https://github.com/llvm/llvm-project/commit/04ed12ca3f027a3a189d181e5e5880285ebc7916.diff

[Lldb-commits] [lldb] [lldb] Support partial memory reads on windows (PR #106981)

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

[Lldb-commits] [lldb] [lldb] Add a callback version of TCPSocket::Accept (PR #106955)

2024-09-03 Thread Pavel Labath via lldb-commits
https://github.com/labath updated https://github.com/llvm/llvm-project/pull/106955 >From 50e1aeec73b5c5ad3571d040c2ecc04c8d7e4009 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Mon, 2 Sep 2024 11:18:50 +0200 Subject: [PATCH 1/2] [lldb] Add a callback version of TCPSocket::Accept The existin

[Lldb-commits] [lldb] [lldb] Support partial memory reads on windows (PR #106981)

2024-09-03 Thread Pavel Labath via lldb-commits
@@ -276,16 +276,29 @@ Status ProcessDebugger::ReadMemory(lldb::addr_t vm_addr, void *buf, size_t size, LLDB_LOG(log, "attempting to read {0} bytes from address {1:x}", size, vm_addr); - HostProcess process = m_session_data->m_debugger->GetProcess(); + lldb::pro