This is the mail archive of the gdb-patches@sources.redhat.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]
Other format: [Raw text]

Re: [RFC] solib-svr4.c gdb_byteised.


> gcc4.0 complained abt the signedness...
>
> reversing gdb_byte to char for l_name_buf

Unfortunately because GCC is schizophrenic.

As although it has no problems assigning variables to each other which
only differ in sign-ness (which may alter a value), it feels compelled
warn about operations on pointers to such values (which are harmless).

(arguably it seems that the best remedy would be to correct GCC, not attempt
to appease it; as alternatively if all char's become gdb_byte, then might as
well revert gdb_byte use, and simply compile with 'unsigned char'.)






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