From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30153 invoked by alias); 1 Sep 2006 18:15:06 -0000 Received: (qmail 30144 invoked by uid 22791); 1 Sep 2006 18:15:05 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Fri, 01 Sep 2006 18:15:02 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GJDXf-0004fe-Er; Fri, 01 Sep 2006 14:14:59 -0400 Date: Fri, 01 Sep 2006 18:15:00 -0000 From: Daniel Jacobowitz To: Rob Quill Cc: gdb@sourceware.org Subject: Re: Adding files to GDB Message-ID: <20060901181459.GA17930@nevyn.them.org> Mail-Followup-To: Rob Quill , gdb@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11+cvs20060403 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-09/txt/msg00017.txt.bz2 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