[Lldb-commits] [lldb] [lldb] Implement WebAssembly debugging (PR #76683)

2024-01-12 Thread Jonas Devlieghere via lldb-commits
@@ -0,0 +1,295 @@ +// This file comes from https://reviews.llvm.org/D78978. +// Author: [@paolosev](https://reviews.llvm.org/p/paolosev/). + +//===-- ProcessWasm.cpp ---===// +// +// Part of the LLVM Project, under the Apache Licens

[Lldb-commits] [lldb] [lldb] Implement WebAssembly debugging (PR #76683)

2024-01-12 Thread Jonas Devlieghere via lldb-commits
@@ -0,0 +1,15 @@ +# This file comes from https://reviews.llvm.org/D78978. +# Author: [@paolosev](https://reviews.llvm.org/p/paolosev/). + JDevlieghere wrote: Remove this https://github.com/llvm/llvm-project/pull/76683

[Lldb-commits] [lldb] [lldb] Implement WebAssembly debugging (PR #76683)

2024-01-12 Thread Jonas Devlieghere via lldb-commits
@@ -0,0 +1,295 @@ +// This file comes from https://reviews.llvm.org/D78978. +// Author: [@paolosev](https://reviews.llvm.org/p/paolosev/). + JDevlieghere wrote: Remove this here and everywhere else. https://github.com/llvm/llvm-project/pull/76683 ___

[Lldb-commits] [lldb] [lldb] Implement WebAssembly debugging (PR #76683)

2024-01-12 Thread Jonas Devlieghere via lldb-commits
@@ -0,0 +1,295 @@ +// This file comes from https://reviews.llvm.org/D78978. +// Author: [@paolosev](https://reviews.llvm.org/p/paolosev/). + +//===-- ProcessWasm.cpp ---===// +// +// Part of the LLVM Project, under the Apache Licens

[Lldb-commits] [lldb] [lldb] Implement WebAssembly debugging (PR #76683)

2024-01-12 Thread Jonas Devlieghere via lldb-commits
@@ -0,0 +1,135 @@ +// This file comes from https://reviews.llvm.org/D78978. +// Author: [@paolosev](https://reviews.llvm.org/p/paolosev/). + +//===-- ProcessWasm.h ---*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache Licens

[Lldb-commits] [lldb] [lldb] Implement WebAssembly debugging (PR #76683)

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

[Lldb-commits] [lldb] [lldb] Implement WebAssembly debugging (PR #76683)

2024-01-12 Thread Jonas Devlieghere via lldb-commits
@@ -0,0 +1,135 @@ +// This file comes from https://reviews.llvm.org/D78978. +// Author: [@paolosev](https://reviews.llvm.org/p/paolosev/). + +//===-- ProcessWasm.h ---*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache Licens

[Lldb-commits] [lldb] [lldb] Implement WebAssembly debugging (PR #76683)

2024-01-12 Thread Jonas Devlieghere via lldb-commits
@@ -2595,6 +2606,37 @@ bool DWARFExpression::Evaluate( break; } +case DW_OP_WASM_location: { + uint8_t wasm_op = opcodes.GetU8(&offset); + uint32_t index; + + /* LLDB doesn't have an address space to represents WebAssembly Locals,

[Lldb-commits] [lldb] [lldb] Implement WebAssembly debugging (PR #76683)

2024-01-12 Thread Jonas Devlieghere via lldb-commits
@@ -0,0 +1,295 @@ +// This file comes from https://reviews.llvm.org/D78978. +// Author: [@paolosev](https://reviews.llvm.org/p/paolosev/). + +//===-- ProcessWasm.cpp ---===// +// +// Part of the LLVM Project, under the Apache Licens

[Lldb-commits] [lldb] [lldb] Implement WebAssembly debugging (PR #76683)

2024-01-12 Thread Jonas Devlieghere via lldb-commits
@@ -0,0 +1,295 @@ +// This file comes from https://reviews.llvm.org/D78978. +// Author: [@paolosev](https://reviews.llvm.org/p/paolosev/). + +//===-- ProcessWasm.cpp ---===// +// +// Part of the LLVM Project, under the Apache Licens

[Lldb-commits] [lldb] [lldb] Implement WebAssembly debugging (PR #76683)

2024-01-12 Thread Jonas Devlieghere via lldb-commits
@@ -0,0 +1,295 @@ +// This file comes from https://reviews.llvm.org/D78978. +// Author: [@paolosev](https://reviews.llvm.org/p/paolosev/). + +//===-- ProcessWasm.cpp ---===// +// +// Part of the LLVM Project, under the Apache Licens

[Lldb-commits] [lldb] [lldb] Implement WebAssembly debugging (PR #76683)

2024-01-12 Thread Jonas Devlieghere via lldb-commits
https://github.com/JDevlieghere commented: Thanks for picking this up again. I was going to ask about testing and I see that Adrian asked a similar question on Phabricator in the original review. My recommendation would be to use `GdbRemoteTestCaseBase` style tests for this, as they'll run on

[Lldb-commits] [lldb] [lldb] Implement WebAssembly debugging (PR #76683)

2024-01-12 Thread Jonas Devlieghere via lldb-commits
@@ -2595,6 +2606,37 @@ bool DWARFExpression::Evaluate( break; } +case DW_OP_WASM_location: { + uint8_t wasm_op = opcodes.GetU8(&offset); + uint32_t index; + + /* LLDB doesn't have an address space to represents WebAssembly Locals, + * GLobals

[Lldb-commits] [lldb] [lldb] Implement WebAssembly debugging (PR #76683)

2024-01-12 Thread via lldb-commits
llvmbot wrote: @llvm/pr-subscribers-lldb Author: Paolo Severini (paolosevMSFT) Changes Add support for source-level debugging of WebAssembly code that runs in a WebAssembly engine. The idea is to use the GDB-remote protocol to connect to a Wasm engine that implements a GDB-remote stub

[Lldb-commits] [lldb] [lldb] Implement WebAssembly debugging (PR #76683)

2024-01-12 Thread Paolo Severini via lldb-commits
https://github.com/paolosevMSFT ready_for_review https://github.com/llvm/llvm-project/pull/76683 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Implement WebAssembly debugging (PR #76683)

2024-01-12 Thread Paolo Severini via lldb-commits
https://github.com/paolosevMSFT edited https://github.com/llvm/llvm-project/pull/76683 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Implement WebAssembly debugging (PR #76683)

2024-01-12 Thread Paolo Severini via lldb-commits
https://github.com/paolosevMSFT updated https://github.com/llvm/llvm-project/pull/76683 >From 739b26b03fd3661d1c22b975e241cbbe60ca6531 Mon Sep 17 00:00:00 2001 From: Paolo Severini Date: Mon, 1 Jan 2024 06:55:40 -0800 Subject: [PATCH 1/4] [lldb] Implement WebAssembly debugging Add support for

[Lldb-commits] [lldb] [lldb] Implement WebAssembly debugging (PR #76683)

2024-01-12 Thread Paolo Severini via lldb-commits
https://github.com/paolosevMSFT edited https://github.com/llvm/llvm-project/pull/76683 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Implement WebAssembly debugging (PR #76683)

2024-01-10 Thread Paolo Severini via lldb-commits
https://github.com/paolosevMSFT updated https://github.com/llvm/llvm-project/pull/76683 >From 739b26b03fd3661d1c22b975e241cbbe60ca6531 Mon Sep 17 00:00:00 2001 From: Paolo Severini Date: Mon, 1 Jan 2024 06:55:40 -0800 Subject: [PATCH 1/3] [lldb] Implement WebAssembly debugging Add support for

[Lldb-commits] [lldb] [lldb] Implement WebAssembly debugging (PR #76683)

2024-01-04 Thread Paolo Severini via lldb-commits
https://github.com/paolosevMSFT updated https://github.com/llvm/llvm-project/pull/76683 >From 739b26b03fd3661d1c22b975e241cbbe60ca6531 Mon Sep 17 00:00:00 2001 From: Paolo Severini Date: Mon, 1 Jan 2024 06:55:40 -0800 Subject: [PATCH 1/2] [lldb] Implement WebAssembly debugging Add support for

[Lldb-commits] [lldb] [lldb] Implement WebAssembly debugging (PR #76683)

2024-01-01 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 25cd249355b0f3192ca5b0c69514ad68a1cb8897 739b26b03fd3661d1c22b975e241cbbe60ca6531 --

[Lldb-commits] [lldb] [lldb] Implement WebAssembly debugging (PR #76683)

2024-01-01 Thread Paolo Severini via lldb-commits
https://github.com/paolosevMSFT created https://github.com/llvm/llvm-project/pull/76683 Add support for source-level debugging of WebAssembly code. >From 739b26b03fd3661d1c22b975e241cbbe60ca6531 Mon Sep 17 00:00:00 2001 From: Paolo Severini Date: Mon, 1 Jan 2024 06:55:40 -0800 Subject: [PATCH]