This is an archive of the discontinued LLVM Phabricator instance.

[debuginfo-tests][Dexter] Fix some Windows-unfriendly Dexter behaviours
ClosedPublic

Authored by jmorse on Feb 13 2020, 4:55 AM.

Details

Summary

These are some minor things that I've run into on Windows, largely in error handling paths:

  • Giving --lldb-executable on Windows triggers a "useless option" code path, which touches an attribute that only exists in the list_debuggers tool. Switch this to use hasattr, which will work in all subtools.
  • We were over-decoding some text reporting errors, but only in an exception path
  • The path to lldb on Windows needs to be quoted (even though dexter isn't making use of it).

Diff Detail

Event Timeline

jmorse created this revision.Feb 13 2020, 4:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 13 2020, 4:55 AM
Orlando accepted this revision.Feb 13 2020, 5:25 AM

LGTM

This revision is now accepted and ready to land.Feb 13 2020, 5:25 AM
This revision was automatically updated to reflect the committed changes.