qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2] tcg/i386: Use GDB JIT debugging interface on


From: Stefan Weil
Subject: Re: [Qemu-devel] [PATCH v2] tcg/i386: Use GDB JIT debugging interface only for hosts with ELF
Date: Sat, 14 Apr 2012 22:59:04 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.28) Gecko/20120313 Thunderbird/3.1.20

Am 14.04.2012 18:42, schrieb Richard Henderson:
On 04/07/2012 11:53 AM, Stefan Weil wrote:
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.

Hmm. Because the other way this could be addressed is
to fix gdb. (1) it shouldn't crash and (2) it could
support elf alongside pe-coff fairly easily i'd imagine;
just a matter of enabling that bfd backend.

Shall we ask gdb maintainers?


r~

Fixing problems at their source - in this
case fixing gdb - is of course the best solution.

For the w64 port of gdb, I needed a quick solution.
Usually it will take some time to ask the gdb maintainers,
find a solution, get distributions which include the solution
and use such distributions everywhere.

I don't think that the setup with pe-coff (when it is supported)
will be 100 % identical to the elf setup, so most probably we'll
need a test for ELF / not ELF anyway.

Therefore I suggest to apply my patch, even it is only an
intermediate solution for the next year.

Regards,
Stefan W.

different



reply via email to

[Prev in Thread] Current Thread [Next in Thread]