小编HmT*_*HmT的帖子

使用 Visual Studion Code 连接到 QEMU 中运行的 OP-TEE 的 gdb-server

我正在 ARM-64 中设置 op-tee。我想知道是否可以使用在 ubuntu 18.04 下运行的 Visual Studio 代码来调试它。

到目前为止,我已经能够在 QEMU 中编译和运行 op-tee。并且还能够使用命令行 gdb 连接 gdb-server(点击此链接:https : //www.op-tee.org/docs/debug/)。

现在我想使用一些 GUI 而不是 gdb。由于我正在使用 Visual Studio 代码,所以我想知道是否可以配置 vsCode 来这样做?

我试过安装 cortex-debug 扩展(我不确定它是否正确),也试过 c/c++ 调试附加。但我不能让他们工作!

这是我的 launch.json 文件:

{
// 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": "(gdb) Attach",
        "type": "cppdbg",
        "request": "attach",
        "program": "${workspaceFolder}/optee_os/out/arm/core/tee.elf",
        "miDebuggerServerAddress": "localhost:1234",
        "processId": "${command:pickProcess}",
        "MIMode": …
Run Code Online (Sandbox Code Playgroud)

debugging qemu gdbserver arm64 visual-studio-code

4
推荐指数
1
解决办法
4082
查看次数

标签 统计

arm64 ×1

debugging ×1

gdbserver ×1

qemu ×1

visual-studio-code ×1