mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-09 14:06:33 +00:00
linux: fix incorrect fallthrough
Previously, an error would have been logged twice. Bug: crashpad:30 Change-Id: I9445c022550ad14497186c6878863fbf72d8cd59 Reviewed-on: https://chromium-review.googlesource.com/911822 Reviewed-by: Mark Mentovai <mark@chromium.org> Commit-Queue: Joshua Peraza <jperaza@chromium.org>
This commit is contained in:
parent
38b20ca57e
commit
a8ad3bdbdf
@ -285,9 +285,9 @@ size_t GetGeneralPurposeRegistersAndLength(pid_t tid,
|
||||
switch (errno) {
|
||||
#if defined(ARCH_CPU_ARMEL)
|
||||
case EIO:
|
||||
if (GetGeneralPurposeRegistersLegacy(tid, context, can_log)) {
|
||||
return sizeof(context->t32);
|
||||
}
|
||||
return GetGeneralPurposeRegistersLegacy(tid, context, can_log)
|
||||
? sizeof(context->t32)
|
||||
: 0;
|
||||
#endif // ARCH_CPU_ARMEL
|
||||
default:
|
||||
PLOG_IF(ERROR, can_log) << "ptrace";
|
||||
|
Loading…
x
Reference in New Issue
Block a user