binutils-gdb/gdb/compile
Jan Kratochvil a7606d8083 compile: Filter out -fpreprocessed
With global system gcc-5.0 if one also installs ccache (needing a different
patch
	https://bugzilla.samba.org/show_bug.cgi?id=11060
for -fplugin=libcc1plugin) it breaks as GDB will read from inferior
DW_AT_producer containing -fpreprocessed (due to ccache used to compile the
inferior).
    <c>   DW_AT_producer    : (indirect string, offset: 0x52): GNU C11 5.0.0 20150114 (Red Hat 5.0.0-0.1) -fpreprocessed -mtune=generic -
march=x86-64 -g

It is wrong that gcc puts -fpreprocessed into DW_AT_producer - fixed it in
trunk GCCs:
	https://gcc.gnu.org/ml/gcc-patches/2015-01/msg01495.html
But even with that fix there are already built inferiors out there which GDB
could be compatible (for the 'compile' mode) with.

gdb/ChangeLog
2015-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>

	Filter out inferior gcc option -fpreprocessed.
	* compile/compile.c (filter_args): New function.
	(get_args): Use it.
2015-02-03 18:17:02 +01:00
..
compile-c-support.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
compile-c-symbols.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
compile-c-types.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
compile-internal.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
compile-loc2c.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
compile-object-load.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
compile-object-load.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
compile-object-run.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
compile-object-run.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
compile.c compile: Filter out -fpreprocessed 2015-02-03 18:17:02 +01:00
compile.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00