Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
buhe committed Oct 15, 2021
1 parent 09998c1 commit 0ae2cba
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 8 deletions.
17 changes: 10 additions & 7 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@
"configurations": [
{
"type": "gdb",
"request": "attach",
"name": "Attach to gdbserver",
"executable": "./target/riscv64gc-unknown-none-elf/debug/os",
"target": "localhost:3333",
"remote": true,
"request": "launch",
"name": "debug os",
"target": "/Users/buhe/code/gitHub/buguOS/os/target/riscv64gc-unknown-none-elf/debug/os",
"cwd": "${workspaceRoot}/os",
"valuesFormatting": "parseText"
"autorun": [
"target remote localhost:3333",
"monitor reset halt",
"load /Users/buhe/code/gitHub/buguOS/os/target/riscv64gc-unknown-none-elf/debug/os"
],
"gdbpath": "/Users/buhe/.vscode/extensions/metalcode-eu.darwin-riscv-1.0.3/bin/riscv64-unknown-elf-gdb",
}
]
}
}
20 changes: 19 additions & 1 deletion docs/插播 1 在 mac 上用 vsc 调试内核.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,25 @@

### 步骤

```
brew install libusb libusb-compat isl libmpc
```

| library | description |
| ------------- | ------------------------------------------------------------ |
| isl | Integer Set Library for the polyhedral model |
| libmpc | library for the arithmetic of high precision complex numbers |
| libusb | library for USB access |
| libusb-compat | library for USB-JTAG access |

- 安装 vsc 插件 metalcode-eu.darwin-riscv (这是插件 id).
- 建立 tasks.json 内容
- 在 Makefile 添加目标,内容
- 输入 ⇧⌘B 触发任务
- 输入 ⇧⌘B 触发任务

### gdb

```
/Users/buhe/.vscode/extensions/metalcode-eu.darwin-riscv-1.0.3/bin/riscv64-unknown-elf-gdb
```

0 comments on commit 0ae2cba

Please sign in to comment.