tcg/i386: Use GDB JIT debugging interface only for hosts with ELF
authorStefan Weil <sw@weilnetz.de>
Fri, 6 Apr 2012 06:06:41 +0000 (08:06 +0200)
committerStefan Weil <sw@weilnetz.de>
Sun, 15 Apr 2012 19:25:15 +0000 (21:25 +0200)
commitc170cb66490aa20bfc8d2c2421481dd9195dbb8b
tree39a737724e95035c72eb0976bd23e0edfaea53cb
parent4d0365165dd831b9f5d305a1480447dd83810a55
tcg/i386: Use GDB JIT debugging interface only for hosts with ELF

Not all i386 / x86_64 hosts use ELF.
Ask the compiler whether ELF is used.

On w64, gdb crashes when ELF_HOST_MACHINE is defined.

Cc: Blue Swirl <blauwirbel@gmail.com>
Acked-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
tcg/i386/tcg-target.c