-
Notifications
You must be signed in to change notification settings - Fork 1.6k
no hardware breakpoint support in the target #11505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I believe the reason for this bug is that when vscode is debugging, it first loads |
We cannot attempt to set a hardware breakpoint before executing |
I think you're right. I also need this. I need to first connect to the target, then load binary onto the target, then set breakpoints. |
Hello Sir, I want to fix the issue by myself. I have learned PS: What is the executable file "cpptools" located in the |
solved by microsoft/vscode-docs/pull/6969, try to use postRemoteConnectCommands filed in launch.json |
Environment
I develop my code on my linux server, VScode client is running on windows 11, my linux server is ubuntu 22.04. I'm developing linux hypervisor driver. So, on the server, I'm trying to use gdb to debug my driver with qemu.
Bug Summary and Steps to Reproduce
Bug Summary:

I can use gdb to debug driver when enabling kvm or disable kvm, I also can use vscode to debug linux kernel when disable kvm. But when I enable kvm, vscode runs into error:
GDB debug success
gdb debug error
I can use gdb to repeat the same error as vscode when I don't say "target remote :4921" but try to set hbreak.

But if I try to hbreak start_kernel, I cannot repeat the same error, I only have

Debugger Configurations
launch.json
tasks.json
Debugger Logs
Other Extensions
No response
Additional Information
run-qemu.sh
gdbinit
The text was updated successfully, but these errors were encountered: