• Cristian Maglie's avatar
    [skip-changelog] Made the `Debug*` gRPC API implementation in par with the rest (#2672) · 5f010004
    Cristian Maglie authored
    * Inlined gRPC methods to implement GetDebugConfig and IsDebugSupported
    
    * Inlined function
    
    * Renamed vars for clarity
    
    * Added Debug gRPC adapter function
    
    * Moved function and removed useless file
    
    * Forward os.interrupt (aka CTRL-C) signal to the gdb process
    
    This a challenging problem because we must wait on both an io.Read(...)
    and a channel-read but, unfortunately, go native select can wait only on
    channels.
    To overcome this limitation I had to resort to a conditional variable and
    write some boilerplate code to make everything synchronized.
    5f010004
debug_check.go 3.2 KB