This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: use const struct block * in more places
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 03 Dec 2012 12:48:38 -0700
- Subject: Re: RFC: use const struct block * in more places
- References: <87ehjggpqm.fsf@fleche.redhat.com>
>>>>> "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