* server.c (attach_inferior): Return SIGTRAP for a successful
attach.
This commit is contained in:
parent
eb4d937285
commit
9db87ebd04
2 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
|
||||
|
||||
* server.c (attach_inferior): Return SIGTRAP for a successful
|
||||
attach.
|
||||
|
||||
2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
|
||||
|
||||
* Makefile.in (OBS): Add version.o.
|
||||
|
|
|
@ -80,6 +80,12 @@ attach_inferior (int pid, char *statusptr, int *sigptr)
|
|||
|
||||
*sigptr = mywait (statusptr, 0);
|
||||
|
||||
/* GDB knows to ignore the first SIGSTOP after attaching to a running
|
||||
process using the "attach" command, but this is different; it's
|
||||
just using "target remote". Pretend it's just starting up. */
|
||||
if (*statusptr == 'T' && *sigptr == SIGSTOP)
|
||||
*sigptr = SIGTRAP;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue