[Lldb-commits] [lldb] [lldb][libc++] Adds system_clock data formatters. (PR #78609)

Jason Molenda via lldb-commits lldb-commits at lists.llvm.org
Thu Jan 25 16:26:24 PST 2024


jasonmolenda wrote:

@mordante I'm seeing failures on the macOS bots (and on my desktop) with TestDataFormatterLibcxxChrono.py, the test

        self.expect(
            "frame variable ss_neg_date_time",
            substrs=[
                "ss_neg_date_time = date/time=-32767-01-01T00:00:00Z timestamp=-1096193779200 s"
            ],
        )

but we're getting an unsigned timestamp from lldb instead:

```
(lldb) fr v ss_neg_date_time
(std::chrono::sys_seconds) ss_neg_date_time = date/time=-32767-01-01T00:00:00Z timestamp=18446742977515772416 s
```

so the test fails, from the `%ld` formater in formatters::LibcxxChronoSysSecondsSummaryProvider I suppose.  Both of these are formattings of the value 0xffffff00c5c25a00, I'm honestly not sure why it's formatted as an unsigned value on macOS for me, I'm guessing it isn't on linux or some platform?  

https://github.com/llvm/llvm-project/pull/78609


More information about the lldb-commits mailing list