[Mingw-w64-public] gdb, cannot obtain back trace

2009-06-26 Thread David Cournapeau
Hi,

I am building python extensions with the mingw-w64, but I have
some crashes which I would like to debug. Unfortunately, even when the
extension is built with debug options (-g -DDEBUG), running the
offending code under gdb does not bring anything useful: the backtrace
only gives me a couple of absolute addresses. Does gdb work at all on
windows 64 bits ? (I used the one from equations.com)

cheers,

David

--
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] gdb, cannot obtain back trace

2009-06-26 Thread Kai Tietz
Hello David,

2009/6/26 David Cournapeau :
> Hi,
>
>    I am building python extensions with the mingw-w64, but I have
> some crashes which I would like to debug. Unfortunately, even when the
> extension is built with debug options (-g -DDEBUG), running the
> offending code under gdb does not bring anything useful: the backtrace
> only gives me a couple of absolute addresses. Does gdb work at all on
> windows 64 bits ? (I used the one from equations.com)
>
> cheers,
>
> David

gdb support of x64 is present, but still limited. For the version of
equaltions.com I don't know which version they are providing. AFAIK
there is an issue about gdb DLLs with symbol information. The version
provided on our site gets normally those event, but those from gdb's
head doesn't. AFAIU it reasoned by some internal changes they did. I
am not sure for what, but well you can give my *old* version a try. Or
you can post directly to the gdb ML.

Cheers,
Kai

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

--
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] gdb, cannot obtain back trace

2009-06-26 Thread David Cournapeau
On Fri, Jun 26, 2009 at 8:56 PM, Kai Tietz wrote:
> Hello David,
>
> 2009/6/26 David Cournapeau :
>> Hi,
>>
>>    I am building python extensions with the mingw-w64, but I have
>> some crashes which I would like to debug. Unfortunately, even when the
>> extension is built with debug options (-g -DDEBUG), running the
>> offending code under gdb does not bring anything useful: the backtrace
>> only gives me a couple of absolute addresses. Does gdb work at all on
>> windows 64 bits ? (I used the one from equations.com)
>>
>> cheers,
>>
>> David
>
> gdb support of x64 is present, but still limited. For the version of
> equaltions.com I don't know which version they are providing. AFAIK
> there is an issue about gdb DLLs with symbol information. The version
> provided on our site gets normally those event, but those from gdb's
> head doesn't.

The only reason why I am using the version from equations.com is that
I need native gcc builds (python cannot be cross-compiled easily, even
from windows 32 bits), and I could not get gdb to build at all. Which
version of gdb sources should I use ? Last time I tried, the configure
stage failed telling me that the architecture is not supported (I use
the same as for gcc/binutils, which work fine).

David

--
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] gdb, cannot obtain back trace

2009-06-26 Thread Kai Tietz
2009/6/26 David Cournapeau :
> On Fri, Jun 26, 2009 at 8:56 PM, Kai Tietz wrote:
>> Hello David,
>>
>> 2009/6/26 David Cournapeau :
>>> Hi,
>>>
>>>    I am building python extensions with the mingw-w64, but I have
>>> some crashes which I would like to debug. Unfortunately, even when the
>>> extension is built with debug options (-g -DDEBUG), running the
>>> offending code under gdb does not bring anything useful: the backtrace
>>> only gives me a couple of absolute addresses. Does gdb work at all on
>>> windows 64 bits ? (I used the one from equations.com)
>>>
>>> cheers,
>>>
>>> David
>>
>> gdb support of x64 is present, but still limited. For the version of
>> equaltions.com I don't know which version they are providing. AFAIK
>> there is an issue about gdb DLLs with symbol information. The version
>> provided on our site gets normally those event, but those from gdb's
>> head doesn't.
>
> The only reason why I am using the version from equations.com is that
> I need native gcc builds (python cannot be cross-compiled easily, even
> from windows 32 bits), and I could not get gdb to build at all. Which
> version of gdb sources should I use ? Last time I tried, the configure
> stage failed telling me that the architecture is not supported (I use
> the same as for gcc/binutils, which work fine).
>
> David
>

Ah, you have to use the head version of gdb. With next release version
of gdb the target will be supported. (Use for configure of gdb
--target=x86_64-pc-mingw32 --host=x86_64-pc-mingw32). This worked fine
for me.

Cheers,
Kai

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

--
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public