This is the mail archive of the
mailing list for the GCC project.
Re: RFA: Add libstdc++-v3 support for avr 5/7: libstdc++-v3 fix cross testing
- From: Mike Stump <mikestump at comcast dot net>
- To: Joern Rennecke <joern dot rennecke at embecosm dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Denis Chertykov <chertykov at gmail dot com>, Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>, Janis Johnson <janisjo at codesourcery dot com>
- Date: Tue, 21 Oct 2014 10:51:54 -0700
- Subject: Re: RFA: Add libstdc++-v3 support for avr 5/7: libstdc++-v3 fix cross testing
- Authentication-results: sourceware.org; auth=none
- References: <CAMqJFCoH6JKRHAAQS6b9O1MbyLdkwz9KZ3TDwu3q_G47eHTY0g at mail dot gmail dot com>
On Oct 21, 2014, at 9:02 AM, Joern Rennecke <firstname.lastname@example.org> wrote:
> The gdb version check ends up trying to invoke gdb on the target -
> not so nice if your target is too small to accomodate gdb in the first place.
So, I didn’t see anything that allowed it to work on targets that have gdb and can work. Turning it off unconditionally for all crosses seems wrong.
You could test to see if gdb is present (say, by running —version). If present, assume this is as it should be. If absent, just don’t test anything that requires gdb. This works then in a native environment when gdb is absent, and crosses that can’t have a gdb for any reason.