Make gdb think stderr is going to a terminal, so tui can be enabled
commitac7d530179b998d3c924a10d438c1451c96eb998
authorMichael Christensen <mchristensen@fb.com>
Mon, 20 Jun 2022 15:57:56 +0000 (20 08:57 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Mon, 20 Jun 2022 15:57:56 +0000 (20 08:57 -0700)
tree5088633a49df0b2d23ba564e296b3c08d5d1b4d2
parentf8eea547fbd2c3ea03b95336227e738aa13524ba
Make gdb think stderr is going to a terminal, so tui can be enabled

Summary:
When you run `hhvm_wrapper.php --gdb` to try and run a Hack file in GDB, GDB does not recognize the stderr as a tty, so you cannot enable TUI if desired.

The current main workaround is to just run `hhvm_wrapper.php --print-command` and use the result as arguments to your own invocation of `gdb --args`. However, we can save a step or two by fixing the wrapper's invocation itself.

Reviewed By: mofarrell

Differential Revision: D37259121

fbshipit-source-id: 821a7a77b938884410bdb38d701782f90e8bd9ea
hphp/tools/hhvm_wrapper.php