From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24647 invoked by alias); 10 Apr 2014 13:19:57 -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 24627 invoked by uid 89); 10 Apr 2014 13:19:55 -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; Thu, 10 Apr 2014 13:19:53 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1WYEtR-0004AS-Cp from Yao_Qi@mentor.com ; Thu, 10 Apr 2014 06:19:49 -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); Thu, 10 Apr 2014 06:19:49 -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; Thu, 10 Apr 2014 06:19:47 -0700 Message-ID: <534699C8.3040804@codesourcery.com> Date: Thu, 10 Apr 2014 13:19:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Eli Zaretskii CC: , Subject: Re: [PATCH] Return argv0-symlink.exp early if gdb can't load symlink References: <1396428218-31822-1-git-send-email-yao@codesourcery.com> <533BD0D5.4000408@codesourcery.com> <533BEAA8.4080100@redhat.com> <533C18DA.3000307@codesourcery.com> <83mwg3brux.fsf@gnu.org> In-Reply-To: <83mwg3brux.fsf@gnu.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2014-04/txt/msg00175.txt.bz2 On 04/03/2014 12:47 AM, Eli Zaretskii wrote: > What do you mean by "load"? Which command failed? > Here are the steps to create a symlink and load symlink in GDB. $ export CYGWIN=winsymlinks:nativestrict $ ln -sf wchar wchar-filelink $ file wchar-filelink wchar-filelink: symbolic link to `wchar' (gdb) file ~/wchar-filelink "C:\cygwin\home\yqi/wchar-filelink": not in executable format: File format not recognized This error is emitted by if (!bfd_check_format_matches (exec_bfd, bfd_object, &matching)) { /* Make sure to close exec_bfd, or else "run" might try to use it. */ exec_close (); error (_("\"%s\": not in executable format: %s"), scratch_pathname, gdb_bfd_errmsg (bfd_get_error (), matching)); } I suspect that BFD doesn't recognize native symlink on windows. I'll dig into bfd. -- Yao (齐尧)