public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Re: [PATCH v2] tcg/i386: Use GDB JIT debugging interface only for hosts with ELF
       [not found] <1333813984-1516-1-git-send-email-sw@weilnetz.de>
@ 2012-04-14 16:42 ` Richard Henderson
  2012-04-14 20:59   ` Stefan Weil
       [not found]   ` <4F89E518.10801__47601.7568879344$1334437169$gmane$org@weilnetz.de>
  0 siblings, 2 replies; 4+ messages in thread
From: Richard Henderson @ 2012-04-14 16:42 UTC (permalink / raw)
  To: Stefan Weil; +Cc: qemu-devel, Blue Swirl, gdb

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~

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] tcg/i386: Use GDB JIT debugging interface only for hosts with ELF
  2012-04-14 16:42 ` [PATCH v2] tcg/i386: Use GDB JIT debugging interface only for hosts with ELF Richard Henderson
@ 2012-04-14 20:59   ` Stefan Weil
  2012-04-14 21:01     ` [Qemu-devel] " Stefan Weil
       [not found]   ` <4F89E518.10801__47601.7568879344$1334437169$gmane$org@weilnetz.de>
  1 sibling, 1 reply; 4+ messages in thread
From: Stefan Weil @ 2012-04-14 20:59 UTC (permalink / raw)
  To: Richard Henderson; +Cc: qemu-devel, Blue Swirl, gdb

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH v2] tcg/i386: Use GDB JIT debugging interface only for hosts with ELF
  2012-04-14 20:59   ` Stefan Weil
@ 2012-04-14 21:01     ` Stefan Weil
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Weil @ 2012-04-14 21:01 UTC (permalink / raw)
  To: Richard Henderson; +Cc: Blue Swirl, gdb, qemu-devel

Am 14.04.2012 22:59, schrieb Stefan Weil:
>
> 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.
s/gdb/qemu/

Sorry for this mistake.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] tcg/i386: Use GDB JIT debugging interface only for hosts with ELF
       [not found]   ` <4F89E518.10801__47601.7568879344$1334437169$gmane$org@weilnetz.de>
@ 2012-04-16 18:35     ` Tom Tromey
  0 siblings, 0 replies; 4+ messages in thread
From: Tom Tromey @ 2012-04-16 18:35 UTC (permalink / raw)
  To: Stefan Weil; +Cc: Richard Henderson, qemu-devel, Blue Swirl, gdb

>>>>> "Stefan" == Stefan Weil <sw@weilnetz.de> writes:

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

Could you file a gdb bug report?

Tom

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-04-16 18:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1333813984-1516-1-git-send-email-sw@weilnetz.de>
2012-04-14 16:42 ` [PATCH v2] tcg/i386: Use GDB JIT debugging interface only for hosts with ELF Richard Henderson
2012-04-14 20:59   ` Stefan Weil
2012-04-14 21:01     ` [Qemu-devel] " Stefan Weil
     [not found]   ` <4F89E518.10801__47601.7568879344$1334437169$gmane$org@weilnetz.de>
2012-04-16 18:35     ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).