Browse Source
As libusb has no real async callback, we need to call libusb_handle_events() in different places. While waiting for the gdb connection, we set the socket to non-blocking and check additional for usb events in that loop. That way, detach is also detected while waiting for connection. With debugger attached, SET_IDLE_STATE ist missused for checking for usb events.pull/511/head
Uwe Bonnes
5 years ago
3 changed files with 72 additions and 4 deletions
Loading…
Reference in new issue