diff options
Diffstat (limited to 'gdb/block.c')
-rw-r--r-- | gdb/block.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/block.c b/gdb/block.c index 070d3f7..fc6bfb9 100644 --- a/gdb/block.c +++ b/gdb/block.c @@ -79,9 +79,9 @@ contained_in (const struct block *a, const struct block *b, if (a == b) return true; /* If A is a function block, then A cannot be contained in B, - except if A was inlined. */ + except if A was inlined. */ if (!allow_nested && BLOCK_FUNCTION (a) != NULL && !block_inlined_p (a)) - return false; + return false; a = BLOCK_SUPERBLOCK (a); } while (a != NULL); @@ -879,14 +879,14 @@ block_find_non_opaque_type_preferred (struct symbol *sym, void *data) struct blockranges * make_blockranges (struct objfile *objfile, - const std::vector<blockrange> &rangevec) + const std::vector<blockrange> &rangevec) { struct blockranges *blr; size_t n = rangevec.size(); blr = (struct blockranges *) obstack_alloc (&objfile->objfile_obstack, - sizeof (struct blockranges) + sizeof (struct blockranges) + (n - 1) * sizeof (struct blockrange)); blr->nranges = n; |