Clang fails to compile the above file, with the following error:
warning: while loop has empty body [-Wempty-body]
This prevents the following testcases from executing:
gdb.base/jit.exp
gdb.base/jit-so.exp
+2020-04-20 Gary Benson <gbenson@redhat.com>
+
+ * gdb.base/jit-main.c: Fix compilation error with clang.
+
2020-04-17 Kamil Rytarowski <n54@gmx.com>
* gdb.base/attach-twice.c: Include "sys/types.h".
/* Used to spin waiting for GDB. */
volatile int wait_for_gdb = ATTACH;
-#define WAIT_FOR_GDB while (wait_for_gdb)
+#define WAIT_FOR_GDB do {} while (wait_for_gdb)
/* The current process's PID. GDB retrieves this. */
int mypid;