[Lldb-commits] [lldb] [LLDB] Add DIL code for handling plain variable names. (PR #120971)

2025-02-17 Thread Pavel Labath via lldb-commits
@@ -0,0 +1,284 @@ +//===-- DILEval.cpp ---===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[Lldb-commits] [lldb] [lldb] Store the return ValueObject in the CommandReturnObject (PR #127566)

2025-02-17 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere updated https://github.com/llvm/llvm-project/pull/127566 >From 6f59b1116dd83b9cce526103cca98a5d2056720f Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Mon, 17 Feb 2025 20:58:30 -0800 Subject: [PATCH] [lldb] Store the return ValueObject in the CommandRetu

[Lldb-commits] [lldb] [lldb] Store the return ValueObject in the CommandReturnObject (PR #127566)

2025-02-17 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere created https://github.com/llvm/llvm-project/pull/127566 There are a lot of lldb commands whose result is really a ValueObject that we then print with the ValueObjectPrinter. Now that we have the ability to access the SBCommandReturnObject through a callback (#1

[Lldb-commits] [lldb] [lldb] Store the return ValueObject in the CommandReturnObject (PR #127566)

2025-02-17 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 f71b83b3593588c56fd4ab3e1347ad9c7bec624f 9c290f5d55e888c2674030da9ea06778573332da --e

[Lldb-commits] [lldb] [lldb] Store the return ValueObject in the CommandReturnObject (PR #127566)

2025-02-17 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Jonas Devlieghere (JDevlieghere) Changes There are a lot of lldb commands whose result is really a ValueObject that we then print with the ValueObjectPrinter. Now that we have the ability to access the SBCommandReturnObject through a callb

[Lldb-commits] [lldb] Allow option to ignore module load errors in ScriptedProcess (PR #127153)

2025-02-17 Thread via lldb-commits
rchamala wrote: > I'd like to get a better understanding of what you're trying to achieve: > > Does the child elf-core process doesn't have any module loaded ? Are they > only described in the tombstone and require to be downloaded which could > potentially fail ? Child elf-core process has m

[Lldb-commits] [lldb] [lldb] fix LR/SC handling in lldb-server (PR #127505)

2025-02-17 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: None (dlav-sc) Changes lldb-server didn't consider that LR instruction may be followed not only by BNE instruction (takes 4 bytes), but by BNEZ too, which is a compressed instruction (takes 2 bytes). As a result, after BNEZ lldb-server res

[Lldb-commits] [lldb] [LLDB] Add DIL code for handling plain variable names. (PR #120971)

2025-02-17 Thread via lldb-commits
@@ -0,0 +1,308 @@ +//===-- DILParser.cpp -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[Lldb-commits] [lldb] [LLDB] Add DIL code for handling plain variable names. (PR #120971)

2025-02-17 Thread via lldb-commits
@@ -0,0 +1,308 @@ +//===-- DILParser.cpp -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[Lldb-commits] [lldb] [LLDB] Add DIL code for handling plain variable names. (PR #120971)

2025-02-17 Thread via lldb-commits
https://github.com/cmtice edited https://github.com/llvm/llvm-project/pull/120971 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Allow option to ignore module load errors in ScriptedProcess (PR #127153)

2025-02-17 Thread Med Ismail Bennani via lldb-commits
medismailben wrote: I'd like to get a better understanding of what you're trying to achieve: Does the child elf-core process doesn't have any module loaded ? Are they only described in the tombstone and require to be downloaded which could potentially fail ? https://github.com/llvm/llvm-proje

[Lldb-commits] [lldb] 2b41277 - [lldb] Disable test_step_out_thunk on Windows

2025-02-17 Thread Jonas Devlieghere via lldb-commits
Author: Jonas Devlieghere Date: 2025-02-17T16:25:13-08:00 New Revision: 2b41277a09820bc47dc533ad37b5213edc2e8d52 URL: https://github.com/llvm/llvm-project/commit/2b41277a09820bc47dc533ad37b5213edc2e8d52 DIFF: https://github.com/llvm/llvm-project/commit/2b41277a09820bc47dc533ad37b5213edc2e8d52.d

[Lldb-commits] [lldb] [lldb] Support stepping through C++ thunks (PR #127419)

2025-02-17 Thread LLVM Continuous Integration via lldb-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-aarch64-windows` running on `linaro-armv8-windows-msvc-05` while building `lldb` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/141/builds/6383 Here is the relevant piece of t

[Lldb-commits] [lldb] [LLDB] Add DIL code for handling plain variable names. (PR #120971)

2025-02-17 Thread via lldb-commits
@@ -0,0 +1,284 @@ +//===-- DILEval.cpp ---===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[Lldb-commits] [lldb] [LLDB] Add DIL code for handling plain variable names. (PR #120971)

2025-02-17 Thread via lldb-commits
@@ -0,0 +1,284 @@ +//===-- DILEval.cpp ---===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[Lldb-commits] [lldb] Allow option to ignore module load errors in ScriptedProcess (PR #127153)

2025-02-17 Thread via lldb-commits
rchamala wrote: > I'm not convinced of that this change needs to be happen in ScriptedProcess .. Just so that we’re on the same page, the logic to skip loading modules upon a module load error is part of ScriptedProcess conversion logic in “scriptedprocess::GetLoadedDynamicLibrariesInfos”. The

[Lldb-commits] [lldb] [lldb] Support stepping through C++ thunks (PR #127419)

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

[Lldb-commits] [lldb] a3dc77c - [lldb] Support stepping through C++ thunks (#127419)

2025-02-17 Thread via lldb-commits
Author: Jonas Devlieghere Date: 2025-02-17T15:44:41-08:00 New Revision: a3dc77c00a012bb613cb08e669dab4fadf88e935 URL: https://github.com/llvm/llvm-project/commit/a3dc77c00a012bb613cb08e669dab4fadf88e935 DIFF: https://github.com/llvm/llvm-project/commit/a3dc77c00a012bb613cb08e669dab4fadf88e935.d

[Lldb-commits] [lldb] Allow option to ignore module load errors in ScriptedProcess (PR #127153)

2025-02-17 Thread Med Ismail Bennani via lldb-commits
medismailben wrote: I'm not convinced of that this change needs to be happen in ScriptedProcess ... May be we could have a setting to not discard all modules loaded in case 1 of them failed to load that would also work with other Process plugins. @jimingham what do you think ? https://github.

[Lldb-commits] [lldb] [lldb] Support stepping through C++ thunks (PR #127419)

2025-02-17 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere updated https://github.com/llvm/llvm-project/pull/127419 >From c533d71a56fa7d6347b1698c63c8626513e70ab0 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Sun, 16 Feb 2025 13:27:07 -0800 Subject: [PATCH 01/10] [lldb] Support stepping over C++ thunks This PR

[Lldb-commits] [lldb] [lldb] Support stepping through C++ thunks (PR #127419)

2025-02-17 Thread via lldb-commits
https://github.com/jimingham approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/127419 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Support stepping through C++ thunks (PR #127419)

2025-02-17 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere updated https://github.com/llvm/llvm-project/pull/127419 >From c533d71a56fa7d6347b1698c63c8626513e70ab0 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Sun, 16 Feb 2025 13:27:07 -0800 Subject: [PATCH 1/9] [lldb] Support stepping over C++ thunks This PR fi

[Lldb-commits] [lldb] [lldb] Add LineTable::{upper, lower}_bound (PR #127519)

2025-02-17 Thread Jonas Devlieghere via lldb-commits
@@ -0,0 +1,285 @@ +//===-- LineTableTest.cpp -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[Lldb-commits] [lldb] [lldb] Add LineTable::{upper, lower}_bound (PR #127519)

2025-02-17 Thread Jonas Devlieghere via lldb-commits
@@ -0,0 +1,285 @@ +//===-- LineTableTest.cpp -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[Lldb-commits] [lldb] [lldb] Add LineTable::{upper, lower}_bound (PR #127519)

2025-02-17 Thread Jonas Devlieghere via lldb-commits
@@ -0,0 +1,285 @@ +//===-- LineTableTest.cpp -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[Lldb-commits] [lldb] [lldb] Add LineTable::{upper, lower}_bound (PR #127519)

2025-02-17 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere edited https://github.com/llvm/llvm-project/pull/127519 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Add LineTable::{upper, lower}_bound (PR #127519)

2025-02-17 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere approved this pull request. Thanks for taking the time to add the `FakeSymbolFile`, I'm sure that'll be valuable in the future. LGTM. https://github.com/llvm/llvm-project/pull/127519 ___ lldb-commits mailing list lldb-

[Lldb-commits] [lldb] [lldb] Add LineTable::{upper, lower}_bound (PR #127519)

2025-02-17 Thread Jonas Devlieghere via lldb-commits
@@ -185,6 +185,48 @@ bool LineTable::GetLineEntryAtIndex(uint32_t idx, LineEntry &line_entry) { return false; } +uint32_t LineTable::lower_bound(const Address &so_addr) const { + if (so_addr.GetModule() != m_comp_unit->GetModule()) +return GetSize(); + + Entry search_

[Lldb-commits] [lldb] [lldb] Support stepping through C++ thunks (PR #127419)

2025-02-17 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere updated https://github.com/llvm/llvm-project/pull/127419 >From c533d71a56fa7d6347b1698c63c8626513e70ab0 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Sun, 16 Feb 2025 13:27:07 -0800 Subject: [PATCH 1/8] [lldb] Support stepping over C++ thunks This PR fi

[Lldb-commits] [lldb] a377cdd - [lldb][TypeSystemClang] Add support for floating point template argument constants (#127206)

2025-02-17 Thread via lldb-commits
Author: Michael Buch Date: 2025-02-17T22:03:53Z New Revision: a377cdd23db180b881f54fc7f88bf3aa85de21cc URL: https://github.com/llvm/llvm-project/commit/a377cdd23db180b881f54fc7f88bf3aa85de21cc DIFF: https://github.com/llvm/llvm-project/commit/a377cdd23db180b881f54fc7f88bf3aa85de21cc.diff LOG:

[Lldb-commits] [lldb] [lldb][TypeSystemClang] Add support for floating point template argument constants (PR #127206)

2025-02-17 Thread Michael Buch via lldb-commits
https://github.com/Michael137 closed https://github.com/llvm/llvm-project/pull/127206 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Synchronize the debugger's stdout and stderr streams (PR #126630)

2025-02-17 Thread Jonas Devlieghere via lldb-commits
JDevlieghere wrote: > That said, not needing to replicate the locking logic in every IOHandler > would definitely be nice. However, I'm not certain about the feasibility of > that. In a way, I think that the PrintAsync approach is better because it > lets the IOHandler know that some async pri

[Lldb-commits] [lldb] [lldb] Synchronize the debugger's stdout and stderr streams (PR #126630)

2025-02-17 Thread Pavel Labath via lldb-commits
labath wrote: The buffering doesn't sound like a problem to me. Basically it means you have to use the stream like an RAII object, which is sort of what we have here anyway. We also have the same problem with not being able to get everything to use the RAII locker object from this patch (due t

[Lldb-commits] [lldb] [lldb] Add LineTable::{upper, lower}_bound (PR #127519)

2025-02-17 Thread Pavel Labath via lldb-commits
https://github.com/labath updated https://github.com/llvm/llvm-project/pull/127519 >From 627bb23342ee22dd263f0142ea43f644afd6faae Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Mon, 17 Feb 2025 17:29:40 +0100 Subject: [PATCH] [lldb] Add LineTable::{upper,lower}_bound The motivation is #1236

[Lldb-commits] [lldb] [lldb] Synchronize the debugger's stdout and stderr streams (PR #126630)

2025-02-17 Thread Jonas Devlieghere via lldb-commits
@@ -574,10 +581,10 @@ int Editline::GetCharacter(EditLineGetCharType *c) { // indefinitely. This gives a chance for someone to interrupt us. After // Read returns, immediately lock the mutex again and check if we were // interrupted. -m_output_mutex.unlock(); +

[Lldb-commits] [lldb] [lldb] Add LineTable::{upper, lower}_bound (PR #127519)

2025-02-17 Thread Pavel Labath via lldb-commits
https://github.com/labath created https://github.com/llvm/llvm-project/pull/127519 The motivation is #123622 and the fact that is hard to fine the last line entry in a given range. `FindLineEntryByAddress(range_end-1)` is the best we have, but it's not ideal because it has a magic -1 and that

[Lldb-commits] [lldb] [lldb] Support stepping through C++ thunks (PR #127419)

2025-02-17 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere updated https://github.com/llvm/llvm-project/pull/127419 >From c533d71a56fa7d6347b1698c63c8626513e70ab0 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Sun, 16 Feb 2025 13:27:07 -0800 Subject: [PATCH 1/7] [lldb] Support stepping over C++ thunks This PR fi

[Lldb-commits] [lldb] [lldb] Support stepping through C++ thunks (PR #127419)

2025-02-17 Thread Jonas Devlieghere via lldb-commits
@@ -476,3 +476,12 @@ CPPLanguageRuntime::GetStepThroughTrampolinePlan(Thread &thread, return ret_plan_sp; } + +bool CPPLanguageRuntime::IsSymbolARuntimeThunk(const Symbol &symbol) { + // Virtual function override thunks come in two forms. Those overriding from a + // non

[Lldb-commits] [lldb] [lldb] Support stepping through C++ thunks (PR #127419)

2025-02-17 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben edited https://github.com/llvm/llvm-project/pull/127419 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Support stepping through C++ thunks (PR #127419)

2025-02-17 Thread Med Ismail Bennani via lldb-commits
https://github.com/medismailben approved this pull request. Nice! LGTM with comment. https://github.com/llvm/llvm-project/pull/127419 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Support stepping through C++ thunks (PR #127419)

2025-02-17 Thread Med Ismail Bennani via lldb-commits
@@ -76,6 +77,18 @@ bool ThreadPlanShouldStopHere::DefaultShouldStopHereCallback( } } + // Check whether the frame we are in is a language runtime thunk, only for + // step out: + if (operation == eFrameCompareOlder) { +Symbol *symbol = frame->GetSymbolContext(eSym

[Lldb-commits] [lldb] [lldb] Provide default impl for MightHaveChildren (NFC) (PR #119977)

2025-02-17 Thread Dave Lee via lldb-commits
https://github.com/kastiglione closed https://github.com/llvm/llvm-project/pull/119977 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] 6fde8fe - [lldb] Provide default impl for MightHaveChildren (NFC) (#119977)

2025-02-17 Thread via lldb-commits
Author: Dave Lee Date: 2025-02-17T11:19:14-08:00 New Revision: 6fde8fe9adc835df50ea57b710781ffe8a6657e8 URL: https://github.com/llvm/llvm-project/commit/6fde8fe9adc835df50ea57b710781ffe8a6657e8 DIFF: https://github.com/llvm/llvm-project/commit/6fde8fe9adc835df50ea57b710781ffe8a6657e8.diff LOG:

[Lldb-commits] [lldb] [lldb][RISCV] fix LR/SC handling in lldb-server (PR #127505)

2025-02-17 Thread via lldb-commits
https://github.com/dlav-sc edited https://github.com/llvm/llvm-project/pull/127505 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][Mach-O] Read dyld_all_image_infos addr from `main bin spec` LC_NOTE (PR #127156)

2025-02-17 Thread Alex Langford via lldb-commits
@@ -5669,6 +5673,10 @@ bool ObjectFileMachO::GetCorefileMainBinaryInfo(addr_t &value, type = eBinaryTypeStandalone; typestr = "standalone"; break; + case 4: +type = eBinaryTypeUserAllImageInfos; +typestr = "u

[Lldb-commits] [lldb] [lldb] Support stepping through C++ thunks (PR #127419)

2025-02-17 Thread via lldb-commits
jimingham wrote: This looks fine. The one thing that we might want to also test is that if we step through the thunk, and then stop in some code that we don't want to stop in (i.e. the target of the thunk doesn't have debug information) we step back out correctly. This should work by compo

[Lldb-commits] [lldb] [lldb] Synchronize the debugger's stdout and stderr streams (PR #126630)

2025-02-17 Thread Jonas Devlieghere via lldb-commits
JDevlieghere wrote: > That's okay. I thought it might not work out. Thanks for giving it a shot. > > I feel bad about bringing this up after you did all the work, but there is > one more thing going through my head. I now have a very awkward feeling about > this because it seems like this is s

[Lldb-commits] [lldb] [lldb] Support stepping through C++ thunks (PR #127419)

2025-02-17 Thread Michael Buch via lldb-commits
https://github.com/Michael137 edited https://github.com/llvm/llvm-project/pull/127419 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][TypeSystemClang] Add support for floating point template argument constants (PR #127206)

2025-02-17 Thread Pavel Labath via lldb-commits
https://github.com/labath approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/127206 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Synchronize the debugger's stdout and stderr streams (PR #126630)

2025-02-17 Thread Pavel Labath via lldb-commits
@@ -574,10 +581,10 @@ int Editline::GetCharacter(EditLineGetCharType *c) { // indefinitely. This gives a chance for someone to interrupt us. After // Read returns, immediately lock the mutex again and check if we were // interrupted. -m_output_mutex.unlock(); +

[Lldb-commits] [lldb] [lldb] Synchronize the debugger's stdout and stderr streams (PR #126630)

2025-02-17 Thread Pavel Labath via lldb-commits
labath wrote: > > > A random idea, I don't know if it's a good one: have one object > > > (LockableStreamPair?) that holds the two streams and their mutex. One > > > less argument to pass around? > > > > > > Sounds good, that simplifies the signatures (which this PR is already > > touching)

[Lldb-commits] [lldb] [lldb] Add LineTable::{upper, lower}_bound (PR #127519)

2025-02-17 Thread Pavel Labath via lldb-commits
https://github.com/labath updated https://github.com/llvm/llvm-project/pull/127519 >From 2e363a1c0653f7a35d2cdcbc79353badf9fa86f0 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Mon, 17 Feb 2025 17:29:40 +0100 Subject: [PATCH] [lldb] Add LineTable::{upper,lower}_bound The motivation is #1236

[Lldb-commits] [lldb] [lldb] Support stepping through C++ thunks (PR #127419)

2025-02-17 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere updated https://github.com/llvm/llvm-project/pull/127419 >From c533d71a56fa7d6347b1698c63c8626513e70ab0 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Sun, 16 Feb 2025 13:27:07 -0800 Subject: [PATCH 1/5] [lldb] Support stepping over C++ thunks This PR fi

[Lldb-commits] [lldb] [lldb] Support stepping through C++ thunks (PR #127419)

2025-02-17 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 6812fc02fbb81d679f95d5c3e15768ae11e1bad8 b5904f01c64b2c6005f986886ce00ac507172bd2 --e

[Lldb-commits] [lldb] [lldb] Add LineTable::{upper, lower}_bound (PR #127519)

2025-02-17 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Pavel Labath (labath) Changes The motivation is #123622 and the fact that is hard to fine the last line entry in a given range. `FindLineEntryByAddress(range_end-1)` is the best we have, but it's not ideal because it has a magic -1 and tha

[Lldb-commits] [lldb] [lldb] Support stepping through C++ thunks (PR #127419)

2025-02-17 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere updated https://github.com/llvm/llvm-project/pull/127419 >From c533d71a56fa7d6347b1698c63c8626513e70ab0 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Sun, 16 Feb 2025 13:27:07 -0800 Subject: [PATCH 1/4] [lldb] Support stepping over C++ thunks This PR fi

[Lldb-commits] [lldb] [lldb] Support stepping through C++ thunks (PR #127419)

2025-02-17 Thread Michael Buch via lldb-commits
@@ -476,3 +476,12 @@ CPPLanguageRuntime::GetStepThroughTrampolinePlan(Thread &thread, return ret_plan_sp; } + +bool CPPLanguageRuntime::IsSymbolARuntimeThunk(const Symbol &symbol) { + // Virtual function override thunks come in two forms. Those overriding from a + // non

[Lldb-commits] [lldb] [lldb] Support stepping through C++ thunks (PR #127419)

2025-02-17 Thread via lldb-commits
tedwoodward wrote: @JDevlieghere would you mind getting rid of the nullptr in the testcase, main.cpp line 13? Base2 *b = nullptr; *b is set to nullptr per language standard, and those of use stuck in c++03 on embedded targets would appreciate it! https://github.com/llvm/llvm-project/pull/1274

[Lldb-commits] [lldb] [lldb] Support stepping through C++ thunks (PR #127419)

2025-02-17 Thread Michael Buch via lldb-commits
Michael137 wrote: Makes sense to me but I'll defer to @jimingham and co. for the stepping bits https://github.com/llvm/llvm-project/pull/127419 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/ll

[Lldb-commits] [lldb] [lldb] Support stepping through C++ thunks (PR #127419)

2025-02-17 Thread Levente Mészáros via lldb-commits
levy wrote: I'm the one who recently added an example reproducing the #43413 issue. I compiled this PR version of lldb and related tools and tested it against the simple reproduction I added to the issue, and also with our complex project where I first faced this issue. In both cases lldb work

[Lldb-commits] [lldb] [lldb] Support stepping through C++ thunks (PR #127419)

2025-02-17 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere updated https://github.com/llvm/llvm-project/pull/127419 >From c533d71a56fa7d6347b1698c63c8626513e70ab0 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Sun, 16 Feb 2025 13:27:07 -0800 Subject: [PATCH 1/2] [lldb] Support stepping over C++ thunks This PR fi

[Lldb-commits] [lldb] [lldb][NFC] remove AdaptedConstIterator and AdaptedIterable (PR #127507)

2025-02-17 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere approved this pull request. I suspect the LLDB classes preceded their LLVM counterparts, but the latter are much more complete and there's definitely no point having both. LGTM. https://github.com/llvm/llvm-project/pull/127507 ___

[Lldb-commits] [lldb] [lldb] remove AdaptedConstIterator and AdaptedIterable (PR #127507)

2025-02-17 Thread via lldb-commits
https://github.com/dlav-sc updated https://github.com/llvm/llvm-project/pull/127507 >From 9ac7f03648a41e1ffbd17e11485fa7f717708c50 Mon Sep 17 00:00:00 2001 From: Daniil Avdeev Date: Wed, 5 Feb 2025 13:20:24 + Subject: [PATCH] [lldb][NFC] remove AdaptedConstIterator and AdaptedIterable Adap

[Lldb-commits] [lldb] [lldb][NFC] remove AdaptedConstIterator and AdaptedIterable (PR #127507)

2025-02-17 Thread via lldb-commits
https://github.com/dlav-sc edited https://github.com/llvm/llvm-project/pull/127507 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] fix LR/SC handling in lldb-server (PR #127505)

2025-02-17 Thread via lldb-commits
https://github.com/dlav-sc updated https://github.com/llvm/llvm-project/pull/127505 >From 244a67ec597d74df382825fce475b269e27a18ef Mon Sep 17 00:00:00 2001 From: Daniil Avdeev Date: Tue, 11 Feb 2025 16:38:53 + Subject: [PATCH] [lldb][RISCV] fix LR/SC handling in lldb-server lldb-server did

[Lldb-commits] [lldb] [lldb] fix LR/SC handling in lldb-server (PR #127505)

2025-02-17 Thread via lldb-commits
https://github.com/dlav-sc updated https://github.com/llvm/llvm-project/pull/127505 >From 8691dc941dab6c04e980b0b84098d665833209ea Mon Sep 17 00:00:00 2001 From: Daniil Avdeev Date: Tue, 11 Feb 2025 16:38:53 + Subject: [PATCH] [lldb] fix LR/SC handling in lldb-server lldb-server didn't con

[Lldb-commits] [lldb] [lldb] remove AdaptedConstIterator and AdaptedIterable (PR #127507)

2025-02-17 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: None (dlav-sc) Changes AdaptedConstIterator currently doesn't have iterator traits, so I can't use STL algorithms with containers like WatchpointList. This patch replaces AdaptedConstIterator and AdaptedIterable with llvm::iterator_adaped

[Lldb-commits] [lldb] [lldb] fix LR/SC handling in lldb-server (PR #127505)

2025-02-17 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 4d7192a5ecabb36263a2cacd4e9243b958424805 2ab6cea7391b00ec865e6b7838452511320a2eee --e

[Lldb-commits] [lldb] [lldb] remove AdaptedConstIterator and AdaptedIterable (PR #127507)

2025-02-17 Thread via lldb-commits
https://github.com/dlav-sc created https://github.com/llvm/llvm-project/pull/127507 AdaptedConstIterator currently doesn't have iterator traits, so I can't use STL algorithms with containers like WatchpointList. This patch replaces AdaptedConstIterator and AdaptedIterable with llvm::iterator_

[Lldb-commits] [lldb] [lldb] fix software breakpoint removing in multithreaded process while stepping (PR #127506)

2025-02-17 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: None (dlav-sc) Changes I have encountered with the issue that sometimes lldb-server can't remove internal software breakpoints in a multithread process and as a result the process freezes. The source of the issue was that lldb-server trie

[Lldb-commits] [lldb] [lldb] fix software breakpoint removing in multithreaded process while stepping (PR #127506)

2025-02-17 Thread via lldb-commits
https://github.com/dlav-sc created https://github.com/llvm/llvm-project/pull/127506 I have encountered with the issue that sometimes lldb-server can't remove internal software breakpoints in a multithread process and as a result the process freezes. The source of the issue was that lldb-serve

[Lldb-commits] [lldb] [lldb] fix LR/SC handling in lldb-server (PR #127505)

2025-02-17 Thread via lldb-commits
https://github.com/dlav-sc created https://github.com/llvm/llvm-project/pull/127505 lldb-server didn't consider that LR instruction may be followed not only by BNE instruction (takes 4 bytes), but by BNEZ too, which is a compressed instruction (takes 2 bytes). As a result, after BNEZ lldb-serv

[Lldb-commits] [lldb] [lldb] Support stepping through C++ thunks (PR #127419)

2025-02-17 Thread Michael Buch via lldb-commits
@@ -476,3 +476,9 @@ CPPLanguageRuntime::GetStepThroughTrampolinePlan(Thread &thread, return ret_plan_sp; } + +bool CPPLanguageRuntime::IsSymbolARuntimeThunk(const Symbol &symbol) { + llvm::outs() << symbol.GetMangled().GetMangledName().GetStringRef() << '\n'; + return sym

[Lldb-commits] [lldb] [lldb][TypeSystemClang] Add support for floating point template argument constants (PR #127206)

2025-02-17 Thread Michael Buch via lldb-commits
@@ -544,7 +545,7 @@ bool operator==(const CompilerType &lhs, const CompilerType &rhs); bool operator!=(const CompilerType &lhs, const CompilerType &rhs); struct CompilerType::IntegralTemplateArgument { - llvm::APSInt value; + clang::APValue value; Michael13

[Lldb-commits] [lldb] [lldb][TypeSystemClang] Add support for floating point template argument constants (PR #127206)

2025-02-17 Thread Michael Buch via lldb-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/127206 >From 759f0569807d00a059a78aeb3bd1eddeffcbdf36 Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Fri, 14 Feb 2025 11:43:20 + Subject: [PATCH 01/10] Init --- lldb/include/lldb/Symbol/CompilerType.h

[Lldb-commits] [lldb] [lldb][TypeSystemClang] Add support for floating point template argument constants (PR #127206)

2025-02-17 Thread Michael Buch via lldb-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/127206 >From 759f0569807d00a059a78aeb3bd1eddeffcbdf36 Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Fri, 14 Feb 2025 11:43:20 + Subject: [PATCH 1/9] Init --- lldb/include/lldb/Symbol/CompilerType.h |

[Lldb-commits] [lldb] [lldb][TypeSystemClang] Add support for floating point template argument constants (PR #127206)

2025-02-17 Thread Michael Buch via lldb-commits
@@ -119,7 +119,7 @@ lldb_private::formatters::LibcxxStdSpanSyntheticFrontEnd::Update() { } else if (auto arg = m_backend.GetCompilerType().GetIntegralTemplateArgument(1)) { - m_num_elements = arg->value.getLimitedValue(); + m_num_elements = a

[Lldb-commits] [lldb] [lldb][TypeSystemClang] Add support for floating point template argument constants (PR #127206)

2025-02-17 Thread Michael Buch via lldb-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/127206 >From 759f0569807d00a059a78aeb3bd1eddeffcbdf36 Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Fri, 14 Feb 2025 11:43:20 + Subject: [PATCH 1/8] Init --- lldb/include/lldb/Symbol/CompilerType.h |

[Lldb-commits] [lldb] [lldb][TypeSystemClang] Add support for floating point template argument constants (PR #127206)

2025-02-17 Thread Michael Buch via lldb-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/127206 >From 759f0569807d00a059a78aeb3bd1eddeffcbdf36 Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Fri, 14 Feb 2025 11:43:20 + Subject: [PATCH 1/7] Init --- lldb/include/lldb/Symbol/CompilerType.h |

[Lldb-commits] [lldb] [lldb] Support stepping through C++ thunks (PR #127419)

2025-02-17 Thread Michael Buch via lldb-commits
@@ -476,3 +476,9 @@ CPPLanguageRuntime::GetStepThroughTrampolinePlan(Thread &thread, return ret_plan_sp; } + +bool CPPLanguageRuntime::IsSymbolARuntimeThunk(const Symbol &symbol) { + llvm::outs() << symbol.GetMangled().GetMangledName().GetStringRef() << '\n'; -

[Lldb-commits] [lldb] [lldb] Support stepping through C++ thunks (PR #127419)

2025-02-17 Thread Michael Buch via lldb-commits
https://github.com/Michael137 edited https://github.com/llvm/llvm-project/pull/127419 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-17 Thread Pavel Labath via lldb-commits
labath wrote: > Given that they also need to support (1) they'd always have to be full blown > plugins, right? So it's not like they could be migrated over to a "plugin > light" if we came up with something like that? Sort of. There would have to be *a* full-blown plugin. But there's no reason

[Lldb-commits] [lldb] Addressed additional review comments from PR/119716. (PR #126757)

2025-02-17 Thread Pavel Labath via lldb-commits
https://github.com/labath approved this pull request. https://github.com/llvm/llvm-project/pull/126757 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][TypeSystemClang] Add support for floating point template argument constants (PR #127206)

2025-02-17 Thread Pavel Labath via lldb-commits
@@ -1973,6 +1973,30 @@ class DWARFASTParserClang::DelayedAddObjCClassProperty { ClangASTMetadata m_metadata; }; +static std::optional MakeAPValue(const clang::ASTContext &ast, + CompilerType clang_type, +

[Lldb-commits] [lldb] [lldb][TypeSystemClang] Add support for floating point template argument constants (PR #127206)

2025-02-17 Thread Pavel Labath via lldb-commits
@@ -2061,17 +2082,22 @@ bool DWARFASTParserClang::ParseTemplateDIE( std::optional size = clang_type.GetBitSize(nullptr); if (!size) return false; labath wrote: It looks like this exists only to be passed to `MakeAPValue`. Since it alr

[Lldb-commits] [lldb] [lldb][TypeSystemClang] Add support for floating point template argument constants (PR #127206)

2025-02-17 Thread Pavel Labath via lldb-commits
@@ -544,7 +545,7 @@ bool operator==(const CompilerType &lhs, const CompilerType &rhs); bool operator!=(const CompilerType &lhs, const CompilerType &rhs); struct CompilerType::IntegralTemplateArgument { - llvm::APSInt value; + clang::APValue value; labath wr