This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[Fwd: [Fwd: gdb 20000413 compile problem and strange SEGV problem]]


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]