farre / midas

A GDB/MI Visual Studio Code Debug Adapter
MIT License
29 stars 1 forks source link

Additional toolchain metadata needed #158

Closed theIDinside closed 1 year ago

theIDinside commented 1 year ago

We need to be able to compare not only release versions of RR (and possibly GDB in the future), but also need to determine if the "current master" is different.

To do this with RR; one way could be to calculate the checksum of the latest rr-master.zip file downloaded and compare future downloads/checks with this checksum, meaning if it changes, means there's new content on the master branch. The RR zip file on the master branch has a 2mb size, so technically this could be opted into to download at each start of vscode and compare against. It's not an amazing solution but it will work and because of the 2mb download every time should be opt in with default being opt-out.

theIDinside commented 1 year ago

Better solution is use Github's REST api. This unfortunately will not work with GDB, but gdb, if it will be managed by Midas, will not be managed using github, but by GDB's releases instead.

RR git information can be fetched from

https://api.github.com/repos/rr-debugger/rr/commits/master