[Bug 47820] New: Correct vFile:pread/pwrite packet format incompatibility with gdb

Bug ID 47820
Summary Correct vFile:pread/pwrite packet format incompatibility with gdb
Product lldb
Version 11.0
Hardware All
OS All
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter david.spickett@linaro.org
CC jdevlieghere@apple.com, llvm-bugs@lists.llvm.org

This is derived from discussion on: [https://reviews.llvm.org/D89227](https://reviews.llvm.org/D89227)

Where I updated the docs to say that vFile:pread/pwrite use different number
formats in gdb and lldb.

The protocol specification requires hex formatted numbers (no mention of 0x
prefix or not)
gdb/gdb-server send/expect to get hex numbers without an 0x prefix
lldb/lldb-server send decimal numbers and expect to get either decimal numbers
or hex with the 0x prefix

Plan to fix this: (from labath's comment)
* Change lldb to send hex with 0x prefix, wait a while
* Change lldb-server to always expect hex (0x prefix or otherwise), wait again
* Change lldb to send hex *without* the 0x prefix

Which gets us to matching gdb.

Waiting some time allows us to keep some compatibility going between old
clients and new servers. I'm interpreting this to mean wait a release between
each one.