Subject: strace 'LOOP' for MIPS

From: Mike Shaver <[email-masked]>
Date: Thu, 17 Jul 1997 16:50:54 -0400 (EDT)

>From strace/util.c:
#ifdef I386
#define LOOP	0x0000feeb
#else /* !I386 */
#ifdef M68K
#define LOOP	0x60fe0000
#else /* !M68K */
#ifdef ALPHA
#define LOOP    0xc3ffffff
#endif /* ALPHA */
#endif /* !M68K */
#endif /* !I386 */

What should LOOP be for the MIPS?
It appears to be the address of the breakpoint handler, but I'm not
sure:
	ptrace(PTRACE_POKETEXT, tcp->pid, (char *) tcp->baddr, LOOP);
	if (errno) {
		perror("setbpt: ptrace(PTRACE_POKETEXT, ...)");
		return -1;
	}

Mike

-- 
#> Mike Shaver ([email-masked]) Ingenia Communications Corporation 
#>                   Welcome to the technocracy.
#>                                                                     
#> "you'd be so disappointed
#>              to find out that the magic was not
#>                          really meant for you" - OLP