This is the mail archive of the gdb-patches@sourceware.org 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: use const struct block * in more places


>>>>> "Tom" == Tom Tromey <tromey@redhat.com> writes:

Tom> Since a block is read-only once it is fully initialized, I think it is
Tom> preferable to pass around 'const struct block *' in most places.
...
Tom> I plan to commit it in the absence of comments -- I have the vague
Tom> feeling that constification is somehow controversial in gdb, but maybe I
Tom> am mixing up my controversies.  I personally think it is valuable,
Tom> especially in gdb, because gdb has a number of "should-be-read-only"
Tom> data structures.

I'm checking this in now.

Tom


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