This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Adding files to GDB
On Fri, Sep 01, 2006 at 06:29:55PM +0100, Rob Quill wrote:
> Hi,
>
> I am wondering how to do the following:
>
> Say I wish to add a command to gdb, and then have the code carried out
> using this command in a new files or files, I should be able to figure
> out how to add a command using GDB Internals and looking through the
> code, but I have no real idea of how to add the files so they compile
> and are used.
>
> I quick look in the Autotools book mentions a makefile.am, but I can't
> fine one of these, and all of this is very new to me.
>
> Thanks for your time and help.
The best way to do anything in a new software project is to find
another example of it already done :-) Pick a file, say arch-utils.c /
arch-utils.c, and search for references to it. You'll find lots of
them in Makefile.in.
--
Daniel Jacobowitz
CodeSourcery