From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11434 invoked by alias); 26 Mar 2015 07:55:54 -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 11424 invoked by uid 89); 26 Mar 2015 07:55:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_40 autolearn=ham version=3.3.2 X-HELO: samersoff.net Received: from Unknown (HELO samersoff.net) (81.9.105.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 26 Mar 2015 07:55:52 +0000 Received: from [192.168.0.77] (port=35548) by samersoff.net with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.82) (envelope-from ) id 1Yb2dm-000NLR-JS; Thu, 26 Mar 2015 11:55:46 +0400 Message-ID: <5513BB82.6010900@samersoff.net> Date: Thu, 26 Mar 2015 07:55:00 -0000 From: Dmitry Samersoff User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Fei Ding , "gdb@sourceware.org" Subject: Re: How to add a new command? References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Authenticated-As: dms X-IsSubscribed: yes X-SW-Source: 2015-03/txt/msg00099.txt.bz2 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Fei, Take a look at the Abhijith's patch: https://sourceware.org/ml/gdb-patches/2012-05/msg00500.html - -Dmitry On 2015-03-26 05:59, Fei Ding wrote: > 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. > - -- Dmitry Samersoff Saint Petersburg, Russia, http://devnull.samersoff.net * There will come soft rains ... -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJVE7uCAAoJEHEy08c4gIABvdsH/3DiAk9OYijIbbsumRDcEGbH jZk4t/g1HiaxHyFMq9XaL11ZUazNMOV+k8inpQrijtW1nE8Rt/ogje0dYfFANSKB mBAsbdXk7BGGEV6WLU2sxIZD+eFaaub5/cam9kmLAZSH8SvSzx07+4jkyex9z1t+ BXM+wxgkRx3Gpj35v6FzCYGsrztzy5XIGut8x1xp/RL/+guxnd01RMzEms2j+SFU ScdP+SaRTvUwUkgqBCN3VJI6iyCyW/at9HJulLaEw4EhkWU31KBdBEogBWulGUQB ht0XF1s4bOb80tuoc/4hzOF7tNwIEpZrEDtZGAhiqA2zBOATufcg9yNF9CO8mi8= =YhE2 -----END PGP SIGNATURE-----