In breakpoint(), use a different immediate to make sure we can

distinguish between debugger inserted breakpoints and fixed
breakpoints. While here, make sure the break instruction never
ends up in the last slot of a bundle by forcing it to be an
M-unit instruction. This makes it easier for use to skip over
it.
This commit is contained in:
Marcel Moolenaar 2004-03-21 01:41:29 +00:00
parent c50be14baa
commit 6beee8df28

View file

@ -37,15 +37,16 @@
struct thread;
#define IA64_FIXED_BREAK 0x84B5D
#ifdef __GNUC__
static __inline void
breakpoint(void)
{
__asm __volatile("break 0x80100"); /* XXX use linux value */
__asm __volatile("break.m %0" :: "i"(IA64_FIXED_BREAK));
}
#define HAVE_INLINE_FFS
static __inline int