[rfa] make bfd_set_section_contents buffer param constant

Andrew Cagney ac131313@redhat.com
Mon Nov 3 14:45:00 GMT 2003


> Hello,
> 
> (almost obvious :-)
> 
> This makes the buffer parameter passed into bfd_set_section_contents constant.  The only effect is +ve - remove the need to cast away "const" when calling the method with a constant buffer.
> 
> ok?
> Andrew
> Oops, I lied.  It affect anything in binutils.  This one bit of code in GDB will require a tweak.
> 
>   xfer_fn = write ? bfd_set_section_contents : bfd_get_section_contents;

The attached is what I've checked in.

Andrew

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
URL: <https://sourceware.org/pipermail/binutils/attachments/20031103/41bcea49/attachment.ksh>


More information about the Binutils mailing list