Open wjhun opened 2 years ago
@wjhun I think that's why it was turned off by default was the lack of breakpoints and a few other things, also it does other things by default when debug is turned on like turning off aslr https://github.com/nanovms/ops/issues/715
ops implicitly disables hardware acceleration when the '-d' flag is specified, yet there are still legitimate uses for running remote gdb with acceleration enabled. For example, it is still possible to interrupt a running instance and inspect the machine state while running with kvm enabled.
Instead of the existing behavior, ops could print a warning to the effect of "breakpoints and other features may not correctly function with acceleration enabled", but ultimately leave it up to the user whether to leave acceleration enabled.
Incidentally, it is not clear from ops usage how to go about disabling acceleration, as there is the "--accel" flag to enable it, yet it is also enabled by default: