This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Remove distribution_id from ArchSpec
ClosedPublic

Authored by bulbazord on May 2 2023, 2:56 PM.

Details

Summary

The qHostInfo packet in the gdb-remote communication protocol specifies
that distribution_id can be set, so lldb handles that. But we store that
in the ArchSpec representing the "Host" platform (whatever platform the
debug server is running on). This field is otherwise unused in ArchSpec,
so it would be a lot easier if we stored that information at the
gdb-remote communication layer.

Sidenote: The distribution_id field is currently unused but I did not
want to remove it in case some folks found it useful (e.g. in downstream
forks).

Diff Detail

Event Timeline

bulbazord created this revision.May 2 2023, 2:56 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 2 2023, 2:56 PM
bulbazord requested review of this revision.May 2 2023, 2:56 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 2 2023, 2:56 PM
labath accepted this revision.May 3 2023, 12:26 AM

FWIW, I'd be very much in favour of removing distribution_id support altogether.

This revision is now accepted and ready to land.May 3 2023, 12:26 AM
JDevlieghere accepted this revision.May 3 2023, 9:45 AM
This revision was automatically updated to reflect the committed changes.