Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Working on the x86_64-windows native port...
@ 2008-11-13 22:45 Joel Brobecker
  2008-11-13 23:00 ` Christopher Faylor
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Joel Brobecker @ 2008-11-13 22:45 UTC (permalink / raw)
  To: gdb

[ChrisF, I noticed you prefer if we don't Cc you in addition to reaching
through the mailing-list. I work a little differently, so hopefully
you'll see this message]

Hello everyone,

Just a quick message to say that I started looking at porting GDB to
x86_64-windows. Currently, if I use a 32bit compiler and configure
GDB as a i686-pc-mingw32, I get a fine debugger.

Things get a little more interesting when I use a 64bit compiler
and configure GDB with x86_64-pc-mingw32 [1]. Basically, the root
of the issues I am seeing comes from the fact that win32-nat has
some ia32-specific code, in particular in terms of the registers
(see the CONTEXT structure for instance).

My intentions are to split off the 32bit-specific parts to
i386-windows-nat.c, and write the equivalent x86_64-windows-nat.c.
I hope that's OK with everyone (Chris?).

-- 
Joel

[1]: Currently, config.guess (IIRC) doesn't like mingw64. For now,
     I'll keep mingw32 as meaning either 32bit or 64bit. I'll probably
     fix this too, but later.


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

* Re: Working on the x86_64-windows native port...
  2008-11-13 22:45 Working on the x86_64-windows native port Joel Brobecker
@ 2008-11-13 23:00 ` Christopher Faylor
  2008-11-15 17:45   ` Joel Brobecker
  2008-11-13 23:08 ` Mark Kettenis
  2008-11-14  9:15 ` Kai Tietz
  2 siblings, 1 reply; 7+ messages in thread
From: Christopher Faylor @ 2008-11-13 23:00 UTC (permalink / raw)
  To: gdb, Joel Brobecker

On Thu, Nov 13, 2008 at 02:44:31PM -0800, Joel Brobecker wrote:
>My intentions are to split off the 32bit-specific parts to
>i386-windows-nat.c, and write the equivalent x86_64-windows-nat.c.
>I hope that's OK with everyone (Chris?).

I'd like to see the patches before they are applied but I have no
objections to this in principle.

cgf


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

* Re: Working on the x86_64-windows native port...
  2008-11-13 22:45 Working on the x86_64-windows native port Joel Brobecker
  2008-11-13 23:00 ` Christopher Faylor
@ 2008-11-13 23:08 ` Mark Kettenis
  2008-11-14  9:15 ` Kai Tietz
  2 siblings, 0 replies; 7+ messages in thread
From: Mark Kettenis @ 2008-11-13 23:08 UTC (permalink / raw)
  To: brobecker; +Cc: gdb

> Date: Thu, 13 Nov 2008 14:44:31 -0800
> From: Joel Brobecker <brobecker@adacore.com>
> 
> My intentions are to split off the 32bit-specific parts to
> i386-windows-nat.c, and write the equivalent x86_64-windows-nat.c.
> I hope that's OK with everyone (Chris?).

Please call files amd64-xxx.c instead of x86_64-xxx.c.


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

* Re: Working on the x86_64-windows native port...
  2008-11-13 22:45 Working on the x86_64-windows native port Joel Brobecker
  2008-11-13 23:00 ` Christopher Faylor
  2008-11-13 23:08 ` Mark Kettenis
