This is an archive of the discontinued LLVM Phabricator instance.

[lldb/gdb-remote] Remove ancient debugserver workaround
ClosedPublic

Authored by labath on Mar 9 2022, 9:25 AM.

Details

Summary

This workaround is the source of an awkwared Process->Platform
dependency. While this could be solved in various ways (the only thing
we really use is the plugin name), it may be better to just remove it --
the workaround was added 10 years ago (43c555dfc), and the affected
debugservers were "old" even then, so hopefully they are not in use
anymore.

Diff Detail

Event Timeline

labath created this revision.Mar 9 2022, 9:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 9 2022, 9:25 AM
Herald added a subscriber: mgorny. · View Herald Transcript
labath requested review of this revision.Mar 9 2022, 9:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 9 2022, 9:25 AM
labath added a comment.Mar 9 2022, 9:28 AM

Phabricator didn't turn the commit reference into a link as I'd hoped, so here is it now: rG43c555dfcd76004d56ba03fd33ebbdba09f58d47

JDevlieghere accepted this revision.Mar 9 2022, 9:28 AM

Assuming this isn't relevant anymore, LGTM.

This revision is now accepted and ready to land.Mar 9 2022, 9:28 AM
labath added a comment.Mar 9 2022, 9:37 AM

Assuming this isn't relevant anymore

I was hoping you would be able to tell me that. :P

I mean, it keys off of GetThreadSuffixSupported() == false, which means it must catch only extremely old debugservers, but that's about the only thing I can say about that...

Assuming this isn't relevant anymore

I was hoping you would be able to tell me that. :P

Haha yeah this was rhetorical as in "I don't see anything that indicates that this is relevant" :-)

Note this isn't about thread-suffix, that was an accidental marker for the debugservers that had an unrelated bug with shutting down when there was a thread stopped at a breakpoint or exception. But you are right about the main point, there hasn't been a debugserver that didn't support the thread suffix for ages, so this code has been dead code for a long time now.

This revision was automatically updated to reflect the committed changes.