Make dwarf_expr_context::stack_empty_p return a bool

gdb/ChangeLog:

	* dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
	return type to bool.
	* dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
This commit is contained in:
Simon Marchi
2017-09-14 16:54:37 +02:00
parent 690098826e
commit eccd80d694
3 changed files with 8 additions and 2 deletions

View File

@ -272,7 +272,7 @@ dwarf_expr_context::fetch_in_stack_memory (int n)
/* Return true if the expression stack is empty. */
int
bool
dwarf_expr_context::stack_empty_p () const
{
return this->stack_len == 0;