From 31e8f9d0933aa1d967b3f2b671b91eb725bd0035 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Wed, 13 May 2026 12:55:38 +0200 Subject: [PATCH] add .vscode debug configuration --- .vscode/launch.json | 50 +++++++++++++++++++++++++++++++++++++++++++++ scripts/menu.pl | 2 ++ 2 files changed, 52 insertions(+) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..fa9d10f --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,50 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "sum0_base AOT Array.Text Mmap.Text", + "type": "lldb", + "request": "launch", + "program": "/home/christoph/Notes/TU/MastersThesis/FailNix/builds/2026-05-11T19:19:39_sum0_base-linux-aot/system.elf", + "args": [], + "cwd": "/home/christoph/Notes/TU/MastersThesis/FailNix/builds/2026-05-11T19:19:39_sum0_base-linux-aot", + "initCommands": [ + "settings set target.x86-disassembly-flavor intel", + "breakpoint set -b main", + "breakpoint set -b fail_start_trace", + "breakpoint set -b fail_stop_trace", + "breakpoint set -b fail_marker_positive", + "breakpoint set -b fail_marker_negative", + "breakpoint set -b invokeNative_Void", + ], + "sourceMap": { + "/build/source/core": "/home/christoph/Notes/TU/MastersThesis/05 WAMR/core", + "/home/christoph/Notes/TU/MastersThesis/FailNix/build-sum0_base": "/home/christoph/Notes/TU/MastersThesis/FailNix/builds/2026-05-11T19:19:39_sum0_base-linux-aot", + }, + }, + { + "name": "sum0_base AOT Array.Text Mmap.Text --xip", + "type": "lldb", + "request": "launch", + "program": "/home/christoph/Notes/TU/MastersThesis/FailNix/builds/2026-05-13T13:16:09_sum0_base-linux-aot/system.elf", + "args": [], + "cwd": "/home/christoph/Notes/TU/MastersThesis/FailNix/builds/2026-05-13T13:16:09_sum0_base-linux-aot", + "initCommands": [ + "settings set target.x86-disassembly-flavor intel", + "breakpoint set -b main", + "breakpoint set -b fail_start_trace", + "breakpoint set -b fail_stop_trace", + "breakpoint set -b fail_marker_positive", + "breakpoint set -b fail_marker_negative", + "breakpoint set -b invokeNative_Void", + ], + "sourceMap": { + "/build/source/core": "/home/christoph/Notes/TU/MastersThesis/05 WAMR/core", + "/home/christoph/Notes/TU/MastersThesis/FailNix/build-sum0_base": "/home/christoph/Notes/TU/MastersThesis/FailNix/builds/2026-05-13T13:16:09_sum0_base-linux-aot", + }, + }, + ], +} diff --git a/scripts/menu.pl b/scripts/menu.pl index ff5329e..4008c08 100644 --- a/scripts/menu.pl +++ b/scripts/menu.pl @@ -419,6 +419,8 @@ my %handlers = ( '-q', "$build_dir/system.elf", '-ex', + 'set disassembly-flavor intel', + '-ex', "set substitute-path '$module_source' '$build_dir'", '-ex', "set substitute-path '/build/source/core' '$local_wamr/core'",