From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 35518 invoked by alias); 26 Mar 2015 02:59:28 -0000 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 Received: (qmail 35503 invoked by uid 89); 26 Mar 2015 02:59:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_FROM_URIBL_PCCC,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-ie0-f177.google.com Received: from mail-ie0-f177.google.com (HELO mail-ie0-f177.google.com) (209.85.223.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Thu, 26 Mar 2015 02:59:27 +0000 Received: by iedm5 with SMTP id m5so37177609ied.3 for ; Wed, 25 Mar 2015 19:59:25 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.50.131.196 with SMTP id oo4mr34092973igb.2.1427338764572; Wed, 25 Mar 2015 19:59:24 -0700 (PDT) Received: by 10.36.115.204 with HTTP; Wed, 25 Mar 2015 19:59:24 -0700 (PDT) Date: Thu, 26 Mar 2015 02:59:00 -0000 Message-ID: Subject: How to add a new command? From: Fei Ding To: "gdb@sourceware.org" Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-03/txt/msg00097.txt.bz2 Hi all: I want to add a new command to GDB based on my team's requirement, like `(gdb) auto-check [input file]` , but I found it a litter bit difficult to find related source code. I guess GDB should initialize all command at some place, and I plan to learn from it first. Any body familiar with this? I just need some files' names of source code ,maybe function names is even more useful. Thanks.