* Adding files to GDB
@ 2006-09-01 17:30 Rob Quill
2006-09-01 18:15 ` Daniel Jacobowitz
0 siblings, 1 reply; 2+ messages in thread
From: Rob Quill @ 2006-09-01 17:30 UTC (permalink / raw)
To: gdb
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.
Rob
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Adding files to GDB
2006-09-01 17:30 Adding files to GDB Rob Quill
@ 2006-09-01 18:15 ` Daniel Jacobowitz
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2006-09-01 18:15 UTC (permalink / raw)
To: Rob Quill; +Cc: 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-09-01 18:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-01 17:30 Adding files to GDB Rob Quill
2006-09-01 18:15 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox