From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13730 invoked by alias); 16 Dec 2010 08:48:09 -0000 Received: (qmail 13719 invoked by uid 22791); 16 Dec 2010 08:48:05 -0000 X-SWARE-Spam-Status: No, hits=-0.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-pw0-f41.google.com (HELO mail-pw0-f41.google.com) (209.85.160.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 16 Dec 2010 08:48:01 +0000 Received: by pwj8 with SMTP id 8so549127pwj.0 for ; Thu, 16 Dec 2010 00:47:59 -0800 (PST) Received: by 10.142.224.10 with SMTP id w10mr6541765wfg.313.1292489278453; Thu, 16 Dec 2010 00:47:58 -0800 (PST) Received: from [172.16.154.239] ([61.164.42.188]) by mx.google.com with ESMTPS id p8sm2784783wff.16.2010.12.16.00.47.49 (version=SSLv3 cipher=RC4-MD5); Thu, 16 Dec 2010 00:47:53 -0800 (PST) Message-ID: <4D09D207.6080500@gmail.com> Date: Thu, 16 Dec 2010 08:48:00 -0000 From: asmwarrior User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Thunderbird/2.0.0.19 Mnenhy/0.7.6.0 MIME-Version: 1.0 To: Tom Tromey CC: Eli Zaretskii , gdb@sourceware.org, Xun Xun Subject: Re: gdb with python support still get crash on showing uninitialized local variables References: <4CB66700.3000907@gmail.com> <4CBE7B08.9060905@gmail.com> <83bp6l9b4l.fsf@gnu.org> <4CD8ABA4.2090304@gmail.com> <4CE0C149.6090609@gmail.com> <4D06D1DB.1070501@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-12/txt/msg00043.txt.bz2 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