Make jit_test.py -g/--debug work with lldb

NEW
Unassigned

Status

()

Core
JavaScript Engine
4 years ago
4 years ago

People

(Reporter: jandem, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

4 years ago
OS X no longer comes with gdb but has lldb instead.

jit_test.py -g runs gdb --args $command. It would be nice if it could also run lldb -- $command.

We could run "gdb --version" and "lldb --version" and use the first debugger it finds. However, I've both gdb and lldb installed and I'd prefer it to try lldb first, but for others this may be different. So maybe the command line flag should also take an (optional) gdb/lldb argument.
The reftest suite already has this[1]. We should be able to dup it to jit-tests pretty easily.

1- http://dxr.mozilla.org/mozilla-central/source/js/src/tests/jstests.py#92
You need to log in before you can comment on or make changes to this bug.