This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
[Fwd: [Fwd: gdb 20000413 compile problem and strange SEGV problem]]
- To: Tim Mooney <mooney at dogbert dot cc dot ndsu dot nodak dot edu>, GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- Subject: [Fwd: [Fwd: gdb 20000413 compile problem and strange SEGV problem]]
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Sat, 22 Apr 2000 17:04:59 +1000
- Organization: Cygnus Solutions
By ``object'' did you mean a warning or an error?
> I downloaded gdb+dejagnu-20000413.tar.bz2 and encountered one problem building
> it with the Compaq compiler: the compiler objected to comparisons between
> {current,debug}_target.to_rcmd and tcomplain (which was being case to (void
> *)). I'm not sure why the cast to (void *) is there at all, but my first
> thought was to try casting tcomplain to be a pointer to a function,
> and that worked. This is the patch I used:
Your change makes sense. It was cast to (void*) since the functions
to_rcmd() and tcomplain() were not type incompatible. The compaq
compiler is more picky about such things.
Andrew