[Lldb-commits] [lldb] [lldb] Store proper integer bitwidth in Scalar Type (PR #81451)

2024-02-12 Thread Kamlesh Kumar via lldb-commits
https://github.com/kamleshbhalui created https://github.com/llvm/llvm-project/pull/81451 Storing Larger bitwidth causes problem when byteswapping. >From 51347e2de532261cfe980b299baeceb7747b7d48 Mon Sep 17 00:00:00 2001 From: Kamlesh Kumar Date: Mon, 12 Feb 2024 13:30:32 +0530 Subject: [PATCH]

[Lldb-commits] [lldb] [lldb] Store proper integer bitwidth in Scalar Type (PR #81451)

2024-02-12 Thread Kamlesh Kumar via lldb-commits
https://github.com/kamleshbhalui updated https://github.com/llvm/llvm-project/pull/81451 >From 51347e2de532261cfe980b299baeceb7747b7d48 Mon Sep 17 00:00:00 2001 From: Kamlesh Kumar Date: Mon, 12 Feb 2024 13:30:32 +0530 Subject: [PATCH 1/2] [lldb] Store proper integer bitwidth in Scalar Type St

[Lldb-commits] [lldb] [lldb] Store proper integer bitwidth in Scalar Type (PR #81451)

2024-02-12 Thread Kamlesh Kumar via lldb-commits
kamleshbhalui wrote: There is not a test scenario in lldb itself. https://github.com/llvm/llvm-project/pull/81451 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Store proper integer bitwidth in Scalar Type (PR #81451)

2024-02-12 Thread Kamlesh Kumar via lldb-commits
kamleshbhalui wrote: > This uses `DataExtractor::GetMaxU64` which already does this under the hood. > What does this do that isn't already being done? It may help if you add a > test case to show what you are trying to fix. The problem with GetMaxU64 is that it always returns uint64_t even tho

[Lldb-commits] [lldb] [lldb] Store proper integer bitwidth in Scalar Type (PR #81451)

2024-02-14 Thread Kamlesh Kumar via lldb-commits
kamleshbhalui wrote: @clayborg @bulbazord we have extension in lldb to support cobol code debugging, we require byteswapping there. upstream version of lldb does not do byteswapping on scalar so no problem seen. https://github.com/llvm/llvm-project/pull/81451 _

[Lldb-commits] [lldb] [lldb] Store proper integer bitwidth in Scalar Type (PR #81451)

2024-02-14 Thread Kamlesh Kumar via lldb-commits
kamleshbhalui wrote: I think this PR https://reviews.llvm.org/D121408 introduced the current code, which causing the problem. https://github.com/llvm/llvm-project/pull/81451 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.

[Lldb-commits] [lldb] [lldb] Store proper integer bitwidth in Scalar Type (PR #81451)

2024-02-14 Thread Kamlesh Kumar via lldb-commits
kamleshbhalui wrote: > > > This uses `DataExtractor::GetMaxU64` which already does this under the > > > hood. What does this do that isn't already being done? It may help if you > > > add a test case to show what you are trying to fix. > > > > > > @clayborg @bulbazord The problem with GetMaxU

[Lldb-commits] [lldb] [lldb] Store proper integer bitwidth in Scalar Type (PR #81451)

2024-02-14 Thread Kamlesh Kumar via lldb-commits
kamleshbhalui wrote: > > @clayborg @bulbazord we have extension in lldb to support cobol code > > debugging, we require byteswapping there. upstream version of lldb does not > > do byteswapping on scalar so no problem seen. > > Maybe not, but this should still be testable with a unit test. If

[Lldb-commits] [lldb] [lldb] Store proper integer bitwidth in Scalar Type (PR #81451)

2024-02-14 Thread Kamlesh Kumar via lldb-commits
@@ -857,10 +857,18 @@ static Scalar DerefSizeExtractDataHelper(uint8_t *addr_bytes, DataExtractor addr_data(addr_bytes, size_addr_bytes, byte_order, size); lldb::offset_t addr_data_offset = 0; - if (size <= 8) -return addr_data.GetMaxU64(&addr_data_offset, size); -

[Lldb-commits] [lldb] [lldb] Store proper integer bitwidth in Scalar Type (PR #81451)

2024-02-14 Thread Kamlesh Kumar via lldb-commits
kamleshbhalui wrote: > I am fine with this patch if we fix the Scalar class to obey the bit width as > suggested above. I do worry though that other Scalar values in the expression > might get set to 64 bit values all of the time and cause problems with DWARF > expressions. Do you have a code

[Lldb-commits] [lldb] [LLDB] Enable TLS Variable Debugging Without Location Info on AArch64 (PR #110822)

2024-10-02 Thread Kamlesh Kumar via lldb-commits
https://github.com/kamleshbhalui created https://github.com/llvm/llvm-project/pull/110822 On AArch64, TLS variables do not have DT_Location entries generated in the debug information due to the lack of dtpoff relocation support, unlike on x86_64. LLDB relies on this location info to calculate

[Lldb-commits] [lldb] [LLDB] Enable TLS Variable Debugging Without Location Info on AArch64 (PR #110822)

2024-10-02 Thread Kamlesh Kumar via lldb-commits
https://github.com/kamleshbhalui updated https://github.com/llvm/llvm-project/pull/110822 >From f36d8a2346be90b6bf5d68a7cec0bcf2d41cbd99 Mon Sep 17 00:00:00 2001 From: Kamlesh Kumar Date: Thu, 19 Sep 2024 18:57:14 +0200 Subject: [PATCH] [LLDB] Enable TLS Variable Debugging Without Location Info

[Lldb-commits] [lldb] [LLDB] Enable TLS Variable Debugging Without Location Info on AArch64 (PR #110822)

2024-10-02 Thread Kamlesh Kumar via lldb-commits
https://github.com/kamleshbhalui updated https://github.com/llvm/llvm-project/pull/110822 >From ba3071566ac697e750606c7fc941e5f6fc738367 Mon Sep 17 00:00:00 2001 From: Kamlesh Kumar Date: Thu, 19 Sep 2024 18:57:14 +0200 Subject: [PATCH] [LLDB] Enable TLS Variable Debugging Without Location Info

[Lldb-commits] [lldb] [LLDB] Enable TLS Variable Debugging Without Location Info on AArch64 (PR #110822)

2024-10-03 Thread Kamlesh Kumar via lldb-commits
kamleshbhalui wrote: > The implementation of Variable::IsThreadLocal is most likely a non-starter, > as it introduces a relatively expensive operation on the common variable > update path for all variables. Doing this (once) at variable creation would > be better, but I still have very big res