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:
parent
690098826e
commit
eccd80d694
@ -1,3 +1,9 @@
|
||||
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>:
|
||||
|
@ -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;
|
||||
|
@ -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 ();
|
||||
|
Loading…
Reference in New Issue
Block a user