This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: How to add a new command?
- From: Dmitry Samersoff <dms at samersoff dot net>
- To: Fei Ding <fdingiit at gmail dot com>, "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Thu, 26 Mar 2015 10:55:46 +0300
- Subject: Re: How to add a new command?
- Authentication-results: sourceware.org; auth=none
- References: <CAGmPkf+_LZdUpz=jcXGNBbaqpJqzmZfkeF5qKxJZTwX9omi8-Q at mail dot gmail dot com>
-----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-----