launch.json 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {
  2. // Use IntelliSense to learn about possible attributes.
  3. // Hover to view descriptions of existing attributes.
  4. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  5. "version": "0.2.0",
  6. "configurations": [
  7. {
  8. "type": "lldb",
  9. "request": "launch",
  10. "name": "Debug RISCV64 lldb",
  11. "stopOnEntry": false,
  12. "targetCreateCommands": ["target create ${workspaceFolder}/bin/riscv64/kernel/kernel.elf"],
  13. "processCreateCommands": [
  14. "gdb-remote localhost:1234",
  15. "settings set target.process.follow-fork-mode child",
  16. "continue" // Get over the first trap into the kernel
  17. ],
  18. "args": [],
  19. "cwd": "${workspaceFolder}",
  20. "sourceLanguages": ["c", "cpp", "rust"],
  21. "console": "internalConsole"
  22. },
  23. {
  24. "type": "cppdbg",
  25. "request": "launch",
  26. "name": "Debug RISCV64 gdb-multiarch",
  27. "stopAtConnect": true,
  28. "program": "${workspaceRoot}/bin/riscv64/kernel/kernel.elf",
  29. "miDebuggerPath": "gdb-multiarch",
  30. "miDebuggerServerAddress": "localhost:1234",
  31. "postRemoteConnectCommands": [
  32. {
  33. "text": "set follow-fork-mode child"
  34. }
  35. ],
  36. "useExtendedRemote": true,
  37. "args": [],
  38. "cwd": "${workspaceRoot}",
  39. "environment": [],
  40. "internalConsoleOptions": "neverOpen",
  41. "externalConsole": false,
  42. "logging": {
  43. "engineLogging": false
  44. },
  45. "MIMode": "gdb"
  46. }
  47. ]
  48. }