Re: [PATCH] [gdb] Fix hard-coded constants in buildsym_compunit::make_blockvector

Tom Tromey <[email protected]>
Newsgroups gmane.comp.gdb.patches
Message-ID <[email protected]>
>>>>> "Tom" == Tom de Vries <[email protected]> writes:

Tom> Fix this by rewriting it into an ordinary descending for loop, and using
Tom> symbolic constant GLOBAL_BLOCK to avoid the global block:
Tom> ...
Tom>       for (int j = num_blocks - 1; j > GLOBAL_BLOCK; --j)
Tom>  	{
Tom>  	  struct block *b = blockvector->block (j);

Thanks.
Approved-By: Tom Tromey <[email protected]>

Tom
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.