diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:36:23 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:46:02 -0500 |
commit | c583a2520616c2736cffc389c89a48b159366e6c (patch) | |
tree | b4925f26506fcee96c16119431c01760f05db95d /gdb/frame-unwind.c | |
parent | ca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff) | |
download | gdb-users/simark/clang-format.zip gdb-users/simark/clang-format.tar.gz gdb-users/simark/clang-format.tar.bz2 |
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdb/frame-unwind.c')
-rw-r--r-- | gdb/frame-unwind.c | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/gdb/frame-unwind.c b/gdb/frame-unwind.c index b708c64..a7432f2 100644 --- a/gdb/frame-unwind.c +++ b/gdb/frame-unwind.c @@ -43,7 +43,7 @@ struct frame_unwind_table }; static const registry<gdbarch>::key<struct frame_unwind_table> - frame_unwind_data; + frame_unwind_data; /* A helper function to add an unwinder to a list. LINK says where to install the new unwinder. The new link is returned. */ @@ -91,7 +91,7 @@ get_frame_unwind_table (struct gdbarch *gdbarch) void frame_unwind_prepend_unwinder (struct gdbarch *gdbarch, - const struct frame_unwind *unwinder) + const struct frame_unwind *unwinder) { struct frame_unwind_table *table = get_frame_unwind_table (gdbarch); struct frame_unwind_table_entry *entry; @@ -111,7 +111,8 @@ frame_unwind_append_unwinder (struct gdbarch *gdbarch, struct frame_unwind_table_entry **ip; /* Find the end of the list and insert the new entry there. */ - for (ip = table->osabi_head; (*ip) != NULL; ip = &(*ip)->next); + for (ip = table->osabi_head; (*ip) != NULL; ip = &(*ip)->next) + ; (*ip) = GDBARCH_OBSTACK_ZALLOC (gdbarch, struct frame_unwind_table_entry); (*ip)->unwinder = unwinder; } @@ -122,7 +123,7 @@ frame_unwind_append_unwinder (struct gdbarch *gdbarch, static int frame_unwind_try_unwinder (frame_info_ptr this_frame, void **this_cache, - const struct frame_unwind *unwinder) + const struct frame_unwind *unwinder) { int res = 0; @@ -194,20 +195,20 @@ frame_unwind_find_by_frame (frame_info_ptr this_frame, void **this_cache) unwinder_from_target = target_get_unwinder (); if (unwinder_from_target != NULL && frame_unwind_try_unwinder (this_frame, this_cache, - unwinder_from_target)) + unwinder_from_target)) return; unwinder_from_target = target_get_tailcall_unwinder (); if (unwinder_from_target != NULL && frame_unwind_try_unwinder (this_frame, this_cache, - unwinder_from_target)) + unwinder_from_target)) return; for (entry = table->list; entry != NULL; entry = entry->next) if (frame_unwind_try_unwinder (this_frame, this_cache, entry->unwinder)) return; - internal_error (_("frame_unwind_find_by_frame failed")); + internal_error (_ ("frame_unwind_find_by_frame failed")); } /* A default frame sniffer which always accepts the frame. Used by @@ -215,8 +216,7 @@ frame_unwind_find_by_frame (frame_info_ptr this_frame, void **this_cache) int default_frame_sniffer (const struct frame_unwind *self, - frame_info_ptr this_frame, - void **this_prologue_cache) + frame_info_ptr this_frame, void **this_prologue_cache) { return 1; } @@ -224,8 +224,7 @@ default_frame_sniffer (const struct frame_unwind *self, /* The default frame unwinder stop_reason callback. */ enum unwind_stop_reason -default_frame_unwind_stop_reason (frame_info_ptr this_frame, - void **this_cache) +default_frame_unwind_stop_reason (frame_info_ptr this_frame, void **this_cache) { struct frame_id this_id = get_frame_id (this_frame); @@ -273,8 +272,7 @@ frame_unwind_got_optimized (frame_info_ptr frame, int regnum) register NEW_REGNUM. */ struct value * -frame_unwind_got_register (frame_info_ptr frame, - int regnum, int new_regnum) +frame_unwind_got_register (frame_info_ptr frame, int regnum, int new_regnum) { return value_of_register_lazy (frame, new_regnum); } @@ -296,8 +294,7 @@ frame_unwind_got_memory (frame_info_ptr frame, int regnum, CORE_ADDR addr) REGNUM has a known constant (computed) value of VAL. */ struct value * -frame_unwind_got_constant (frame_info_ptr frame, int regnum, - ULONGEST val) +frame_unwind_got_constant (frame_info_ptr frame, int regnum, ULONGEST val) { struct gdbarch *gdbarch = frame_unwind_arch (frame); enum bfd_endian byte_order = gdbarch_byte_order (gdbarch); @@ -326,8 +323,7 @@ frame_unwind_got_bytes (frame_info_ptr frame, int regnum, const gdb_byte *buf) CORE_ADDR to a target address if necessary. */ struct value * -frame_unwind_got_address (frame_info_ptr frame, int regnum, - CORE_ADDR addr) +frame_unwind_got_address (frame_info_ptr frame, int regnum, CORE_ADDR addr) { struct gdbarch *gdbarch = frame_unwind_arch (frame); struct value *reg_val; |