From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18370 invoked by alias); 7 Aug 2012 14:21:42 -0000 Received: (qmail 18359 invoked by uid 22791); 7 Aug 2012 14:21:41 -0000 X-SWARE-Spam-Status: No, hits=-5.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-qc0-f169.google.com (HELO mail-qc0-f169.google.com) (209.85.216.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 07 Aug 2012 14:21:24 +0000 Received: by qcsd16 with SMTP id d16so2803888qcs.0 for ; Tue, 07 Aug 2012 07:21:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.42.31.5 with SMTP id x5mr11533215icc.40.1344349283344; Tue, 07 Aug 2012 07:21:23 -0700 (PDT) Received: by 10.50.26.3 with HTTP; Tue, 7 Aug 2012 07:21:23 -0700 (PDT) In-Reply-To: References: Date: Tue, 07 Aug 2012 14:21:00 -0000 Message-ID: Subject: Re: How to debug gdb using gdb ? From: Tom Emerson To: Smith John Cc: gdb@sourceware.org Content-Type: text/plain; charset=UTF-8 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: 2012-08/txt/msg00016.txt.bz2 http://sourceware.org/gdb/current/onlinedocs/gdbint/Debugging-GDB.html#Debugging-GDB On Tue, Aug 7, 2012 at 10:18 AM, Smith John wrote: > hi,guys: > > I am researching gdb source code , and I want to debug it > using its executable file . > but how can I send command to the debugged gdb procedure > which is children process , > > as the gdb which is parent process will deal with every command > inputed from the command line ,so I get no way to communicate with > > that debugged gdb procedure. > > > > any advice? > > > thanks! -- Tom Emerson tremerson@gmail.com http://www.dreamersrealm.net/tree