diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-06-23 21:05:40 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-06-23 21:05:40 +0000 |
commit | 449a5da47c55d448f0fc820d3e76c2100f496ab6 (patch) | |
tree | 470409157a9e787f96cf8eca46d9174dac72e1bd /gdb/rs6000-tdep.c | |
parent | 12f0bd746aae4e06c9db120d85e8c42fe6ad9791 (diff) | |
download | gdb-449a5da47c55d448f0fc820d3e76c2100f496ab6.zip gdb-449a5da47c55d448f0fc820d3e76c2100f496ab6.tar.gz gdb-449a5da47c55d448f0fc820d3e76c2100f496ab6.tar.bz2 |
2003-06-23 Andrew Cagney <cagney@redhat.com>
* rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
for 0 "int0" and 4 "int32" sized registers.
* gdbtypes.c (builtin_type_int0): Define.
(build_gdbtypes): Initialize builtin_type_int0.
* gdbtypes.h (builtin_type_int0): Declare.
Diffstat (limited to 'gdb/rs6000-tdep.c')
-rw-r--r-- | gdb/rs6000-tdep.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index e12a6be..d384d42 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -1894,6 +1894,10 @@ rs6000_register_virtual_type (int n) int size = regsize (reg, tdep->wordsize); switch (size) { + case 0: + return builtin_type_int0; + case 4: + return builtin_type_int32; case 8: if (tdep->ppc_ev0_regnum <= n && n <= tdep->ppc_ev31_regnum) return builtin_type_vec64; @@ -1904,8 +1908,8 @@ rs6000_register_virtual_type (int n) return builtin_type_vec128; break; default: - return builtin_type_int32; - break; + internal_error (__FILE__, __LINE__, "Register %d size %d unknown", + n, size); } } } |