@@ -3569,6 +3569,7 @@ class DevtoolIdeSdkGccTests(DevtoolIdeSdkTests):
# from the process instead of killing it.
self.assertTrue(config.get("useExtendedRemote"), f"Configuration '{config['name']}' should use useExtendedRemote")
self.assertNotIn("cwd", config, f"Configuration '{config['name']}' should not set cwd in attach mode")
+ self.assertTrue(config.get("processFilter"), f"Configuration '{config['name']}' should use processFilter")
else:
self.fail(f"Configuration '{config['name']}' has unexpected request type: {config['request']}")
@@ -387,6 +387,7 @@ class IdeVSCode(IdeBase):
# this configuration is generated. Stopping the session detaches
# from the process instead of killing it.
launch_config["useExtendedRemote"] = True
+ launch_config["processFilter"] = "(^| )%s( |$)" % cross_debug_config.binary.binary_path
else:
# cwd, environment and externalConsole configure the process the
# debugger starts, they are not part of the attach schema.