Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Elena Zannoni <ezannoni@redhat.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: Tue, 19 Mar 2002 09:41:00 -0000	[thread overview]
Message-ID: <15511.30770.115770.867801@localhost.redhat.com> (raw)
In-Reply-To: <orit89qkmo.fsf@free.redhat.lsd.ic.unicamp.br>


OK, I think this is fine now, but you forgot one PTR in defs.h, see
below.

Check it in, thanks.

Elena


Alexandre Oliva writes:
 > On Jun 11, 2001, Elena Zannoni <ezannoni@cygnus.com> wrote:
 > 
 > > Alexandre Oliva writes:
 > >> On Jun  6, 2001, Elena Zannoni <ezannoni@cygnus.com> wrote:
 > >> 
 > >> > Alex, no. Sorry, but we are trying to get rid of PTR in the
 > >> > gdb sources [as Kevin pointed out in another message].
 > >> 
 > >> Sorry.
 > >> 
 > >> > 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).
 > >> 
 > >> Fixed as follows.  Not tested on all relevant architectures.  I'd do
 > >> that after next Monday's GCC snapshot, since I've been building GDB
 > >> along with GDB lately.  Ok to install?
 > 
 > > Yes, but with the memset calls changes, i.e. remove the casts.
 > 
 > >> Index: gdb/ChangeLog
 > >> from  Alexandre Oliva  <aoliva@redhat.com>
 > >> 
 > >> * coffread.c: Remove redundant static declarations.  Replace
 > >> occurrences of `PTR' with `void *'.
 > >> * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
 > 
 > Ok, here's an updated patch, that applies cleanly into mainline and
 > 5.2 branch, and that adds two more PTR->void* fixes that slipped in
 > after my original clean-up.  Oh, and that removes the (void *) casts
 > in memset calls that I had introduced in my previous patch.  Ok to
 > install in 5.2 and mainline?  With this and the other 2 patches I
 > posted today (for gdb/defs.h and expect), gdb 5.2 builds successfully
 > with OSF 4.0's cc.
 > 
 > Index: gdb/ChangeLog
 > from  Alexandre Oliva  <aoliva@redhat.com>
 > 	* coffread.c: Remove redundant static declarations.  Replace
 > 	occurrences of `PTR' with `void *'.
 > 	* elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
 > 	* top.h (quit_cover): Likewise.
 > 	* defs.h (catch_errors): Likewise.
 > 

 > Index: gdb/defs.h
 > ===================================================================
 > RCS file: /cvs/src/src/gdb/defs.h,v
 > retrieving revision 1.81
 > diff -u -p -r1.81 defs.h
 > --- gdb/defs.h 2002/02/26 03:29:55 1.81
 > +++ gdb/defs.h 2002/03/07 00:23:25
 > @@ -1152,7 +1152,7 @@ extern int catch_exceptions (struct ui_o
 >     This function is superseeded by catch_exceptions().  */
 >  
 >  typedef int (catch_errors_ftype) (PTR);
                                      ^^^^

 > -extern int catch_errors (catch_errors_ftype *, PTR, char *, return_mask);
 > +extern int catch_errors (catch_errors_ftype *, void *, char *, return_mask);
 >  
 >  /* Template to catch_errors() that wraps calls to command
 >     functions. */
 > 
 > -- 
 > 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                Professional serial bug killer


  parent reply	other threads:[~2002-03-19 17:41 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
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 [this message]
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=15511.30770.115770.867801@localhost.redhat.com \
    --to=ezannoni@redhat.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