Skip to content

libcxx: In gdb test detect execute_mi with feature check instead of version check. #132291

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3 changes: 2 additions & 1 deletion libcxx/test/libcxx/gdb/gdb_pretty_printer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
# we exit.
has_run_tests = False

has_execute_mi = tuple(map(int, gdb.VERSION.split("."))) >= (14, 2)
has_execute_mi = getattr(gdb, "execute_mi", None) is not None


class CheckResult(gdb.Command):
def __init__(self):
Expand Down
Loading