Skip to content

Commit

Permalink
linux_ptrace_dumper: Fix type definition
Browse files Browse the repository at this point in the history
Fix a type definition, so it doesn't collide if the similar
type is already defined in the sysroot headers.

Test: Build for Android/Linux.
Bug: Internal 322205293
Change-Id: I3453de725083b01f2e69a61a7fc948f9f8ca5eca
Signed-off-by: Volodymyr Riazantsev <[email protected]>
Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/5251488
Reviewed-by: Joshua Peraza <[email protected]>
  • Loading branch information
riazantsev authored and Joshua Peraza committed Jan 30, 2024
1 parent 5a0e1e3 commit 38ac9ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/client/linux/minidump_writer/linux_ptrace_dumper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
* User specific VFP registers. If only VFPv2 is present, registers 16 to 31
* are ignored by the ptrace system call and the signal handler.
*/
typedef struct user_vfp {
typedef struct {
unsigned long long fpregs[32];
unsigned long fpscr;
// Kernel just appends fpscr to the copy of fpregs, so we need to force
Expand Down Expand Up @@ -204,7 +204,7 @@ bool LinuxPtraceDumper::ReadRegisterSet(ThreadInfo* info, pid_t tid)
switch (errno) {
case EIO:
case EINVAL:
user_vfp vfp;
user_vfp_t vfp;
struct iovec io;
io.iov_base = &vfp;
io.iov_len = sizeof(vfp);
Expand Down Expand Up @@ -252,7 +252,7 @@ bool LinuxPtraceDumper::ReadRegisters(ThreadInfo* info, pid_t tid) {
switch (errno) {
case EIO:
case EINVAL:
user_vfp vfp;
user_vfp_t vfp;
struct iovec io;
io.iov_base = &vfp;
io.iov_len = sizeof(vfp);
Expand Down

0 comments on commit 38ac9ae

Please sign in to comment.