Open luser opened 6 years ago
I don't think we're very far off! If I change noop-server to return Stopped(Signal(11))
for stop_reason
, and feed gdb file /build/hello
so it has a binary to work with, it gets hung up because it sends a g
packet and doesn't like getting an empty response.
I landed a basic framework for writing gdb integration tests. It only has one test right now, and that test returns
StopReason::Exited(...)
, so running gdb against the test server makes gdb disconnect right away (because we're not usingextended-remote
). If I change the test server to returnStopReason::Signal(...)
GDB first prints a warning that it can't find an executable (because we don't supportqXfer
etc) and then hangs while repeatedly printingIgnoring packet error, continuing...
. I don't know if fixing the file issue would fix that or not, I didn't test that yet.We should get a test passing that does at least that, and then keep building from there.