This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Clearly report used sysroot


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]