* util.c (clearbpt, setbpt): Change panic messages about "TCB already set" (or not), which doesn't make sense any more, to say "fork breakpoint" instead.
Signed-off-by: Jamie Lokier <ja...@shareable.org> --- util.c | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/util.c b/util.c index 9e9fe1e..82dd9b5 100644 --- a/util.c +++ b/util.c @@ -1477,7 +1477,8 @@ setbpt(struct tcb *tcp) arg_setup_state state; if (tcp->flags & TCB_BPTSET) { - fprintf(stderr, "PANIC: TCB already set in pid %u\n", tcp->pid); + fprintf(stderr, "PANIC: fork breakpoint already set in pid %u\n", + tcp->pid); return -1; } @@ -1556,7 +1557,8 @@ struct tcb *tcp; { arg_setup_state state; if (!(tcp->flags & TCB_BPTSET)) { - fprintf(stderr, "PANIC: TCB not set in pid %u\n", tcp->pid); + fprintf(stderr, "PANIC: fork breakpoint already clear in pid %u\n", + tcp->pid); return -1; } if (arg_setup (tcp, &state) < 0 @@ -1589,7 +1591,8 @@ struct tcb *tcp; # endif if (tcp->flags & TCB_BPTSET) { - fprintf(stderr, "PANIC: TCB already set in pid %u\n", tcp->pid); + fprintf(stderr, "PANIC: fork breakpoint already set in pid %u\n", + tcp->pid); return -1; } if (ptrace(PTRACE_GETREGS, tcp->pid, (char *)®s, 0) < 0) { @@ -1638,7 +1641,8 @@ struct tcb *tcp; # endif if (!(tcp->flags & TCB_BPTSET)) { - fprintf(stderr, "PANIC: TCB not set in pid %u\n", tcp->pid); + fprintf(stderr, "PANIC: fork breakpoint already clear in pid %u\n", + tcp->pid); return -1; } if (ptrace(PTRACE_WRITETEXT, tcp->pid, (char *) tcp->baddr, -- 1.7.0.4 _______________________________________________ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev