Skip to content

Commit

Permalink
Rename labels
Browse files Browse the repository at this point in the history
  • Loading branch information
MatkovIvan committed Mar 25, 2021
1 parent 610ecb6 commit df95c69
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Source/PLCrashFrameCompactUnwind.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ plframe_error_t plframe_cursor_read_compact_unwind (task_t task,
if (err != PLCRASH_ESUCCESS) {
PLCF_DEBUG("Could not parse the compact unwind info section for image '%s': %d", image->macho_image.name, err);
result = PLFRAME_EINVAL;
goto cleanup_2;
goto cleanup_mobject;
}

/* Find the encoding entry (if any) and free the reader */
Expand All @@ -101,7 +101,7 @@ plframe_error_t plframe_cursor_read_compact_unwind (task_t task,
if (err != PLCRASH_ESUCCESS) {
PLCF_DEBUG("Did not find CFE entry for PC 0x%" PRIx64 ": %d", (uint64_t) pc, err);
result = PLFRAME_ENOTSUP;
goto cleanup_2;
goto cleanup_mobject;
}

/* Decode the entry */
Expand All @@ -110,13 +110,13 @@ plframe_error_t plframe_cursor_read_compact_unwind (task_t task,
if (err != PLCRASH_ESUCCESS) {
PLCF_DEBUG("Could not decode CFE encoding 0x%" PRIx32 " for PC 0x%" PRIx64 ": %d", encoding, (uint64_t) pc, err);
result = PLFRAME_ENOTSUP;
goto cleanup_2;
goto cleanup_mobject;
}

/* Skip entries for which no unwind information is unavailable */
if (plcrash_async_cfe_entry_type(&entry) == PLCRASH_ASYNC_CFE_ENTRY_TYPE_NONE) {
result = PLFRAME_ENOFRAME;
goto cleanup_3;
goto cleanup_cfe_entry;
}

/* Compute the in-core function address */
Expand All @@ -125,7 +125,7 @@ plframe_error_t plframe_cursor_read_compact_unwind (task_t task,
PLCF_DEBUG("The provided function base (0x%" PRIx64 ") plus header address (0x%" PRIx64 ") will overflow pl_vm_address_t",
(uint64_t) function_base, (uint64_t) image->macho_image.header_addr);
result = PLFRAME_EINVAL;
goto cleanup_3;
goto cleanup_cfe_entry;
}

/* Apply the frame delta -- this may fail. */
Expand All @@ -136,9 +136,9 @@ plframe_error_t plframe_cursor_read_compact_unwind (task_t task,
result = PLFRAME_ENOFRAME;
}

cleanup_3:
cleanup_cfe_entry:
plcrash_async_cfe_entry_free(&entry);
cleanup_2:
cleanup_mobject:
plcrash_async_mobject_free(&unwind_mobj);
cleanup:
plcrash_async_image_list_set_reading(image_list, false);
Expand Down

0 comments on commit df95c69

Please sign in to comment.