mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 22:07:58 +08:00
Fix compilation error with clang in gdb/testsuite/gdb.base/jit-main.c
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
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
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>
|
2020-04-17 Kamil Rytarowski <n54@gmx.com>
|
||||||
|
|
||||||
* gdb.base/attach-twice.c: Include "sys/types.h".
|
* gdb.base/attach-twice.c: Include "sys/types.h".
|
||||||
|
@ -128,7 +128,7 @@ update_locations (const void *const addr, int idx)
|
|||||||
|
|
||||||
/* Used to spin waiting for GDB. */
|
/* Used to spin waiting for GDB. */
|
||||||
volatile int wait_for_gdb = ATTACH;
|
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. */
|
/* The current process's PID. GDB retrieves this. */
|
||||||
int mypid;
|
int mypid;
|
||||||
|
Reference in New Issue
Block a user