manu0507 | 14 Dec 2011 19:13
Favicon

Sorry, a dumb one: how do I BUILD the thing (i.e. gdb) on Win?


Hello,

I'm sorry, this one will probably make you cringe... but I'm one of the poor
guys running Windows (Win7-64).

I managed to install a perfectly running MinGW64, and it's frankly a marvel
in squeezing whatever juice there is in the machine (I'm in some very heavy
number crunching).
But now I seem to have a bug somewhere, and the only way for me to find out
what happens in the 64bit executable seems to be to run it in gdb. I
downloaded gdb-7.3.1.tar.gz and extracted it ok... but then what should I do
to produce a gdb.exe?
All the doc and commands appear to be targeting Unix (e.g. "./configure"
does of course nothing at all in Win) and unless I have missed something
big, it's not even clear to me which Makefile I should pass to make.

Is there a reasonably clear "roadmap" for building gdb in Windows?

Many thanks for your kind help!

Emanuel

--

-- 
View this message in context: http://old.nabble.com/Sorry%2C-a-dumb-one%3A-how-do-I-BUILD-the-thing-%28i.e.-gdb%29-on-Win--tp32975343p32975343.html
Sent from the Gnu - gdb - General mailing list archive at Nabble.com.

manu0507 | 15 Dec 2011 03:08
Favicon

Re: Sorry, a dumb one: how do I BUILD the thing (i.e. gdb) on Win?


Hello again,

I actually managed to find an already built gdb.exe. It's
This GDB was configured as "x86_64-w64-mingw32".
which not only means that it can indeed load Win-64 images, but also that it
IS possible to build gdb with MinGW64. ;-)

I found it at http://www.equation.com/servlet/equation.cmd?fa=gdb . I have
to confess that downloading a plain .exe and running it on my machine was
pretty scary - if anybody could confirm that downloads from equation.com are
virus-free, it would be greatly appreciated.

Another downside is that it's 7.2, while the latest official gdb release
seems to be 7.3.1 - another reason to try and build it myself.
But anyway, it seems to be running ok... and I found my bug! :-)

Greetings and Merry Christmas,

Emanuel
--

-- 
View this message in context: http://old.nabble.com/Sorry%2C-a-dumb-one%3A-how-do-I-BUILD-the-thing-%28i.e.-gdb%29-on-Win--tp32975343p32976679.html
Sent from the Gnu - gdb - General mailing list archive at Nabble.com.

Charles Manning | 15 Dec 2011 04:53
Picon

Re: Sorry, a dumb one: how do I BUILD the thing (i.e. gdb) on Win?


> I actually managed to find an already built gdb.exe. It's
> This GDB was configured as "x86_64-w64-mingw32".
> which not only means that it can indeed load Win-64 images, but also that
> it IS possible to build gdb with MinGW64. ;-)
>
> I found it at http://www.equation.com/servlet/equation.cmd?fa=gdb . I have
> to confess that downloading a plain .exe and running it on my machine was
> pretty scary - if anybody could confirm that downloads from equation.com
> are virus-free, it would be greatly appreciated.

Luck to find something pre-built.

I would think that using Cygwin would make life a little easier.

>
> Another downside is that it's 7.2, while the latest official gdb release
> seems to be 7.3.1 - another reason to try and build it myself.
> But anyway, it seems to be running ok... and I found my bug! :-)
>

I would not get too distressed about that. 7.2 is likely mature enough for 
most  things you'd want to do under x86.

-- Charles

Simon | 29 Feb 2012 00:33
Picon

Re: Sorry, a dumb one: how do I BUILD the thing (i.e. gdb) on Win?

I think there is pre-build version of gdb for windows. Your definitely will need more effort if you want to build your own. 


Regards,
Simon


On Wed, Dec 14, 2011 at 10:53 PM, Charles Manning <manningc2 <at> actrix.gen.nz> wrote:

> I actually managed to find an already built gdb.exe. It's
> This GDB was configured as "x86_64-w64-mingw32".
> which not only means that it can indeed load Win-64 images, but also that
> it IS possible to build gdb with MinGW64. ;-)
>
> I found it at http://www.equation.com/servlet/equation.cmd?fa=gdb . I have
> to confess that downloading a plain .exe and running it on my machine was
> pretty scary - if anybody could confirm that downloads from equation.com
> are virus-free, it would be greatly appreciated.

Luck to find something pre-built.

I would think that using Cygwin would make life a little easier.


>
> Another downside is that it's 7.2, while the latest official gdb release
> seems to be 7.3.1 - another reason to try and build it myself.
> But anyway, it seems to be running ok... and I found my bug! :-)
>

I would not get too distressed about that. 7.2 is likely mature enough for
most  things you'd want to do under x86.

-- Charles





Gmane