Pedro, this is Alex's patch of https://sourceware.org/ml/gdb-patches/2017-09/msg00745.html cleaned up with changelog formatting. Alex is a fellow FaceBooker. The patch looks obvious to me, particularly as a few lines down we have: fprintf_unfiltered (gdb_stdlog, " %s CUs, %s TUs\n", pulongest (dwp_file->cus ? dwp_file->cus->nr_units : 0), pulongest (dwp_file->tus ? dwp_file->tus->nr_units : 0)); to protect dump output from exactly this problem. ok? nathan -- Nathan Sidwell