天天看点

RPC protocol one typical usage model: mutiple platform debug tool connection

Background Introduce:

use an debug tool which is an IDE on windows  to debug each mutiple OSs(for example fedora).

model: C/S, all target machine treat as an server, and target will launch a debug server process, which wrap all debug operation and all specific OS call,

so that debug tool can connection all platforms and no need to care about which platform.

this page only just focus on debug tool connection with debug server process, and the usage of RPC.(ignore all debug tool and debug server detail implementation)

Bi-way talk and communication process as follow flow chart:

RPC protocol one typical usage model: mutiple platform debug tool connection
RPC protocol one typical usage model: mutiple platform debug tool connection

There is an important point at this model: due to debug target, so that debug tool must can catch the interrupts and give target some feedback. So only one RPC channel for debug tool call target is no enough, need another channel for debug target interrupts call debug tool. 

So you can see when you start debug tool there is RPC listen start to wait for interrupts.