[PATCH v2] [PATCH] Add NetBSD/aarch64 gdbserver support
Simon Marchi
simark@simark.ca
Wed Oct 7 11:21:11 GMT 2020
On 2020-10-07 4:55 a.m., Alan Hayward via Gdb-patches wrote:
> I too am confused by the while(0)s. But it’s consistent with other targets,
> and it works, so ok (although, that shouldn’t be a reason for blindly copying).
The `do { } while (0)` is a typical trick when writing macros:
http://www.bruceblinn.com/linuxinfo/DoWhile.html
Simon
More information about the Gdb-patches
mailing list