forked from Imagelibrary/binutils-gdb
* block.c (contained_in): Return zero for nested functions.
* blockframe.c (block_innermost_frame): Delete unreferenced local
variable.
This commit is contained in:
@@ -52,6 +52,10 @@ contained_in (const struct block *a, const struct block *b)
|
||||
{
|
||||
if (a == b)
|
||||
return 1;
|
||||
/* If A is a function block, then A cannot be contained in B,
|
||||
except if A was inlined. */
|
||||
if (BLOCK_FUNCTION (a) != NULL && !block_inlined_p (a))
|
||||
return 0;
|
||||
a = BLOCK_SUPERBLOCK (a);
|
||||
}
|
||||
while (a != NULL);
|
||||
|
||||
Reference in New Issue
Block a user