Inquiry about Error codes sent by lldb-server

Hello,
The lldb-server sends hard coded values like 0x78 etc in case of error, so does the ProcessGDBRemote use these numbers anyway except for just detecting error ? ( in my understanding it doesn’t seem to use the value of the number please correct me if i am wrong ). Is there some special meaning to these numbers ?

Regards,
A Ravi Theja

Hello,
      The lldb-server sends hard coded values like 0x78 etc in case of error, so does the ProcessGDBRemote use these numbers anyway except for just detecting error ? ( in my understanding it doesn't seem to use the value of the number please correct me if i am wrong ). Is there some special meaning to these numbers ?

None what so ever. They are just random number that tell you nothing.

Note this isn't something we made up... In the gdb remote protocol spec, it says:

The error response returned for some packets includes a two character error number. That number is not well defined.

I think they are just meant to be useful for debugging a particular gdb-remote protocol server. For instance, in lldb some of the packet response handlers that emit various error numbers, which will help you trace the error back to its source. But in the specification of the protocol, they seldom have any particular meaning.

Jim