OSDN Git Service

[debuginfo-tests][Dexter] Fix some Windows-unfriendly Dexter behaviours
authorJeremy Morse <jeremy.morse@sony.com>
Thu, 13 Feb 2020 14:24:33 +0000 (14:24 +0000)
committerJeremy Morse <jeremy.morse@sony.com>
Thu, 13 Feb 2020 14:24:33 +0000 (14:24 +0000)
commit5ee4a03bc916d2925b9431c53b7da0d3ce7e2b9e
tree8f2faf093aee7b4a0b8262c9cc6d6c7813b3086c
parentff7b5bac04fa4946935ea45214e29f267d6c1d7b
[debuginfo-tests][Dexter] Fix some Windows-unfriendly Dexter behaviours

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).

Differential Revision: https://reviews.llvm.org/D74546
debuginfo-tests/dexter/dex/debugger/Debuggers.py
debuginfo-tests/dexter/dex/tools/test/Tool.py
debuginfo-tests/lit.cfg.py