From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9682 invoked by alias); 24 Jan 2007 12:51:55 -0000 Received: (qmail 9673 invoked by uid 22791); 24 Jan 2007 12:51:54 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Wed, 24 Jan 2007 12:51:45 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1H9hbJ-0000sl-8S; Wed, 24 Jan 2007 07:51:41 -0500 Date: Wed, 24 Jan 2007 12:51:00 -0000 From: Daniel Jacobowitz To: Bin Chen Cc: gdb@sourceware.org Subject: Re: attach gdbserver to itself Message-ID: <20070124125141.GA3370@nevyn.them.org> Mail-Followup-To: Bin Chen , gdb@sourceware.org References: <45B75585.2030900@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45B75585.2030900@gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) 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: 2007-01/txt/msg00307.txt.bz2 On Wed, Jan 24, 2007 at 08:48:05PM +0800, Bin Chen wrote: > But if I start program by gdbserver :9988 program, it can catch the > error. What is the difference? How can I revise my code to make above > code has same effect like starting the program by gdbserver? It should work fine. You need to explain exactly what happens, what commands you use, and what output you get. -- Daniel Jacobowitz CodeSourcery