diff options
author | Thiago Jung Bauermann <bauerman@br.ibm.com> | 2008-01-31 13:37:21 +0000 |
---|---|---|
committer | Thiago Jung Bauermann <bauerman@br.ibm.com> | 2008-01-31 13:37:21 +0000 |
commit | f949c6497febc6533d416884b0c3bbf66c2f4fc2 (patch) | |
tree | a4b578e2e72b64a888aec9d973a4bccd78812bf6 /gdb/infcmd.c | |
parent | 5a9e69ba86c842a7e4713ac27bb6fac1c6121006 (diff) | |
download | fsf-binutils-gdb-f949c6497febc6533d416884b0c3bbf66c2f4fc2.zip fsf-binutils-gdb-f949c6497febc6533d416884b0c3bbf66c2f4fc2.tar.gz fsf-binutils-gdb-f949c6497febc6533d416884b0c3bbf66c2f4fc2.tar.bz2 |
2008-01-30 Luis Machado <luisgpm@br.ibm.com>
Thiago Jung Bauermann <bauerman@br.ibm.com>
* infcmd.c (default_print_registers_info): Also print hex
raw contents for TYPE_CODE_DECFLOAT registers.
* ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
* rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
(rs6000_register_name): Add support for DFP pseudo-registers.
(rs6000_pseudo_register_type): Likewise.
rs6000_pseudo_register_reggroup_p): Likewise.
(ppc_pseudo_register_read): New function.
(ppc_pseudo_register_write): Likewise.
(rs6000_pseudo_register_read): Likewise.
(rs6000_pseudo_register_write): Likewise.
(e500_pseudo_register_read): Move checks to
rs6000_pseudo_register_read.
(e500_pseudo_register_write): Move checks to
rs6000_pseudo_register_write.
(rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
rs6000_pseudo_register_read and rs6000_pseudo_register_write
in gdbarch if SPE or DFP is available. Adjust gdbarch's
num_pseudo_regs to account for DFP pseudo regs.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r-- | gdb/infcmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 704e189..972f9e2 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -1622,7 +1622,8 @@ default_print_registers_info (struct gdbarch *gdbarch, /* If virtual format is floating, print it that way, and in raw hex. */ - if (TYPE_CODE (register_type (gdbarch, i)) == TYPE_CODE_FLT) + if (TYPE_CODE (register_type (gdbarch, i)) == TYPE_CODE_FLT + || TYPE_CODE (register_type (gdbarch, i)) == TYPE_CODE_DECFLOAT) { int j; |