Re: GDB Remote Protocol Extension - Linux VMCOREINFO - Request for Feedback
Tom Tromey <[email protected]> Tue, 14 Jan 2025 10:15:16 -0700
| Newsgroups | org.kernel.vger.linux-debuggers |
|---|---|
| Message-ID | <[email protected]> |
>>>>> Luis Machado via Gdb <[email protected]> writes: >> To sum up, my specific questions are: >> >> 1. What is the maximum protocol packet size, if any? > It is hardcoded by gdb, but the remote can also specify that, but... >> 2. Would this functionality be better implemented in a single "q >> linux.vmcoreinfo" packet, or as a "qXfer" packet? > ... we have packets like qXfer that can handle multi-part transfers. So the > packet size is not a critical concern anymore, and it is best to use this > newer mechanism, if the usage fits the packet structure. Agreed, qXfer is the way to go. If you're adding a new object type, a patch to the manual would be good. Tom