From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14840 invoked by alias); 7 Aug 2012 14:18:15 -0000 Received: (qmail 14831 invoked by uid 22791); 7 Aug 2012 14:18:14 -0000 X-SWARE-Spam-Status: No, hits=2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-qa0-f41.google.com (HELO mail-qa0-f41.google.com) (209.85.216.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 07 Aug 2012 14:18:02 +0000 Received: by qafk30 with SMTP id k30so256708qaf.0 for ; Tue, 07 Aug 2012 07:18:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.60.31.165 with SMTP id b5mr24453095oei.58.1344349081075; Tue, 07 Aug 2012 07:18:01 -0700 (PDT) Received: by 10.76.151.194 with HTTP; Tue, 7 Aug 2012 07:18:01 -0700 (PDT) Date: Tue, 07 Aug 2012 14:18:00 -0000 Message-ID: Subject: How to debug gdb using gdb ? From: Smith John To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 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/msg00015.txt.bz2 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!