@ 2008-11-14  9:15 ` Kai Tietz
  2 siblings, 0 replies; 7+ messages in thread
From: Kai Tietz @ 2008-11-14  9:15 UTC (permalink / raw)
  To: Joel Brobecker; +Cc: gdb

Hi Joel,

> [ChrisF, I noticed you prefer if we don't Cc you in addition to reaching
> through the mailing-list. I work a little differently, so hopefully
> you'll see this message]
> 
> Hello everyone,
> 
> Just a quick message to say that I started looking at porting GDB to
> x86_64-windows. Currently, if I use a 32bit compiler and configure
> GDB as a i686-pc-mingw32, I get a fine debugger.

This is really good. I begun with a port of gdb (now about a half a year 
ago). If you like I can provide you my work on it. On the other hand, if 
you need some support for the x86_64 mingw target in crt, gcc, or 
binutils, please let me know.

> [1]: Currently, config.guess (IIRC) doesn't like mingw64. For now,
>      I'll keep mingw32 as meaning either 32bit or 64bit. I'll probably
>      fix this too, but later.
The mingw64 should be an alias to x86_64-pc-mingw32, nothing more, nothing 
less. There were several discussion on that on gcc, and the conclusion was 
that the target triplet should be in future on gcc (i?86|x86_64)-pc-mingw.

Best regards,
 Kai Tietz

|  (\_/)  This is Bunny. Copy and paste Bunny
| (='.'=) into your signature to help him gain
| (")_(") world domination.


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

* Re: Working on the x86_64-windows native port...
  2008-11-13 23:00 ` Christopher Faylor
@ 2008-11-15 17:45   ` Joel Brobecker
  2008-11-25 17:33     ` Kai Tietz
  0 siblings, 1 reply; 7+ messages in thread
From: Joel Brobecker @ 2008-11-15 17:45 UTC (permalink / raw)
  To: gdb

On Thu, Nov 13, 2008 at 05:59:43PM -0500, Christopher Faylor wrote:
> I'd like to see the patches before they are applied but I have no
> objections to this in principle.

Of course! I wouldn't touch a windows-related file without review.

On Fri, Nov 14, 2008 at 12:07:30AM +0100, Mark Kettenis wrote:
> Please call files amd64-xxx.c instead of x86_64-xxx.c.

oh yes, right. Will do. Thanks.

On Fri, Nov 14, 2008 at 10:13:49AM +0100, Kai Tietz wrote:
> This is really good. I begun with a port of gdb (now about a half a year 
> ago). If you like I can provide you my work on it.

Sure! I'm traveling again next week, and I have had a very busy schedule
so any help is very welcome. Thanks!

> The mingw64 should be an alias to x86_64-pc-mingw32, nothing more, nothing 
> less. There were several discussion on that on gcc, and the conclusion was 
> that the target triplet should be in future on gcc (i?86|x86_64)-pc-mingw.

Makes sense. I think I'll adjust GDB to accept mingw*.

Thanks to everyone who responded,
-- 
Joel


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

* Re: Working on the x86_64-windows native port...
  2008-11-15 17:45   ` Joel Brobecker
@ 2008-11-25 17:33     ` Kai Tietz
  2008-11-25 19:21       ` Joel Brobecker
  0 siblings, 1 reply; 7+ messages in thread
From: Kai Tietz @ 2008-11-25 17:33 UTC (permalink / raw)
  To: Joel Brobecker; +Cc: gdb

Hello Joel,

maybe you are interested in a experimental port of gdb, I did some
time ago on old code base (see
http://sourceforge.net/project/showfiles.php?group_id=202880&package_id=259447
for the source tar ball).

Cheers,
Kai

PS: My papers with FSF for gdb are already done,
-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination


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

* Re: Working on the x86_64-windows native port...
  2008-11-25 17:33     ` Kai Tietz
@ 2008-11-25 19:21       ` Joel Brobecker
  0 siblings, 0 replies; 7+ messages in thread
From: Joel Brobecker @ 2008-11-25 19:21 UTC (permalink / raw)
  To: Kai Tietz; +Cc: gdb

> maybe you are interested in a experimental port of gdb, I did some
> time ago on old code base (see
> http://sourceforge.net/project/showfiles.php?group_id=202880&package_id=259447
> for the source tar ball).

Sure! This may prove to be a convenient source of information when
I start working on the port (scheduled this week, if all goes well).

Thanks a lot :)

-- 
Joel


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

end of thread, other threads:[~2008-11-25 19:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-13 22:45 Working on the x86_64-windows native port Joel Brobecker
2008-11-13 23:00 ` Christopher Faylor
2008-11-15 17:45   ` Joel Brobecker
2008-11-25 17:33     ` Kai Tietz
2008-11-25 19:21       ` Joel Brobecker
2008-11-13 23:08 ` Mark Kettenis
2008-11-14  9:15 ` Kai Tietz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox