This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb with python support still get crash on showing uninitialized local variables


On 2010-12-14 23:00, Tom Tromey wrote:
I don't know of any problem offhand.  I do builds from the git mirror
regularly without problems, but of course I'm on a different host.

All I can suggest is to debug it.

If I had this problem I might start by comparing the snapshot and git
source trees.  Though, TBH, I'd be surprised to find anything weird
there.

Next I would try to understand why exactly the build failed in
libiberty, and track down the problem.

Tom
Hi, Tom, Here are the good news.

With the great help of Codeblocks' forum user "xunxun1982"
(http://forums.codeblocks.org/index.php?action=profile;u=12871), and several days testing and struggling. Now, the problem was totally solved.


In-fact, the problem is that the MSYS configure program can NOT correctly handling the Windows CR LF newline. When I use the MSYS Git to check out the git gdb working copy, all the source in the gdb working copy was encoded by CRLF format. and this cause many weird building errors. (since the snapshot of gdb source use LF format, so I can successfully build them).

Here are the steps to solve the problem:

1, open the file:
E:\PortableGit-1.7.3.1-preview20101002(1)\etc\gitconfig
and change the line
autocrlf = true
to
autocrlf = false

this can stop the git to change the style from LF to CRLF.

2, get the gdb git copy again (now, all the source was in UNIX LF style)

3, configure and make to build the gdb.


Now, everything works fine!!! I have successfully build the gdb from the git source under MSYS and MinGW 4.5.2. Wonderful!!!


asmwarrior










Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]