Improve pretty-printer for QDateTime, add one for QTimeZone

The previous solution, calling toSecsSinceEpoch() from gdb, had a number of shortcomings:

  • no support for milliseconds
  • no support for timezones
  • if interrupting gdb inside of qMkTime (which locks a mutex) and asking for a backtrace, any QDateTime passed as argument to a function would make gdb call toSecsSinceEpoch() which ends up calling qMkTime... and we have a deadlock.

So, instead, inspect member variables, the usual way.

Merge request reports

Loading