mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
4b05e0a74b
Currently, it's not possible to manually set some of the v850 archs in gdb: (gdb) set architecture v850<TAB> v850 (using old gcc ABI) v850-rh850 v850e v850e (using old gcc ABI) v850e1 [...] (gdb) set architecture v850 (using old gcc ABI) Ambiguous item "v850 (using old gcc ABI)". The problem is that "set architecture" is a GDB "enum command", and GDB only considers an enum value to be the string up until the first space. So writing "v850 (using old gcc ABI)" is the same as writing "v850", and then that's not an unambiguous arch printable name prefix. v850 is actually the only arch that has spaces in its printable name. One can conveniently see that with e.g.: (gdb) set max-completions unlimited (gdb) complete set architecture ... Rather than hack GDB into accepting this somehow, make v850 arch printable names more like the printable names of the other archs, and put the abi variant in the "machine" part, after a ':'. We now get: (gdb) set architecture v850<TAB> v850:old-gcc-abi v850:rh850 v850e v850e1 v850e1:old-gcc-abi v850e2 v850e2:old-gcc-abi [...] And now "set architecture v850:old-gcc-abi" works as expected. I ran the binutils/gas/ld testsuites, and found no regressions. I don't have a cross compiler handy, but I ran the gdb tests anyway, which covers at least some snoke testing. I think that the OUTPUT_ARCH in ld/scripttempl/v850.sc may have got broken with the previous 2012 change, since I hacked v850_rh850.sc to output "v850" and ld failed to grok it. I think it only works if the old GCC ABI is the configured v850 default ABI. That's now fixed by changing to use explicit v850:old-gcc-abi. Also, this actually "fixes" an existing GDB test, which isn't likewise expecting spaces in arch names, when GDB is configured for --target=v850: (gdb) FAIL: gdb.xml/tdesc-arch.exp: read valid architectures bfd/ChangeLog: 2016-03-09 Pedro Alves <palves@redhat.com> * cpu-v850.c (N): Append ":old-gcc-abi" instead of " (using old gcc ABI)" to printable name. * cpu-v850_rh850.c (bfd_v850_rh850_arch): Use "v850:rh850" instead of "v850-rh850" as printable name. ld/ChangeLog: 2016-03-09 Pedro Alves <palves@redhat.com> * scripttempl/v850.sc: Use "v850:old-gcc-abi" as OUTPUT_ARCH. * scripttempl/v850_rh850.sc: Use "v850:rh850" as OUTPUT_ARCH. |
||
---|---|---|
.. | ||
aix.sc | ||
alpha.sc | ||
alphavms.sc | ||
aout.sc | ||
arclinux.sc | ||
armaout.sc | ||
armbpabi.sc | ||
armcoff.sc | ||
avr.sc | ||
avrtiny.sc | ||
crisaout.sc | ||
delta68.sc | ||
dlx.sc | ||
DWARF.sc | ||
elf32cr16.sc | ||
elf32cr16c.sc | ||
elf32crx.sc | ||
elf32msp430_3.sc | ||
elf32msp430.sc | ||
elf32sh-symbian.sc | ||
elf32xc16x.sc | ||
elf32xc16xl.sc | ||
elf32xc16xs.sc | ||
elf64hppa.sc | ||
elf_chaos.sc | ||
elf.sc | ||
elfarc.sc | ||
elfarcv2.sc | ||
elfd10v.sc | ||
elfd30v.sc | ||
elfi370.sc | ||
elfm68hc11.sc | ||
elfm68hc12.sc | ||
elfmicroblaze.sc | ||
elfxgate.sc | ||
elfxtensa.sc | ||
epiphany_4x4.sc | ||
epocpe.sc | ||
ft32.sc | ||
h8300.sc | ||
h8300h.sc | ||
h8300hn.sc | ||
h8300s.sc | ||
h8300sn.sc | ||
h8300sx.sc | ||
h8300sxn.sc | ||
h8500.sc | ||
h8500b.sc | ||
h8500c.sc | ||
h8500m.sc | ||
h8500s.sc | ||
hppaelf.sc | ||
i386beos.sc | ||
i386coff.sc | ||
i386go32.sc | ||
i386msdos.sc | ||
i860coff.sc | ||
i960.sc | ||
ia64vms.sc | ||
ip2k.sc | ||
iq2000.sc | ||
m68kaux.sc | ||
m68kcoff.sc | ||
m88kbcs.sc | ||
mcorepe.sc | ||
mep.sc | ||
mips.sc | ||
mipsbsd.sc | ||
mmo.sc | ||
moxie.sc | ||
nds32elf.sc | ||
nw.sc | ||
pe.sc | ||
pep.sc | ||
pj.sc | ||
ppcpe.sc | ||
psos.sc | ||
README | ||
riscix.sc | ||
sh.sc | ||
sparccoff.sc | ||
st2000.sc | ||
tic4xcoff.sc | ||
tic30aout.sc | ||
tic30coff.sc | ||
tic54xcoff.sc | ||
tic80coff.sc | ||
v850_rh850.sc | ||
v850.sc | ||
vanilla.sc | ||
visium.sc | ||
w65.sc | ||
xstormy16.sc | ||
z80.sc | ||
z8000.sc |
The files in this directory are linker script templates.
genscripts.sh sets some shell variables, then sources
EMULATION.sc, to generate EMULATION.{x,xr,xu,xn,xbn} -- the script
files for default, -r, -Ur, -n, -N.
Copyright (C) 2012-2016 Free Software Foundation, Inc.
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.