From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11747 invoked by alias); 29 Apr 2010 21:03:25 -0000 Received: (qmail 11686 invoked by uid 22791); 29 Apr 2010 21:03:24 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SARE_MSGID_LONG45 X-Spam-Check-By: sourceware.org Received: from mail-pw0-f41.google.com (HELO mail-pw0-f41.google.com) (209.85.160.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 29 Apr 2010 21:03:17 +0000 Received: by pwi10 with SMTP id 10so6346270pwi.0 for ; Thu, 29 Apr 2010 14:03:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.115.103.40 with SMTP id f40mr3642733wam.38.1272574996009; Thu, 29 Apr 2010 14:03:16 -0700 (PDT) Received: by 10.114.199.17 with HTTP; Thu, 29 Apr 2010 14:03:15 -0700 (PDT) In-Reply-To: <201004291550.57916.sergiodj@redhat.com> References: <201004291550.57916.sergiodj@redhat.com> Date: Thu, 29 Apr 2010 21:03:00 -0000 Message-ID: Subject: Re: How to stop gdbserver while it's listening From: robert song To: Sergio Durigan Junior Cc: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-04/txt/msg00160.txt.bz2 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. =A0Sometimes you just can't o= pen a > new terminal, though. =A0In 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