CARP: *BREAKPOINT*

Convert mn10300, MIPS and powerpc/rs6000 targets to use
BREAKPOINT_FROM_PC
Delete global variable memory_breakpoint_size.  Use BREAKPOINT_FROM_PC
instead.
This commit is contained in:
Andrew Cagney 1998-11-24 13:49:00 +00:00
parent fbf1f3f1f6
commit afcad54a90
9 changed files with 123 additions and 28 deletions

View file

@ -58,6 +58,23 @@ mn10300_use_struct_convention (gcc_p, type)
return (TYPE_NFIELDS (type) > 1 || TYPE_LENGTH (type) > 8);
}
/* The breakpoint instruction must be the same size as the smallest
instruction in the instruction set.
The Matsushita mn10x00 processors have single byte instructions
so we need a single byte breakpoint. Matsushita hasn't defined
one, so we defined it ourselves. */
unsigned char *
mn10300_breakpoint_from_pc (bp_addr, bp_size)
CORE_ADDR *bp_addr;
int *bp_size;
{
static char breakpoint[] = {0xff};
*bp_size = 1;
return breakpoint;
}
/* Fix fi->frame if it's bogus at this point. This is a helper
function for mn10300_analyze_prologue. */