aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2/expr.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2023-02-08 15:36:23 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2023-02-08 15:46:02 -0500
commitc583a2520616c2736cffc389c89a48b159366e6c (patch)
treeb4925f26506fcee96c16119431c01760f05db95d /gdb/dwarf2/expr.h
parentca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff)
downloadbinutils-users/simark/clang-format.zip
binutils-users/simark/clang-format.tar.gz
binutils-users/simark/clang-format.tar.bz2
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdb/dwarf2/expr.h')
-rw-r--r--gdb/dwarf2/expr.h26
1 files changed, 12 insertions, 14 deletions
diff --git a/gdb/dwarf2/expr.h b/gdb/dwarf2/expr.h
index 44fc645..51c9ba7 100644
--- a/gdb/dwarf2/expr.h
+++ b/gdb/dwarf2/expr.h
@@ -19,7 +19,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#if !defined (DWARF2EXPR_H)
+#if !defined(DWARF2EXPR_H)
#define DWARF2EXPR_H
#include "leb128.h"
@@ -103,8 +103,10 @@ struct dwarf_expr_piece
struct dwarf_stack_value
{
dwarf_stack_value (struct value *value_, int in_stack_memory_)
- : value (value_), in_stack_memory (in_stack_memory_)
- {}
+ : value (value_),
+ in_stack_memory (in_stack_memory_)
+ {
+ }
struct value *value;
@@ -119,8 +121,7 @@ struct dwarf_stack_value
its current state and its callbacks. */
struct dwarf_expr_context
{
- dwarf_expr_context (dwarf2_per_objfile *per_objfile,
- int addr_size);
+ dwarf_expr_context (dwarf2_per_objfile *per_objfile, int addr_size);
virtual ~dwarf_expr_context () = default;
void push_address (CORE_ADDR value, bool in_stack_memory);
@@ -144,6 +145,7 @@ struct dwarf_expr_context
LONGEST subobj_offset = 0);
private:
+
/* The stack of values. */
std::vector<dwarf_stack_value> m_stack;
@@ -278,8 +280,7 @@ int dwarf_block_to_sp_offset (struct gdbarch *gdbarch, const gdb_byte *buf,
purposes. */
static inline const gdb_byte *
-gdb_read_uleb128 (const gdb_byte *buf, const gdb_byte *buf_end,
- uint64_t *r)
+gdb_read_uleb128 (const gdb_byte *buf, const gdb_byte *buf_end, uint64_t *r)
{
size_t bytes_read = read_uleb128_to_uint64 (buf, buf_end, r);
@@ -289,8 +290,7 @@ gdb_read_uleb128 (const gdb_byte *buf, const gdb_byte *buf_end,
}
static inline const gdb_byte *
-gdb_read_sleb128 (const gdb_byte *buf, const gdb_byte *buf_end,
- int64_t *r)
+gdb_read_sleb128 (const gdb_byte *buf, const gdb_byte *buf_end, int64_t *r)
{
size_t bytes_read = read_sleb128_to_int64 (buf, buf_end, r);
@@ -309,13 +309,11 @@ gdb_skip_leb128 (const gdb_byte *buf, const gdb_byte *buf_end)
return buf + bytes_read;
}
-extern const gdb_byte *safe_read_uleb128 (const gdb_byte *buf,
- const gdb_byte *buf_end,
- uint64_t *r);
+extern const gdb_byte *
+safe_read_uleb128 (const gdb_byte *buf, const gdb_byte *buf_end, uint64_t *r);
extern const gdb_byte *safe_read_sleb128 (const gdb_byte *buf,
- const gdb_byte *buf_end,
- int64_t *r);
+ const gdb_byte *buf_end, int64_t *r);
extern const gdb_byte *safe_skip_leb128 (const gdb_byte *buf,
const gdb_byte *buf_end);