[all-commits] [llvm/llvm-project] 13c682: Fix std::fpos pretty printer on musl

colincross via All-commits all-commits at lists.llvm.org
Thu Sep 15 15:00:07 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 13c6828bedeb815ee7748f82ca36073dbd55a9db
      https://github.com/llvm/llvm-project/commit/13c6828bedeb815ee7748f82ca36073dbd55a9db
  Author: Colin Cross <ccross at android.com>
  Date:   2022-09-15 (Thu, 15 Sep 2022)

  Changed paths:
    M libcxx/test/libcxx/gdb/gdb_pretty_printer_test.sh.cpp
    M libcxx/utils/gdb/libcxx/printers.py

  Log Message:
  -----------
  Fix std::fpos pretty printer on musl

The mbstate_t field in std::fpos is an opaque type provied by libc,
and musl's implementation does not match the one used by glibc.
Change StdFposPrinter to verify its assumptions about the layout
of mbstate_t, and leave out the state printing if it doesn't match.

Reviewed By: #libc, ldionne

Differential Revision: https://reviews.llvm.org/D132983




More information about the All-commits mailing list