Migrated dumpstate to C++.
am: 569ab947cb

* commit '569ab947cba07fd1ab3c1e0447603b2a4a633a1c':
  Migrated dumpstate to C++.