This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/3] Tweak server-kill.exp for remote target
- From: Yao Qi <yao at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>
- Cc: <palves at redhat dot com>
- Date: Wed, 8 Oct 2014 14:27:56 +0800
- Subject: [PATCH 0/3] Tweak server-kill.exp for remote target
- Authentication-results: sourceware.org; auth=none
- References: <543404EF dot 4010306 at redhat dot com>
Pedro Alves <palves@redhat.com> writes:
> gdbserver will be the parent of the tested process. So how about
> tweaking the test program to do:
>
> int server_pid;
>
> int main ()
> {
> server_pid = getppid ();
> }
>
> and then simply read "server_pid" out of the inferior ?
That is a good idea! Patch 2/3 is about this. Patch 1/3 is a clean
up. Patch 3/3 is to fix a fail we've seen on target doesn't support
tracepoint.
*** BLURB HERE ***
Yao Qi (3):
Clean up server-kill.exp
Get GDBserver pid on remote target
Use command "monitor set debug 0" to check the connection
gdb/testsuite/gdb.server/server-kill.c | 10 +++++++++-
gdb/testsuite/gdb.server/server-kill.exp | 23 +++++++++++++++++------
2 files changed, 26 insertions(+), 7 deletions(-)
--
1.9.3