gdb: provide and use sparc{32,64} target description XML files.
authorIvo Raisr <ivo.raisr@oracle.com>
Mon, 6 Feb 2017 07:44:03 +0000 (23:44 -0800)
committerJose E. Marchesi <jose.marchesi@oracle.com>
Mon, 6 Feb 2017 07:44:03 +0000 (23:44 -0800)
commit3f7b46f2daa6c396564d786bda9c81e66d4b9278
treed2341bb017668a99db92043287aa6bb2fe8c5745
parentde32a80f8f48896d4d07babd8c998789dd07c73d
gdb: provide and use sparc{32,64} target description XML files.

gdb/ChangeLog:

2017-02-06  Ivo Raisr  <ivo.raisr@oracle.com>

PR tdep/20936
Provide and use sparc32 and sparc64 target description XML files.
* features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
* features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
* features/sparc/sparc32-solaris.xml: New file.
* features/sparc/sparc64-solaris.xml: New file.
* features/sparc/sparc32-solaris.c: Generated.
* features/sparc/sparc64-solaris.c: Generated.
* sparc-tdep.h: Account for differences in target descriptions.
* sparc-tdep.c (sparc32_register_name): Use target provided registers.
(sparc32_register_type): Use target provided registers.
(validate_tdesc_registers): New function.
(sparc32_gdbarch_init): Use tdesc_has_registers.
Set pseudoregister functions.
* sparc64-tdep.c (sparc64_register_name): Use target provided registers.
(sparc64_register_type): Use target provided registers.
(sparc64_init_abi): Set pseudoregister functions.

gdb/doc/ChangeLog:

2017-02-06  Ivo Raisr  <ivo.raisr@oracle.com>

PR tdep/20936
* gdb.texinfo: (Standard Target Features): Document SPARC features.
(Sparc Features): New node.

gdb/testsuite/ChangeLog:

2017-02-06  Ivo Raisr  <ivo.raisr@oracle.com>

PR tdep/20936
* gdb.xml/tdesc-regs.exp: Provide sparc core registers for the tests.
19 files changed:
gdb/ChangeLog
gdb/NEWS
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/features/sparc/sparc32-cp0.xml [new file with mode: 0644]
gdb/features/sparc/sparc32-cpu.xml [new file with mode: 0644]
gdb/features/sparc/sparc32-fpu.xml [new file with mode: 0644]
gdb/features/sparc/sparc32-solaris.c [new file with mode: 0644]
gdb/features/sparc/sparc32-solaris.xml [new file with mode: 0644]
gdb/features/sparc/sparc64-cp0.xml [new file with mode: 0644]
gdb/features/sparc/sparc64-cpu.xml [new file with mode: 0644]
gdb/features/sparc/sparc64-fpu.xml [new file with mode: 0644]
gdb/features/sparc/sparc64-solaris.c [new file with mode: 0644]
gdb/features/sparc/sparc64-solaris.xml [new file with mode: 0644]
gdb/sparc-tdep.c
gdb/sparc-tdep.h
gdb/sparc64-tdep.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.xml/tdesc-regs.exp