Gdb version 16.3 version 16.3 of gdb, the gnu debugger, is now available for download Gdb is free (libre) software See the announcement for details including changes in this release
An errata list (problems) and documentation are also available. Gdb can target (i.e., debug programs running on) more than a dozen different processor architectures, and gdb itself can run on most popular gnu/linux, unix and microsoft windows variants You may choose to copy the gdb binary to the platform, or use gdbserver to debug remotely.
(the output does not correspond exactly to your code.) i am writing this answer because this question is found even by people looking for the answer for other languages (including myself) Release 11.1 of gdb, the gnu debugger, is now available