compile: set debug compile: Display GCC driver filename
authorJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 21 Feb 2017 21:32:55 +0000 (13:32 -0800)
committerSergio Durigan Junior <sergiodj@redhat.com>
Wed, 23 Aug 2017 15:15:03 +0000 (11:15 -0400)
commite68c32d53e44ac0fe9f48637c0113da42b62644a
treeac71155c327ab46a5bb437684ecb894fbe736b46
parentf6a36b0c9e537e4525f3b0687a4f76b4f77bf173
compile: set debug compile: Display GCC driver filename

As discussed in
How to use compile & execute function in GDB
https://sourceware.org/ml/gdb/2015-04/msg00026.html

GDB currently searches for compilers on /usr/bin/ARCH-OS-gcc and
chooses a match from there.  However, it is not currently possible for
the user to display which compiler was selected.  Up until now, GDB's
compiler interface was not up-to-date with GCC's one, which means that
it wasn't possible to obtain this information.  This patch implements
the mechanisms necessary for that.

gdb/ChangeLog
2017-08-23  Jan Kratochvil  <jan.kratochvil@redhat.com>

* compile/compile.c (compile_to_object): Conditionally call
set_verbose.  Conditionally call compile or compile_v0.

include/ChangeLog
2017-08-23  Jan Kratochvil  <jan.kratochvil@redhat.com>

* gcc-interface.h (enum gcc_base_api_version): Add
GCC_FE_VERSION_1.
(struct gcc_base_vtable): Rename compile to compile_v0.  Update
comment for compile.  New methods set_verbose and compile.
gdb/ChangeLog
gdb/compile/compile.c
include/ChangeLog
include/gcc-interface.h
This page took 0.041718 seconds and 4 git commands to generate.