[Lldb-commits] [lldb] 5e3f615 - [lldb/NativePDB] Don't create parentless blocks (#117581)

2024-11-25 Thread via lldb-commits
Author: Pavel Labath Date: 2024-11-26T07:40:34+01:00 New Revision: 5e3f6150b1d490090faf945777985b18db73ea3f URL: https://github.com/llvm/llvm-project/commit/5e3f6150b1d490090faf945777985b18db73ea3f DIFF: https://github.com/llvm/llvm-project/commit/5e3f6150b1d490090faf945777985b18db73ea3f.diff

[Lldb-commits] [lldb] [lldb/NativePDB] Don't create parentless blocks (PR #117581)

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

[Lldb-commits] [lldb] [LLDB][ThreadELFCore] Set all the properties of ELFLinuxSigInfo to a non build dependent size (PR #117604)

2024-11-25 Thread Jacob Lalonde via lldb-commits
Jlalond wrote: @tuliom Experimented on godbolt a bit, it looks like alignas(8) will handle our padding to 56 on 32 and 64 https://godbolt.org/z/ssqeeEs71 https://github.com/llvm/llvm-project/pull/117604 ___ lldb-commits mailing list lldb-commits@lists

[Lldb-commits] [clang] [lldb] [Clang] Improve Sema diagnostic performance for __builtin_counted_by_ref (PR #116719)

2024-11-25 Thread Bill Wendling via lldb-commits
bwendling wrote: Ah, okay. Thanks. https://github.com/llvm/llvm-project/pull/116719 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [clang] [lldb] [Clang] Improve Sema diagnostic performance for __builtin_counted_by_ref (PR #116719)

2024-11-25 Thread Vlad Serebrennikov via lldb-commits
Endilll wrote: For the record, Aaron is not on vacation. So if you need his sign-off, you should wait. https://github.com/llvm/llvm-project/pull/116719 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/li

[Lldb-commits] [lldb] [LLDB][ThreadELFCore] Set all the properties of ELFLinuxSigInfo to a non build dependent size (PR #117604)

2024-11-25 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/117604 >From 693f1039e10e5dd26ef0d600b03895f71f340b23 Mon Sep 17 00:00:00 2001 From: Jacob Lalonde Date: Mon, 25 Nov 2024 10:26:07 -0800 Subject: [PATCH 1/2] Set all the properties of ELFLinuxSigInfo to a non build de

[Lldb-commits] [clang] [lldb] [Clang] Improve Sema diagnostic performance for __builtin_counted_by_ref (PR #116719)

2024-11-25 Thread via lldb-commits
https://github.com/Sirraide approved this pull request. The changes seem fine to me now; not sure we’re handling this in all places where it needs to be handled though. I’d say maybe wait a day or two before merging in case anyone else wants to comment on that. https://github.com/llvm/llvm-pro

[Lldb-commits] [clang] [lldb] [Clang] Improve Sema diagnostic performance for __builtin_counted_by_ref (PR #116719)

2024-11-25 Thread Bill Wendling via lldb-commits
bwendling wrote: Yeah, but I'd like to get this off my plate. :-) https://github.com/llvm/llvm-project/pull/116719 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [clang] [lldb] [Clang] Improve Sema diagnostic performance for __builtin_counted_by_ref (PR #116719)

2024-11-25 Thread via lldb-commits
Sirraide wrote: > I image @AaronBallman is on vacation this week. @Sirraide would you be > willing to LGTM this so that I can move it along? I mean, this is stricly a performance issue, so I’m not sure why we’d want to merge it this urgently... https://github.com/llvm/llvm-project/pull/116719

[Lldb-commits] [clang] [lldb] [Clang] Improve Sema diagnostic performance for __builtin_counted_by_ref (PR #116719)

2024-11-25 Thread Bill Wendling via lldb-commits
bwendling wrote: I image @AaronBallman is on vacation this week. @Sirraide would you be willing to LGTM this so that I can move it along? It's certainly better than what we have and I can address any concerns Aaron has afterwards. https://github.com/llvm/llvm-project/pull/116719 __

[Lldb-commits] [lldb] [LLDB][ThreadELFCore] Set all the properties of ELFLinuxSigInfo to a non build dependent size (PR #117604)

2024-11-25 Thread Tulio Magno Quites Machado Filho via lldb-commits
https://github.com/tuliom requested changes to this pull request. This didn't help. The size on 32-bits continue to be 44. I think the difference is not really caused the size of the properties on 32 bits, but the implicit padding on 32/64 bits. Look at the code generated here: https://godbolt.

[Lldb-commits] [lldb] Fix return value of 'PluginManager::RegisterPlugin()'. (PR #114120)

2024-11-25 Thread Miro Bucko via lldb-commits
https://github.com/mbucko closed https://github.com/llvm/llvm-project/pull/114120 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb-dap] Refactoring lldb-dap port listening mode to allow multiple connections. (PR #116392)

2024-11-25 Thread John Harrison via lldb-commits
@@ -0,0 +1,182 @@ +//===-- Socket.h *- C++ -*-===// ashgti wrote: Sounds good, I can re-work my patch to use `lldb/Hosts/*` https://github.com/llvm/llvm-project/pull/116392

[Lldb-commits] [lldb] [lldb-dap] Refactoring lldb-dap port listening mode to allow multiple connections. (PR #116392)

2024-11-25 Thread Walter Erquinigo via lldb-commits
@@ -32,35 +34,44 @@ using namespace lldb_dap; namespace lldb_dap { -DAP::DAP(llvm::StringRef path, ReplMode repl_mode) -: debug_adaptor_path(path), broadcaster("lldb-dap"), - exception_breakpoints(), focus_tid(LLDB_INVALID_THREAD_ID), - stop_at_entry(false), is_

[Lldb-commits] [lldb] [lldb-dap] Refactoring lldb-dap port listening mode to allow multiple connections. (PR #116392)

2024-11-25 Thread Walter Erquinigo via lldb-commits
@@ -0,0 +1,182 @@ +//===-- Socket.h *- C++ -*-===// walter-erquinigo wrote: Thanks for bringing this up. I think that ideally, we should be able to reuse components from LLDB, like the `Host` library, as you point

[Lldb-commits] [lldb] Fix return value of 'PluginManager::RegisterPlugin()'. (PR #114120)

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

[Lldb-commits] [lldb] Fix return value of 'PluginManager::RegisterPlugin()'. (PR #114120)

2024-11-25 Thread Miro Bucko via lldb-commits
mbucko wrote: > We obviously aren't checking this return anywhere. The only way it can return > false that I can see is if you call RegisterPlugin with no callback pointer - > which seems more like a programming error than a run-time check. Do we > actually need this bool return? It is indeed

[Lldb-commits] [lldb] Fix return value of 'PluginManager::RegisterPlugin()'. (PR #114120)

2024-11-25 Thread Miro Bucko via lldb-commits
https://github.com/mbucko updated https://github.com/llvm/llvm-project/pull/114120 >From 362d6f52709ddf303d9d9fa256526182ba60fa53 Mon Sep 17 00:00:00 2001 From: Miro Bucko Date: Tue, 29 Oct 2024 13:02:21 -0700 Subject: [PATCH] Fix return value of 'PluginManager::RegisterPlugin()'. --- lldb/so

[Lldb-commits] [lldb] build: enable CONFIG mode search for LibXml2 for LLDB (PR #117615)

2024-11-25 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Saleem Abdulrasool (compnerd) Changes The `find_package(LibXml2 ...)` invocation that we are currently using precludes the use of "CONFIG mode" for libxml2. This is important to allow dependencies to flow through the build with static buil

[Lldb-commits] [lldb] build: enable CONFIG mode search for LibXml2 for LLDB (PR #117615)

2024-11-25 Thread Saleem Abdulrasool via lldb-commits
https://github.com/compnerd created https://github.com/llvm/llvm-project/pull/117615 The `find_package(LibXml2 ...)` invocation that we are currently using precludes the use of "CONFIG mode" for libxml2. This is important to allow dependencies to flow through the build with static builds on Wi

[Lldb-commits] [lldb] [LLDB][ThreadELFCore] Set all the properties of ELFLinuxSigInfo to a non build dependent size (PR #117604)

2024-11-25 Thread Jacob Lalonde via lldb-commits
https://github.com/Jlalond created https://github.com/llvm/llvm-project/pull/117604 On #110065 the changes to LinuxSigInfo Struct introduced some variables that will differ in size on 32b or 64b. I've rectified this by setting them all to build independent types. >From 693f1039e10e5dd26ef0d60

[Lldb-commits] [lldb] [LLDB][ThreadELFCore] Set all the properties of ELFLinuxSigInfo to a non build dependent size (PR #117604)

2024-11-25 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Jacob Lalonde (Jlalond) Changes On #110065 the changes to LinuxSigInfo Struct introduced some variables that will differ in size on 32b or 64b. I've rectified this by setting them all to build independent types. --- Full diff: https://git

[Lldb-commits] [lldb] [LLDB][ThreadELFCore] Set all the properties of ELFLinuxSigInfo to a non build dependent size (PR #117604)

2024-11-25 Thread Jacob Lalonde via lldb-commits
Jlalond wrote: @tuliom I don't have a way to verify this, would you mind assisting? https://github.com/llvm/llvm-project/pull/117604 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb/NativePDB] Don't create parentless blocks (PR #117581)

2024-11-25 Thread Zequan Wu via lldb-commits
https://github.com/ZequanWu approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/117581 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [LLDB][ProcessELFCore] Add Description to ProcessELFCore/ELFThread stop reasons (PR #110065)

2024-11-25 Thread Jacob Lalonde via lldb-commits
Jlalond wrote: Ack, sorry about the delay. I will get this fixed today. https://github.com/llvm/llvm-project/pull/110065 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb-dap] Refactoring lldb-dap port listening mode to allow multiple connections. (PR #116392)

2024-11-25 Thread Pavel Labath via lldb-commits
labath wrote: > > The patch is still a bit larger than I'd like. I've tried to highlight a > > few things that could be split off into separate PRs, but I think the > > biggest question now (not really for you, but for lldb-dap maintainers) is > > whether this could be using the socket abstrac

[Lldb-commits] [lldb] [llvm] [DWARF] Fix DWARTTypePrinter unable to print qualified name for DW_TAG_typedef DIE (PR #117239)

2024-11-25 Thread David Blaikie via lldb-commits
dwblaikie wrote: > > Where those names go from "const string" to "const std::__1::string" (and > > from "string" to "std::__1::string")? or something like that. > > Yes. In some cases, it's getting super verbose, e.g: > `std::__1::basic_string, > std::__1::allocator >::value_type`. Oh yeah,

[Lldb-commits] [lldb] [lldb/NativePDB] Don't create parentless blocks (PR #117581)

2024-11-25 Thread Pavel Labath via lldb-commits
https://github.com/labath updated https://github.com/llvm/llvm-project/pull/117581 >From 704eaf250480e0f74e4f135d61b7e66c3356eb97 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Mon, 25 Nov 2024 18:05:54 +0100 Subject: [PATCH 1/2] [lldb/NativePDB] Don't create parentless blocks In case of an

[Lldb-commits] [lldb] [lldb/NativePDB] Don't create parentless blocks (PR #117581)

2024-11-25 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 e5faeb69fbb87722ee315884eeef2089b10b0cee 704eaf250480e0f74e4f135d61b7e66c3356eb97 --e

[Lldb-commits] [lldb] [lldb/NativePDB] Don't create parentless blocks (PR #117581)

2024-11-25 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Pavel Labath (labath) Changes In case of an error GetBlock would return a reference to a Block without adding it to a parent. This doesn't seem like a good idea, and none of the other plugins do that. This patch fixes that by propagating

[Lldb-commits] [lldb] [lldb/NativePDB] Don't create parentless blocks (PR #117581)

2024-11-25 Thread Pavel Labath via lldb-commits
https://github.com/labath created https://github.com/llvm/llvm-project/pull/117581 In case of an error GetBlock would return a reference to a Block without adding it to a parent. This doesn't seem like a good idea, and none of the other plugins do that. This patch fixes that by propagating er

[Lldb-commits] [lldb] [lldb-dap] Refactoring lldb-dap port listening mode to allow multiple connections. (PR #116392)

2024-11-25 Thread John Harrison via lldb-commits
ashgti wrote: > The patch is still a bit larger than I'd like. I've tried to highlight a few > things that could be split off into separate PRs, but I think the biggest > question now (not really for you, but for lldb-dap maintainers) is whether > this could be using the socket abstractions al

[Lldb-commits] [lldb] [LLDB][ProcessELFCore] Add Description to ProcessELFCore/ELFThread stop reasons (PR #110065)

2024-11-25 Thread Tulio Magno Quites Machado Filho via lldb-commits
tuliom wrote: We're also seeing this issue. We have a full build log available at https://download.copr.fedorainfracloud.org/results/@fedora-llvm-team/llvm-snapshots-big-merge-20241123/fedora-rawhide-i386/08305565-llvm/builder-live.log.gz , in case it helps. https://github.com/llvm/llvm-projec

[Lldb-commits] [lldb] 84fec77 - [lldb][docs] Clarify unit for SVE P register size

2024-11-25 Thread David Spickett via lldb-commits
Author: David Spickett Date: 2024-11-25T09:53:15Z New Revision: 84fec7757ea330bbaf82b46ed081ccc45b120e45 URL: https://github.com/llvm/llvm-project/commit/84fec7757ea330bbaf82b46ed081ccc45b120e45 DIFF: https://github.com/llvm/llvm-project/commit/84fec7757ea330bbaf82b46ed081ccc45b120e45.diff LOG

[Lldb-commits] [lldb] [lldb] Expose discontinuous functions through SBFunction::GetRanges (PR #117532)

2024-11-25 Thread Pavel Labath via lldb-commits
@@ -24,9 +24,8 @@ class AddressRangeListImpl { public: AddressRangeListImpl(); - AddressRangeListImpl(const AddressRangeListImpl &rhs) = default; labath wrote: I've deleted this because of a combination of a default copy constructor and a non-default assi

[Lldb-commits] [lldb] [lldb] Expose discontinuous functions through SBFunction::GetRanges (PR #117532)

2024-11-25 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Pavel Labath (labath) Changes SBFunction::GetEndAddress doesn't really make sense for discontinuous functions, so I'm declaring it deprecated. GetStartAddress sort of makes sense, if one uses it to find the functions entry point, so I'm ke

[Lldb-commits] [lldb] [lldb] Expose discontinuous functions through SBFunction::GetRanges (PR #117532)

2024-11-25 Thread Pavel Labath via lldb-commits
https://github.com/labath created https://github.com/llvm/llvm-project/pull/117532 SBFunction::GetEndAddress doesn't really make sense for discontinuous functions, so I'm declaring it deprecated. GetStartAddress sort of makes sense, if one uses it to find the functions entry point, so I'm keep

[Lldb-commits] [lldb] [lldb-dap] Refactoring lldb-dap port listening mode to allow multiple connections. (PR #116392)

2024-11-25 Thread Pavel Labath via lldb-commits
@@ -32,35 +34,44 @@ using namespace lldb_dap; namespace lldb_dap { -DAP::DAP(llvm::StringRef path, ReplMode repl_mode) -: debug_adaptor_path(path), broadcaster("lldb-dap"), - exception_breakpoints(), focus_tid(LLDB_INVALID_THREAD_ID), - stop_at_entry(false), is_

[Lldb-commits] [lldb] 1bc9895 - [lldb/DWARF] Remove duplicate type filtering (#116989)

2024-11-25 Thread via lldb-commits
Author: Pavel Labath Date: 2024-11-25T09:52:19+01:00 New Revision: 1bc98957c898d7e7233746a7b284982d20539593 URL: https://github.com/llvm/llvm-project/commit/1bc98957c898d7e7233746a7b284982d20539593 DIFF: https://github.com/llvm/llvm-project/commit/1bc98957c898d7e7233746a7b284982d20539593.diff

[Lldb-commits] [lldb] [lldb/DWARF] Remove duplicate type filtering (PR #116989)

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

[Lldb-commits] [lldb] [lldb-dap] Refactoring lldb-dap port listening mode to allow multiple connections. (PR #116392)

2024-11-25 Thread Pavel Labath via lldb-commits
@@ -250,6 +251,13 @@ def which(program): return None +def pickrandomport(): +"""Returns a random open port.""" +with socket.socket() as sock: +sock.bind(("", 0)) +return sock.getsockname()[1] labath wrote: Cool. So I guess this me

[Lldb-commits] [lldb] [lldb-dap] Refactoring lldb-dap port listening mode to allow multiple connections. (PR #116392)

2024-11-25 Thread Pavel Labath via lldb-commits
@@ -0,0 +1,182 @@ +//===-- Socket.h *- C++ -*-===// labath wrote: I'm not quite comfortable with this essentially reimplementing large parts of `source/Host/common/*Socket.cpp`. @walter-erquinigo do you have any

[Lldb-commits] [lldb] [lldb-dap] Refactoring lldb-dap port listening mode to allow multiple connections. (PR #116392)

2024-11-25 Thread Pavel Labath via lldb-commits
@@ -52,11 +51,11 @@ struct StreamDescriptor { struct InputStream { StreamDescriptor descriptor; - bool read_full(std::ofstream *log, size_t length, std::string &text); + bool read_full(llvm::raw_ostream *log, size_t length, std::string &text); - bool read_line(std::ofst

[Lldb-commits] [lldb] [lldb-dap] Refactoring lldb-dap port listening mode to allow multiple connections. (PR #116392)

2024-11-25 Thread Pavel Labath via lldb-commits
@@ -0,0 +1,67 @@ +""" +Test lldb-dap server integration. +""" + +import os +import tempfile + +import dap_server +from lldbsuite.test.decorators import * +from lldbsuite.test.lldbtest import * +import lldbdap_testcase + + +class TestDAP_server(lldbdap_testcase.DAPTestCaseBase): +

[Lldb-commits] [lldb] [lldb-dap] Refactoring lldb-dap port listening mode to allow multiple connections. (PR #116392)

2024-11-25 Thread Pavel Labath via lldb-commits
@@ -1196,6 +1202,62 @@ def terminate(self): self.process.wait() self.process = None +@classmethod +def launch( +cls, executable: str, /, connection=None, log_file=None, env=None +) -> tuple[subprocess.Popen, str]: +adaptor_en

[Lldb-commits] [lldb] [lldb-dap] Refactoring lldb-dap port listening mode to allow multiple connections. (PR #116392)

2024-11-25 Thread Pavel Labath via lldb-commits
@@ -0,0 +1,67 @@ +""" +Test lldb-dap server integration. +""" + +import os +import tempfile + +import dap_server +from lldbsuite.test.decorators import * +from lldbsuite.test.lldbtest import * +import lldbdap_testcase + + +class TestDAP_server(lldbdap_testcase.DAPTestCaseBase): +

[Lldb-commits] [lldb] [lldb-dap] Refactoring lldb-dap port listening mode to allow multiple connections. (PR #116392)

2024-11-25 Thread Pavel Labath via lldb-commits
@@ -1154,34 +1154,38 @@ class DebugAdaptorServer(DebugCommunication): def __init__( self, executable=None, +launch=True, port=None, +unix_socket=None, init_commands=[], log_file=None, env=None, ):

[Lldb-commits] [lldb] [lldb-dap] Refactoring lldb-dap port listening mode to allow multiple connections. (PR #116392)

2024-11-25 Thread Pavel Labath via lldb-commits
https://github.com/labath commented: The patch is still a bit larger than I'd like. I've tried to highlight a few things that could be split off into separate PRs, but I think the biggest question now (not really for you, but for lldb-dap maintainers) is whether this could be using the socket

[Lldb-commits] [lldb] [lldb-dap] Refactoring lldb-dap port listening mode to allow multiple connections. (PR #116392)

2024-11-25 Thread Pavel Labath via lldb-commits
@@ -1196,6 +1202,62 @@ def terminate(self): self.process.wait() self.process = None +@classmethod +def launch( +cls, executable: str, /, connection=None, log_file=None, env=None +) -> tuple[subprocess.Popen, str]: +adaptor_en

[Lldb-commits] [lldb] [lldb-dap] Refactoring lldb-dap port listening mode to allow multiple connections. (PR #116392)

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