Make dwarf_expr_context::stack_empty_p return a bool
authorSimon Marchi <simon.marchi@ericsson.com>
Thu, 14 Sep 2017 14:54:37 +0000 (16:54 +0200)
committerSimon Marchi <simon.marchi@ericsson.com>
Thu, 14 Sep 2017 14:54:37 +0000 (16:54 +0200)
gdb/ChangeLog:

* dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
return type to bool.
* dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.

gdb/ChangeLog
gdb/dwarf2expr.c
gdb/dwarf2expr.h

index 15bf1ae0f7d3bccaf23b8f56a867d85efc9418a3..f88cd6e1a45908443a58cb9251c0f5cc4703f860 100644 (file)
@@ -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>:
index 1dfbc0f3f0853d7b94bc36540f456a04e288f0d5..3a388ac6fa1f2db685fd08cf542e58c1b10dcf3e 100644 (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;
index a6aec280853f80691cfd42d851a10a1d17b1ece6..0a57beef915297d8e40855b6d73c1a5c3a1ec9c8 100644 (file)
@@ -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 ();
This page took 0.033741 seconds and 4 git commands to generate.