I'm rewriting this for 2 reasons:
- Although a 1024 char buffer is probably enough space, the error string may grow beyond that and we could lose some information. Using StringStream (as we do in the rest of ProcessGDBRemote) seems like a sensible solution.
- I am planning on changing UnixSignals::GetSignalAsCString, rewriting things with llvm::formatv will make that process easier.