aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2expr.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2017-09-14 16:54:37 +0200
committerSimon Marchi <simon.marchi@ericsson.com>2017-09-14 16:54:37 +0200
commiteccd80d69487586578b7e085d8bd48657a4d7322 (patch)
tree36d3d5a9beee3e994704bb1fccba7a5c1413426d /gdb/dwarf2expr.c
parent690098826e36cbadf618e15eed5f6ebf606cbf74 (diff)
downloadgdb-eccd80d69487586578b7e085d8bd48657a4d7322.zip
gdb-eccd80d69487586578b7e085d8bd48657a4d7322.tar.gz
gdb-eccd80d69487586578b7e085d8bd48657a4d7322.tar.bz2
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.
Diffstat (limited to 'gdb/dwarf2expr.c')
-rw-r--r--gdb/dwarf2expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2expr.c b/gdb/dwarf2expr.c
index 1dfbc0f..3a388ac 100644
--- a/gdb/dwarf2expr.c
+++ b/gdb/dwarf2expr.c
@@ -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;