* rs6000-pinsn.c: New version from IBM (Metin).
* m2-exp.y: Re-write string initializers ("<>" => {'<', '>'}) to avoid warnings from some compilers.
This commit is contained in:
parent
c0532cf36b
commit
d453b386ac
|
@ -1,3 +1,9 @@
|
||||||
|
Thu Apr 16 18:26:34 1992 Per Bothner (bothner@cygnus.com)
|
||||||
|
|
||||||
|
* rs6000-pinsn.c: New version from IBM (Metin).
|
||||||
|
* m2-exp.y: Re-write string initializers ("<>" => {'<', '>'})
|
||||||
|
to avoid warnings from some compilers.
|
||||||
|
|
||||||
Tue Apr 14 22:33:55 1992 Fred Fish (fnf@cygnus.com)
|
Tue Apr 14 22:33:55 1992 Fred Fish (fnf@cygnus.com)
|
||||||
|
|
||||||
* gdbtypes.h (FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL): Add defines.
|
* gdbtypes.h (FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL): Add defines.
|
||||||
|
|
10
gdb/m2-exp.y
10
gdb/m2-exp.y
|
@ -785,11 +785,11 @@ static struct
|
||||||
int token;
|
int token;
|
||||||
} tokentab2[] =
|
} tokentab2[] =
|
||||||
{
|
{
|
||||||
{"<>", NOTEQUAL },
|
{ {'<', '>'}, NOTEQUAL },
|
||||||
{":=", ASSIGN },
|
{ {':', '='}, ASSIGN },
|
||||||
{"<=", LEQ },
|
{ {'<', '='}, LEQ },
|
||||||
{">=", GEQ },
|
{ {'>', '='}, GEQ },
|
||||||
{"::", COLONCOLON },
|
{ {':', ':'}, COLONCOLON },
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ print_insn (memaddr, stream)
|
||||||
CORE_ADDR memaddr;
|
CORE_ADDR memaddr;
|
||||||
FILE *stream;
|
FILE *stream;
|
||||||
{
|
{
|
||||||
int pop, eop; /* primary and extended opcodes */
|
int pop, eop, probable_eop; /* primary and extended opcodes */
|
||||||
int min, max;
|
int min, max;
|
||||||
int best = -1; /* found best opcode index */
|
int best = -1; /* found best opcode index */
|
||||||
int oldbest = -1;
|
int oldbest = -1;
|
||||||
|
@ -37,7 +37,6 @@ print_insn (memaddr, stream)
|
||||||
|
|
||||||
read_memory (memaddr, &the_insn, sizeof (the_insn));
|
read_memory (memaddr, &the_insn, sizeof (the_insn));
|
||||||
pop = (unsigned)(the_insn >> 26);
|
pop = (unsigned)(the_insn >> 26);
|
||||||
eop = ((the_insn) >> 1) & 0x3ff;
|
|
||||||
min = 0, max = NOPCODES-1;
|
min = 0, max = NOPCODES-1;
|
||||||
|
|
||||||
while (min < max) {
|
while (min < max) {
|
||||||
|
@ -55,7 +54,7 @@ print_insn (memaddr, stream)
|
||||||
min = best;
|
min = best;
|
||||||
|
|
||||||
else {
|
else {
|
||||||
/* opcode matched, check extended opcode. */
|
/* Opcode matched, check extended opcode. */
|
||||||
|
|
||||||
if (rs6k_ops [best].e_opcode == -1) {
|
if (rs6k_ops [best].e_opcode == -1) {
|
||||||
/* there is no valid extended opcode, what we've got is
|
/* there is no valid extended opcode, what we've got is
|
||||||
|
@ -63,12 +62,18 @@ print_insn (memaddr, stream)
|
||||||
goto insn_found;
|
goto insn_found;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (eop < rs6k_ops [best].e_opcode) {
|
/* Largest possible value of extended opcode. */
|
||||||
|
probable_eop = ((the_insn) >> 1) & 0x3ff;
|
||||||
|
|
||||||
|
eop = probable_eop & eopMask [rs6k_ops [best].format];
|
||||||
|
|
||||||
|
if (eop < rs6k_ops [best].e_opcode) {
|
||||||
|
|
||||||
while (pop == rs6k_ops [best].p_opcode) {
|
while (pop == rs6k_ops [best].p_opcode) {
|
||||||
if (eop == rs6k_ops [best].e_opcode) /* found it! */
|
if (eop == rs6k_ops [best].e_opcode) /* found it! */
|
||||||
goto insn_found;
|
goto insn_found;
|
||||||
--best;
|
--best;
|
||||||
|
eop = probable_eop & eopMask [rs6k_ops [best].format];
|
||||||
}
|
}
|
||||||
goto not_found;
|
goto not_found;
|
||||||
}
|
}
|
||||||
|
@ -79,6 +84,7 @@ print_insn (memaddr, stream)
|
||||||
if (eop == rs6k_ops [best].e_opcode) /* found it! */
|
if (eop == rs6k_ops [best].e_opcode) /* found it! */
|
||||||
goto insn_found;
|
goto insn_found;
|
||||||
++best;
|
++best;
|
||||||
|
eop = probable_eop & eopMask [rs6k_ops [best].format];
|
||||||
}
|
}
|
||||||
goto not_found;
|
goto not_found;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue