* How to stop gdbserver while it's listening
@ 2010-04-27 1:56 robert song
2010-04-29 18:51 ` Sergio Durigan Junior
0 siblings, 1 reply; 3+ messages in thread
From: robert song @ 2010-04-27 1:56 UTC (permalink / raw)
To: gdb
Hello,everyone.
During the gdbserver is listening on one TCP port, I can't stop by
directly press Ctrl-C.
But only open another windows and kill this one.
target> gdbserver :5555 /tmp/helloworld
target> kill -9 `pgrep gdbserver`
Is it the only way to stop the gdbserver?
Thank you very much.
Regards,
robert
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to stop gdbserver while it's listening
2010-04-27 1:56 How to stop gdbserver while it's listening robert song
@ 2010-04-29 18:51 ` Sergio Durigan Junior
2010-04-29 21:03 ` robert song
0 siblings, 1 reply; 3+ messages in thread
From: Sergio Durigan Junior @ 2010-04-29 18:51 UTC (permalink / raw)
To: gdb; +Cc: robert song
On Monday 26 April 2010 22:56:00, robert song wrote:
> During the gdbserver is listening on one TCP port, I can't stop by
> directly press Ctrl-C.
> But only open another windows and kill this one.
>
> target> gdbserver :5555 /tmp/helloworld
> target> kill -9 `pgrep gdbserver`
>
> Is it the only way to stop the gdbserver?
Hi Robert,
Others can correct me if I'm wrong, but this is the only way of killing
gdbserver when you are on the target board. Sometimes you just can't open a
new terminal, though. In this case, you can also connect to gdbserver from
another machine and issue a `monitor exit' command.
--
Sergio
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to stop gdbserver while it's listening
2010-04-29 18:51 ` Sergio Durigan Junior
@ 2010-04-29 21:03 ` robert song
0 siblings, 0 replies; 3+ messages in thread
From: robert song @ 2010-04-29 21:03 UTC (permalink / raw)
To: Sergio Durigan Junior; +Cc: gdb
Hi, Sergio, thank you very much for your reply.
> Others can correct me if I'm wrong, but this is the only way of killing
> gdbserver when you are on the target board. Sometimes you just can't open a
> new terminal, though. In this case, you can also connect to gdbserver from
> another machine and issue a `monitor exit' command.
I can't find a 'monitor exit' command in my gdb 6.6.
But I found "detach" can do the work.
`detach'
When you have finished debugging the remote program, you can use
the `detach' command to release it from GDB control. Detaching
from the target normally resumes its execution, but the results
will depend on your particular remote stub. After the `detach'
command, GDB is free to connect to another target.
Regards,
robert
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-04-29 21:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-27 1:56 How to stop gdbserver while it's listening robert song
2010-04-29 18:51 ` Sergio Durigan Junior
2010-04-29 21:03 ` robert song
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox