From a5b75e29ff1163f433a707506161943289e98d6c Mon Sep 17 00:00:00 2001 From: Enguerrand de Ribaucourt Date: Sun, 25 Feb 2024 21:47:01 +0100 Subject: devtool: ide-sdk source mapping for vscode When launching the debug configuration, the source files from the debug rootfs were openened in the editor instead of the local workspace files. We add an exception to properly map them to the file being developed and compiled by the IDE integration. This also more closely matches what the user would expect compared to native development. This is also true for the devtool fallback mode. (From OE-Core rev: 24db2b8d0d7104960c1cdb2c7ee5216c830a6754) Signed-off-by: Enguerrand de Ribaucourt Signed-off-by: Richard Purdie --- scripts/lib/devtool/ide_sdk.py | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts/lib/devtool/ide_sdk.py') diff --git a/scripts/lib/devtool/ide_sdk.py b/scripts/lib/devtool/ide_sdk.py index 3bfeb5a3fc..289bbbf47c 100755 --- a/scripts/lib/devtool/ide_sdk.py +++ b/scripts/lib/devtool/ide_sdk.py @@ -357,6 +357,7 @@ class RecipeModified: 'PACKAGE_DEBUG_SPLIT_STYLE') self.path = recipe_d.getVar('PATH') self.pn = recipe_d.getVar('PN') + self.pv = recipe_d.getVar('PV') self.recipe_sysroot = os.path.realpath( recipe_d.getVar('RECIPE_SYSROOT')) self.recipe_sysroot_native = os.path.realpath( -- cgit v1.2.3-54-g00ecf