Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Re: Adding file to gdb
@ 2003-02-09 22:06 Michael Elizabeth Chastain
  2003-02-10 15:55 ` Bob Rossi
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Elizabeth Chastain @ 2003-02-09 22:06 UTC (permalink / raw)
  To: bob_rossi, gdb

Hi Bob,

> Is the gdb-patches@sources.redhat.com mailing list more appropriate for
> this Email?

No, this is fine.

> If I am going to submit a patch that adds a single file to gdb, do I
> need to submit a patch of the Makefile changes also? Or will the
> maintainer automatically fix the Makefile.am and configure code to do
> this?

You have to include the Makefile.in and configure/configure.in changes
as well.  See the big Ingham/Seitz/Zannoni/Cagney patch for an example.

  http://sources.redhat.com/ml/gdb-patches/2003-02/msg00138.html

> Is this all I need to do? Or is there something else I should do 
> before I submit the patch?

I like it when people describe what they did to test their patch.
I'm trying to persuade other people to do this too.  But most people
don't say how they test, so it's okay if you don't.

Did you run the gdb test suite?  On which platforms?

> Also, Should I do the context diff from src/ using 'cvs diff -c' ?

Either src/ or gdb/, we tend to be relaxed about this.

Michael C


^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: Adding file to gdb
@ 2003-02-10 16:19 Michael Elizabeth Chastain
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Elizabeth Chastain @ 2003-02-10 16:19 UTC (permalink / raw)
  To: bob_rossi, gdb

Ah, you need dejagnu 1.4.3 or later.  Gdb uses the new 'kfail'
feature of dejagnu 1.4.3.

There are two ways to get this.  You can download dejagnu from
ftp.gnu.org or a mirror site, build it with the "--prefix" option, and
add the installation directory to your path.  Or, you can "cvs checkout
dejagnu" from sources.redhat.com, which is almost identical to dejagnu
1.4.3.

Dejagnu requires TCL and Expect.  The "dejagnu" module from
sources.redhat.com includes TCL + Expect + Dejagnu, and it also has
Makefile magic to use the dejagnu in the tree to use that dejagnu
instead of the one in your path.

A lot of people who work on gdb just do "cvs checkout gdb+dejagnu".
I run a test bed with the stock FSF version of dejagnu instead of
the sources.redhat.com version.  Either way is good.

Michael C


^ permalink raw reply	[flat|nested] 4+ messages in thread
* Adding file to gdb
@ 2003-02-09 21:31 Bob Rossi
  0 siblings, 0 replies; 4+ messages in thread
From: Bob Rossi @ 2003-02-09 21:31 UTC (permalink / raw)
  To: gdb

Is the gdb-patches@sources.redhat.com mailing list more appropriate for
this Email?

If I am going to submit a patch that adds a single file to gdb, do I
need to submit a patch of the Makefile changes also? Or will the
maintainer automatically fix the Makefile.am and configure code to do
this?

To be explicit, the file I added is src/gdb/mi/mi-cmd-file.c
The Makefile I edited was src/gdb/Makefile

The other files I modified are, 
   src/gdb/mi/ChangeLog     -> Describing change
   src/gdb/mi/gdbmi.texinfo -> Documenting change
   src/gdb/mi/mi-cmds.c     -> Added -file-list-exec-source-file
                            -> displays current line and absolute path
                            -> to file 
   src/gdb/mi/mi-cmds.h      -> adds prototype of new mi function
   
Is this all I need to do? Or is there something else I should do 
before I submit the patch?

Also, Should I do the context diff from src/ using 'cvs diff -c' ?

Thanks for your help,
Bobby


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-02-10 16:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-09 22:06 Adding file to gdb Michael Elizabeth Chastain
2003-02-10 15:55 ` Bob Rossi
  -- strict thread matches above, loose matches on Subject: below --
2003-02-10 16:19 Michael Elizabeth Chastain
2003-02-09 21:31 Bob Rossi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox