From: Yao Qi <yao@codesourcery.com>
To: <gdb-patches@sourceware.org>
Subject: Re: [PATCH] Return argv0-symlink.exp early if gdb can't load symlink
Date: Wed, 02 Apr 2014 08:59:00 -0000 [thread overview]
Message-ID: <533BD0D5.4000408@codesourcery.com> (raw)
In-Reply-To: <1396428218-31822-1-git-send-email-yao@codesourcery.com>
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 (é½å°§)
next prev parent reply other threads:[~2014-04-02 8:59 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-02 8:46 Yao Qi
2014-04-02 8:59 ` Yao Qi [this message]
2014-04-02 10:47 ` Pedro Alves
2014-04-02 14:06 ` Yao Qi
2014-04-02 16:44 ` Pedro Alves
2014-04-02 16:47 ` Eli Zaretskii
2014-04-10 13:19 ` Yao Qi
2014-04-02 16:14 ` Eli Zaretskii
2014-04-02 16:54 ` Pedro Alves
2014-04-02 17:20 ` Eli Zaretskii
2014-04-03 12:12 ` Pedro Alves
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=533BD0D5.4000408@codesourcery.com \
--to=yao@codesourcery.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox