From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9224 invoked by alias); 2 Apr 2014 08:59:03 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 9212 invoked by uid 89); 2 Apr 2014 08:59:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 02 Apr 2014 08:59:01 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1WVH0c-0004cC-GE from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Wed, 02 Apr 2014 01:58:58 -0700 Received: from SVR-ORW-FEM-04.mgc.mentorg.com ([147.34.97.41]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 2 Apr 2014 01:58:58 -0700 Received: from qiyao.dyndns.org (147.34.91.1) by svr-orw-fem-04.mgc.mentorg.com (147.34.97.41) with Microsoft SMTP Server id 14.2.247.3; Wed, 2 Apr 2014 01:58:57 -0700 Message-ID: <533BD0D5.4000408@codesourcery.com> Date: Wed, 02 Apr 2014 08:59:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: Subject: Re: [PATCH] Return argv0-symlink.exp early if gdb can't load symlink References: <1396428218-31822-1-git-send-email-yao@codesourcery.com> In-Reply-To: <1396428218-31822-1-git-send-email-yao@codesourcery.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2014-04/txt/msg00023.txt.bz2 On 04/02/2014 04:43 PM, Yao Qi wrote: > We run argv0-symlink.exp on mingw32 host, and see the following error > in gdb.log > > (gdb) file argv0-symlink-filelink^M > "argv0-symlink-filelink": not in executable format: File format not recognized > (gdb) ERROR: Couldn't load argv0-symlink-filelink into arm-none-eabi-gdb. > > the rest of the test don't have to run. Forget to mention that we run mingw32 toolchain test in cygwin, so symbol link can be created (via command ln) successfully, but it is not a real symlink, AFAIK, so this guard in argv0-symlink.exp below doesn't return, set status [remote_exec host "ln -sf . [standard_output_file $dirlink]"] if {[lindex $status 0] != 0} { unsupported "$test (host does not support symbolic links)" return 0 } Looks native windows symlinks are created on some versions of windows with some features turned on, so we can't skip this test by checking triplet of host. http://cygwin.com/cygwin-ug-net/using.html#pathnames-symlinks -- Yao (齐尧)