This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFC] solib-svr4.c gdb_byteised.
- From: Paul Schlie <schlie at comcast dot net>
- To: Manoj Iyer <manjo at austin dot ibm dot com>,"M.M. Kettenis" <m dot m dot kettenis at alumnus dot utwente dot nl>,<gdb-patches at sources dot redhat dot com>
- Date: Tue, 31 May 2005 12:06:28 -0400
- Subject: 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'.)