初始化GDB调试器
gdb_initInitialize a GDB debugging session for embedded systems across ARM and x86 architectures, with options to specify custom GDB path or target architecture.
Instructions
启动指定架构的GDB进程,默认使用aarch64交叉编译器。
参数:
gdbPath (可选): GDB可执行文件路径
architecture (可选): 目标架构 (aarch64/arm/x86_64)
示例:
gdb_init() → 使用默认 aarch64-none-linux-gnu-gdb
gdb_init({architecture: "arm"}) → 使用 arm-none-eabi-gdb
gdb_init({gdbPath: "/opt/gdb/my-gdb"}) → 使用自定义GDB路径
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gdbPath | No | GDB executable path, defaults to aarch64-none-linux-gnu-gdb | |
| architecture | No | Target architecture |