Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Elena Zannoni <ezannoni@cygnus.com>
To: Alexandre Oliva <aoliva@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: GDB CVS won't build on OSF4.0's cc
Date: Wed, 06 Jun 2001 13:20:00 -0000	[thread overview]
Message-ID: <15134.37007.772051.431723@kwikemart.cygnus.com> (raw)
In-Reply-To: <or3d9ofncw.fsf@guarana.lsd.ic.unicamp.br>

Alex, no. Sorry, but we are trying to get rid of PTR in the
gdb sources [as Kevin pointed out in another message].

Could you 'revert' these changes by changing the definitions to 
use void * and deleting the prototypes when they are not needed (everyone
of these can go, except for free_elfinfo, I think).

[see Andrew's patch: 
http://sources.redhat.com/ml/gdb-patches/2001-06/msg00077.html ]

Thanks and sorry again.

Elena

PS. I'll go through these files later and clean up some more of these.


Alexandre Oliva writes:

 > On May 29, 2001, Alexandre Oliva <aoliva@redhat.com> wrote:
 > 
 > > This patch fixes it.  I'm checking it in as obviously correct.
 > 
 > > Index: gdb/ChangeLog
 > > from  Alexandre Oliva  <aoliva@redhat.com>
 > 
 > > 	* symfile.c (compare_psymbols, compare_symbols): Declare using
 > > 	PTR, as in the definition.
 > 
 > More of the same...  Checking in...
 > 
 > Index: gdb/ChangeLog
 > 	* minsyms.c (compare_minimal_symbols): Likewise.
 > 	* coffread.c (find_targ_sec): Likewise.
 > 	* elfread.c (free_elfinfo, elf_locate_sections): Likewise.
 > 	* mipsread.c (alphacoff_locate_sections): Likewise.
 > 	* mdebugread.c (compare_blocks): Likewise.
 > Index: gdb/minsyms.c
 > ===================================================================
 > RCS file: /cvs/src/src/gdb/minsyms.c,v
 > retrieving revision 1.16
 > diff -u -p -r1.16 minsyms.c
 > --- gdb/minsyms.c 2001/05/22 21:02:41 1.16
 > +++ gdb/minsyms.c 2001/05/29 10:33:09
 > @@ -77,7 +77,7 @@ static int msym_count;
 >  
 >  /* Prototypes for local functions. */
 >  
 > -static int compare_minimal_symbols (const void *, const void *);
 > +static int compare_minimal_symbols (const PTR, const PTR);
 >  
 >  static int
 >  compact_minimal_symbols (struct minimal_symbol *, int, struct objfile *);
 > Index: gdb/coffread.c
 > ===================================================================
 > RCS file: /cvs/src/src/gdb/coffread.c,v
 > retrieving revision 1.17
 > diff -u -p -r1.17 coffread.c
 > --- gdb/coffread.c 2001/03/26 02:50:46 1.17
 > +++ gdb/coffread.c 2001/05/29 10:33:09
 > @@ -312,7 +312,7 @@ struct find_targ_sec_arg
 >      asection **resultp;
 >    };
 >  
 > -static void find_targ_sec (bfd *, asection *, void *);
 > +static void find_targ_sec (bfd *, asection *, PTR);
 >  
 >  static void
 >  find_targ_sec (bfd *abfd, asection *sect, PTR obj)
 > Index: gdb/elfread.c
 > ===================================================================
 > RCS file: /cvs/src/src/gdb/elfread.c,v
 > retrieving revision 1.15
 > diff -u -p -r1.15 elfread.c
 > --- gdb/elfread.c 2001/03/06 08:21:07 1.15
 > +++ gdb/elfread.c 2001/05/29 10:33:09
 > @@ -76,7 +76,7 @@ static void elf_symfile_finish (struct o
 >  
 >  static void elf_symtab_read (struct objfile *, int);
 >  
 > -static void free_elfinfo (void *);
 > +static void free_elfinfo (PTR);
 >  
 >  static struct minimal_symbol *record_minimal_symbol_and_info (char *,
 >  							      CORE_ADDR,
 > @@ -88,7 +88,7 @@ static struct minimal_symbol *record_min
 >  							      struct objfile
 >  							      *);
 >  
 > -static void elf_locate_sections (bfd *, asection *, void *);
 > +static void elf_locate_sections (bfd *, asection *, PTR);
 >  
 >  /* We are called once per section from elf_symfile_read.  We
 >     need to examine each section we are passed, check to see
 > Index: gdb/mipsread.c
 > ===================================================================
 > RCS file: /cvs/src/src/gdb/mipsread.c,v
 > retrieving revision 1.8
 > diff -u -p -r1.8 mipsread.c
 > --- gdb/mipsread.c 2001/03/07 02:57:08 1.8
 > +++ gdb/mipsread.c 2001/05/29 10:33:09
 > @@ -185,7 +185,7 @@ struct alphacoff_dynsecinfo
 >      asection *got_sect;		/* Section pointer for .got section */
 >    };
 >  
 > -static void alphacoff_locate_sections (bfd *, asection *, void *);
 > +static void alphacoff_locate_sections (bfd *, asection *, PTR);
 >  
 >  /* We are called once per section from read_alphacoff_dynamic_symtab.
 >     We need to examine each section we are passed, check to see
 > Index: gdb/mdebugread.c
 > ===================================================================
 > RCS file: /cvs/src/src/gdb/mdebugread.c,v
 > retrieving revision 1.12
 > diff -u -p -r1.12 mdebugread.c
 > --- gdb/mdebugread.c 2001/03/07 02:57:08 1.12
 > +++ gdb/mdebugread.c 2001/05/29 10:33:09
 > @@ -378,7 +378,7 @@ static PTR xzalloc (unsigned int);
 >  
 >  static void sort_blocks (struct symtab *);
 >  
 > -static int compare_blocks (const void *, const void *);
 > +static int compare_blocks (const PTR, const PTR);
 >  
 >  static struct partial_symtab *new_psymtab (char *, struct objfile *);
 >  
 > 
 > -- 
 > Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
 > Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
 > CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
 > Free Software Evangelist    *Please* write to mailing lists, not to me


  parent reply	other threads:[~2001-06-06 13:20 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-29  3:20 Alexandre Oliva
2001-05-29  3:42 ` Alexandre Oliva
2001-05-29  4:12   ` Alexandre Oliva
2002-03-06 16:12     ` Alexandre Oliva
2002-03-06 17:58       ` Andrew Cagney
2002-03-06 18:52         ` Alexandre Oliva
2002-03-13 11:19           ` Alexandre Oliva
2002-03-25  8:43           ` Alexandre Oliva
2001-06-06 13:20   ` Elena Zannoni [this message]
2001-06-09 16:14     ` Alexandre Oliva
     [not found]       ` <Pine.SUN.3.91.1010610111224.5638I-100000@is>
2001-06-10 14:25         ` Alexandre Oliva
2001-06-11  1:06           ` Eli Zaretskii
2001-06-11  1:33             ` Russ Allbery
2001-06-11  7:04               ` Andrew Cagney
2001-06-11  6:32         ` Elena Zannoni
2001-06-11  6:34       ` Elena Zannoni
2002-03-06 16:36         ` Alexandre Oliva
2002-03-13 11:19           ` Alexandre Oliva
2002-03-19  9:41           ` Elena Zannoni
2002-03-19 10:31             ` Alexandre Oliva
2002-03-19 10:48               ` Elena Zannoni
2002-03-19 18:23                 ` Alexandre Oliva
2002-03-19 18:39                   ` Andrew Cagney
2002-03-19 20:40                     ` Elena Zannoni
2002-03-20  0:00                       ` Alexandre Oliva
2002-03-20  7:08                         ` Elena Zannoni
2002-03-19 23:43                     ` Alexandre Oliva
2002-03-20  7:10                       ` Elena Zannoni
2002-03-20 14:27                         ` Alexandre Oliva
2002-03-25  8:49                 ` Alexandre Oliva
2001-05-29  9:30 ` Kevin Buettner
2001-05-30 19:54   ` Alexandre Oliva

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=15134.37007.772051.431723@kwikemart.cygnus.com \
    --to=ezannoni@cygnus.com \
    --cc=aoliva@redhat.com \
    --cc=gdb-patches@sources.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