compnerd / compnerd/ds2

return md5 hash of executable file in the `qModuleInfo` response when no build ID is available

Open
#126 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
20
Forks
4
PR merge metrics
No merged PRs in 30d

Description

The response to `qModuleInfo` contains the executable file's embedded build ID as a "uuid" field. For executable files that don't have a build ID, calculate an md5 hash of the file, contents and return that as an "md5" field instead of the "uuid" field.

https://github.com/compnerd/ds2/blob/6c269217da706efc3db9c6e04245c62dc4d35ac8/Sources/GDBRemote/Mixins/FileOperationsMixin.hpp#L104-L115

Also consider implementing support for `vFile:MD5` in `Session::Handle_vFile` since it could reuse the same implementation.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.