Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Elena Zannoni <ezannoni@redhat.com>
To: Grace Sainsbury <graces@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: insight rename patch
Date: Wed, 04 Sep 2002 14:47:00 -0000	[thread overview]
Message-ID: <15734.32505.573421.235366@localhost.redhat.com> (raw)
In-Reply-To: <20020904173728.A11943@tomago.toronto.redhat.com>

Grace Sainsbury writes:
 > Here is the patch modified as suggested.
 > 
 > ok to commit?

A few comments below on the main/top files.

 > 
 > grace
 > 
 > 2002-09-04  Grace Sainsbury  <graces@redhat.com>
 > 
 > 	    * top.c: Set use_windows to default to zero.
 > 	    * main.c: Move main function to insight.c, gdb.c
 > 	    (gdb_main): New function.
 > 	    * main.h: New file.
 > 	    * insight.c: New File.
 > 	    * gdb.c: New File.
 > 	    * Makefile.in: Add rules for gdb.o, insight.o and
 > 	    * insight. Change
 > 	    gdbtk-install, gdbtk-uninstall, and GDBTK_ALL to reflect this.
 > Index: main.c
 > ===================================================================
 > RCS file: /cvs/src/src/gdb/main.c,v
 > retrieving revision 1.18
 > diff -u -r1.18 main.c
 > --- main.c	25 Jun 2002 05:35:16 -0000	1.18
 > +++ main.c	4 Sep 2002 21:36:21 -0000
 > @@ -112,6 +112,7 @@
 >    {
 >      int argc;
 >      char **argv;
 > +    int use_windows;
 >    };
 >  


There should only be one of struct captured_main_args, in main.h.


 >  static int
 > @@ -735,11 +736,9 @@
 >  }
 >  
 >  int
 > -main (int argc, char **argv)
 > +gdb_main (struct captured_main_args *args)
 >  {
 > -  struct captured_main_args args;
 > -  args.argc = argc;
 > -  args.argv = argv;
 > +  use_windows = args->use_windows;
 >    catch_errors (captured_main, &args, "", RETURN_MASK_ALL);
 >    return 0;
 >  }
 > Index: main.h
 > ===================================================================
 > RCS file: main.h
 > diff -N main.h
 > --- /dev/null	1 Jan 1970 00:00:00 -0000
 > +++ main.h	4 Sep 2002 21:36:21 -0000
 > @@ -0,0 +1,13 @@
 > +#ifndef MAIN_H
 > +#define MAIN_H
 > +
 > +struct captured_main_args
 > +{
 > +    int argc;
 > +    char **argv;
 > +    int use_windows;
 > +};
 > +
 > +int gdb_main (struct captured_main_args *);

Should have the 'extern' keyword here.

 > +
 > +#endif
 > Index: top.c
 > ===================================================================
 > RCS file: /cvs/src/src/gdb/top.c,v
 > retrieving revision 1.66
 > diff -u -r1.66 top.c
 > --- top.c	18 Aug 2002 12:39:03 -0000	1.66
 > +++ top.c	4 Sep 2002 21:36:22 -0000
 > @@ -82,7 +82,7 @@
 >  /* If nonzero, and GDB has been configured to be able to use windows,
 >     attempt to open them upon startup.  */
 >  
 > -int use_windows = 1;
 > +int use_windows = 0;
 >  
 >  extern char lang_frame_mismatch_warn[];		/* language.c */
 >  

OK

Elena


  reply	other threads:[~2002-09-04 21:47 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-04 14:37 Grace Sainsbury
2002-09-04 14:47 ` Elena Zannoni [this message]
2002-09-04 14:59 ` Keith Seitz
2002-09-19 19:15   ` 5.3 branch? Was: " Andrew Cagney
2002-09-19 19:46     ` Keith Seitz
2002-09-25 19:30       ` Andrew Cagney
2002-09-25 19:42         ` Christopher Faylor
2002-09-25 21:27           ` Keith Seitz
2002-09-26 10:48         ` Andrew Cagney
2002-09-27  7:49           ` Keith Seitz
2002-09-28  8:16             ` Andrew Cagney
2002-10-03  0:59               ` Problem about " Pierre Muller
2002-10-03  8:54                 ` Keith Seitz
2002-10-21 12:08                   ` Andrew Cagney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=15734.32505.573421.235366@localhost.redhat.com \
    --to=ezannoni@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=graces@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox