diff options
author | Stu Grossman <grossman@cygnus> | 1992-12-15 01:45:15 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1992-12-15 01:45:15 +0000 |
commit | 01d1590babc04e0950cdcbde17a69a677322c855 (patch) | |
tree | a3ccf809c58184914e31fc7955eb632f0f1b3649 /gdb/hppa-pinsn.c | |
parent | 764c960db48f6b7c784495fd6e2cb92cc126fb4d (diff) | |
download | gdb-01d1590babc04e0950cdcbde17a69a677322c855.zip gdb-01d1590babc04e0950cdcbde17a69a677322c855.tar.gz gdb-01d1590babc04e0950cdcbde17a69a677322c855.tar.bz2 |
* convex-xdep.c, hppab-nat.c, i860-tdep.c, infptrace.c: Remove
decl for attach_flag, it now lives in inferior.h.
* hppa-pinsn.c: Reformat opcode tables. Add function prototypes.
Make most functions static.
* hppah-nat.c: General cleanups, remove BSD specific code (since
that all lives in hppab-nat.c).
* hppah-tdep.c (frame_chain_valid), tm-hppa.h (FRAME_CHAIN):
Change sense of test against inside_entry_file(). This fix is
from U. of Utah.
* tm-hppa.h (PUSH_DUMMY_FRAME, POP_FRAME): Use char * for 2nd arg
to read/write_register_bytes().
Diffstat (limited to 'gdb/hppa-pinsn.c')
-rw-r--r-- | gdb/hppa-pinsn.c | 68 |
1 files changed, 41 insertions, 27 deletions
diff --git a/gdb/hppa-pinsn.c b/gdb/hppa-pinsn.c index 68e9bd8..12df5f3 100644 --- a/gdb/hppa-pinsn.c +++ b/gdb/hppa-pinsn.c @@ -24,33 +24,44 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "symtab.h" #include "opcode/hppa.h" -char *control_reg[] = {"rctr", "cr1", "cr2", "cr3", "cr4", "cr5", "cr6", "cr7", - "pidr1", "pidr2", "ccr", "sar", "pidr3", "pidr4", - "iva", "eiem", "itmr", "pcsq", "pcoq", "iir", "isr", - "ior", "ipsw", "eirr", "tr0", "tr1", "tr2", "tr3", - "tr4", "tr5", "tr6", "tr7" - }; +static char *control_reg[] = +{ "rctr", "cr1", "cr2", "cr3", "cr4", "cr5", "cr6", "cr7", + "pidr1", "pidr2", "ccr", "sar", "pidr3", "pidr4", + "iva", "eiem", "itmr", "pcsq", "pcoq", "iir", "isr", + "ior", "ipsw", "eirr", "tr0", "tr1", "tr2", "tr3", + "tr4", "tr5", "tr6", "tr7" + }; -char *compare_cond_names[] = {"", ",=", ",<", ",<=", ",<<", ",<<=", ",sv", - ",od", ",tr", ",<>", ",>=", ",>", ",>>=", - ",>>", ",nsv", ",ev" - }; -char *add_cond_names[] = {"", ",=", ",<", ",<=", ",nuv", ",znv", ",sv", - ",od", ",tr", ",<>", ",>=", ",>", ",uv", - ",vnz", ",nsv", ",ev" - }; -char *logical_cond_names[] = {"", ",=", ",<", ",<=", 0, 0, 0, ",od", - ",tr", ",<>", ",>=", ",>", 0, 0, 0, ",ev"}; -char *unit_cond_names[] = {"", 0, ",sbz", ",shz", ",sdc", 0, ",sbc", ",shc", - ",tr", 0, ",nbz", ",nhz", ",ndc", 0, ",nbc", ",nhc" - }; -char *shift_cond_names[] = {"", ",=", ",<", ",od", ",tr", ",<>", ",>=", ",ev"}; +static char *compare_cond_names[] = +{ "", ",=", ",<", ",<=", ",<<", ",<<=", ",sv", + ",od", ",tr", ",<>", ",>=", ",>", ",>>=", + ",>>", ",nsv", ",ev" + }; -char *index_compl_names[] = {"", ",m", ",s", ",sm"}; -char *short_ldst_compl_names[] = {"", ",ma", "", ",mb"}; -char *short_bytes_compl_names[] = {"", ",b,m", ",e", ",e,m"}; -char *float_format_names[] = {",sgl", ",dbl", ",quad"}; -char *float_comp_names[] = +static char *add_cond_names[] = +{ "", ",=", ",<", ",<=", ",nuv", ",znv", ",sv", + ",od", ",tr", ",<>", ",>=", ",>", ",uv", + ",vnz", ",nsv", ",ev" + }; + +static char *logical_cond_names[] = +{ "", ",=", ",<", ",<=", 0, 0, 0, ",od", + ",tr", ",<>", ",>=", ",>", 0, 0, 0, ",ev" + }; + +static char *unit_cond_names[] = +{ "", 0, ",sbz", ",shz", ",sdc", 0, ",sbc", ",shc", + ",tr", 0, ",nbz", ",nhz", ",ndc", 0, ",nbc", ",nhc" + }; + +static char *shift_cond_names[] = +{"", ",=", ",<", ",od", ",tr", ",<>", ",>=", ",ev"}; + +static char *index_compl_names[] = {"", ",m", ",s", ",sm"}; +static char *short_ldst_compl_names[] = {"", ",ma", "", ",mb"}; +static char *short_bytes_compl_names[] = {"", ",b,m", ",e", ",e,m"}; +static char *float_format_names[] = {",sgl", ",dbl", ",quad"}; +static char *float_comp_names[] = {",false?", ",false", ",?", ",!<=>", ",=", ",=t", ",?=", ",!<>", ",!?>=", ",<", ",?<", ",!>=", ",!?>", ",<=", ",?<=", ",!>", ",!?<=", ",>", ",?>", ",!<=", ",!?<", ",>=", ",?>=", ",!<", @@ -65,7 +76,10 @@ char *float_comp_names[] = #define GET_COND(insn) (GET_FIELD ((insn), 16, 18) + \ (GET_FIELD ((insn), 19, 19) ? 8 : 0)) -void fput_reg (), fput_const (); +static void fput_reg PARAMS ((unsigned reg, FILE *stream)); +static void fput_const PARAMS ((unsigned num, FILE *stream)); +static void fput_reg_r PARAMS ((unsigned reg, FILE *stream)); +static void fput_creg PARAMS ((unsigned reg, FILE *stream)); /* Print one instruction from MEMADDR on STREAM. */ int @@ -335,7 +349,7 @@ print_insn (memaddr, stream) /* Utility function to print registers */ -void +static void fput_reg (reg, stream) unsigned reg; FILE *stream; |