S390: Fix compiler invocation with "compile" command
commit60abeae4f219a7a445d11ebaf72d2939413ffe80
authorAndreas Arnez <arnez@linux.vnet.ibm.com>
Fri, 27 Feb 2015 09:47:54 +0000 (27 10:47 +0100)
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Fri, 27 Feb 2015 09:47:54 +0000 (27 10:47 +0100)
tree47959b3ababd10802ba79bba7852196d0c5131d5
parentf44466fb654c587908d417b016c16c0fd27bf415
S390: Fix compiler invocation with "compile" command

On 64-bit S390 platforms the "compile" command always failed because
gcc was not invoked correctly.  This patch fixes the compiler
invocation.

gdb/ChangeLog:

* s390-linux-tdep.c (s390_gcc_target_options): Not just handle
31-bit targets, but 64-bit targets as well.
(s390_gnu_triplet_regexp): New function.
(s390_gdbarch_init): Set the gcc_target_options gdbarch method for
64-bit targets as well.  Set the gnu_triplet_regexp gdbarch
method.
gdb/ChangeLog
gdb/s390-linux-tdep.c