[Fwd: [Fwd: gdb 20000413 compile problem and strange SEGV problem]]
Andrew Cagney
ac131313@cygnus.com
Sat Apr 22 00:06:00 GMT 2000
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
More information about the Gdb-patches
mailing list