diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2017-09-14 16:54:37 +0200 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2017-09-14 16:54:37 +0200 |
commit | eccd80d69487586578b7e085d8bd48657a4d7322 (patch) | |
tree | 36d3d5a9beee3e994704bb1fccba7a5c1413426d | |
parent | 690098826e36cbadf618e15eed5f6ebf606cbf74 (diff) | |
download | gdb-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.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/dwarf2expr.c | 2 | ||||
-rw-r--r-- | gdb/dwarf2expr.h | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 15bf1ae..f88cd6e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2017-09-14 Simon Marchi <simon.marchi@ericsson.com> + * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change + return type to bool. + * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise. + +2017-09-14 Simon Marchi <simon.marchi@ericsson.com> + * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>: Change type to bool. (dwarf_stack_value) <in_stack_memory>: Likewise. 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; diff --git a/gdb/dwarf2expr.h b/gdb/dwarf2expr.h index a6aec28..0a57bee 100644 --- a/gdb/dwarf2expr.h +++ b/gdb/dwarf2expr.h @@ -251,7 +251,7 @@ private: struct type *address_type () const; void grow_stack (size_t need); void push (struct value *value, bool in_stack_memory); - int stack_empty_p () const; + bool stack_empty_p () const; void add_piece (ULONGEST size, ULONGEST offset); void execute_stack_op (const gdb_byte *op_ptr, const gdb_byte *op_end); void pop (); |