This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Clearly report used sysroot
- From: Richard Sandiford <rdsandiford at googlemail dot com>
- To: Vladimir Prus <vladimir at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 12 Jun 2008 20:14:31 +0100
- Subject: Re: Clearly report used sysroot
- References: <200806112201.32600.vladimir@codesourcery.com>
Vladimir Prus <vladimir@codesourcery.com> writes:
> presently, there's no easy way to ask gdb about the directory
> where it expects target sysroot to be located. The issue is
> complicated by the fact that the path is the concatenation
> of target_system_root and target_sysroot_suffix. The former
> is specified either at configure time, or with the --sysroot
> option, and the latter depends on used compilation options.
>
> Presently, there are only two ways to get this information:
>
> - Parse the output of -v
> - Parse the specs
>
> Neither of those approaches is very nice. This patch introduces
> -print-specific-sysroot option that just outputs the right path.
> I've tested with arm-linux toolchain, and it seem to work fine.
> This patch needs some tweaks, like adding the option to help,
> but does the overall approach seem sane?
Since no-one else has replied... sounds like a great idea to me FWIW.
Richard