aboutsummaryrefslogtreecommitdiff
path: root/gdb/nat/amd64-linux-siginfo.c
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/nat/amd64-linux-siginfo.c
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/nat/amd64-linux-siginfo.c')
-rw-r--r--gdb/nat/amd64-linux-siginfo.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/gdb/nat/amd64-linux-siginfo.c b/gdb/nat/amd64-linux-siginfo.c
index 00bb5e5..a9a34d6 100644
--- a/gdb/nat/amd64-linux-siginfo.c
+++ b/gdb/nat/amd64-linux-siginfo.c
@@ -60,6 +60,7 @@ struct nat_siginfo_t
union
{
int _pad[((128 / sizeof (int)) - 4)];
+
/* kill() */
struct
{
@@ -98,6 +99,7 @@ struct nat_siginfo_t
{
nat_uptr_t _addr;
short int _addr_lsb;
+
struct
{
nat_uptr_t _lower;
@@ -187,6 +189,7 @@ struct compat_siginfo_t
{
unsigned int _addr;
short int _addr_lsb;
+
struct
{
unsigned int _lower;
@@ -293,7 +296,7 @@ struct __attribute__ ((__aligned__ (8))) compat_x32_siginfo_t
#endif
#ifndef SEGV_BNDERR
-#define SEGV_BNDERR 3
+#define SEGV_BNDERR 3
#endif
/* The type of the siginfo object the kernel returns in
@@ -333,8 +336,7 @@ compat_siginfo_from_siginfo (compat_siginfo_t *to, const siginfo_t *from)
#ifndef __ILP32__
/* The struct compat_x32_siginfo_t doesn't contain
cpt_si_lower/cpt_si_upper. */
- else if (to->si_code == SEGV_BNDERR
- && to->si_signo == SIGSEGV)
+ else if (to->si_code == SEGV_BNDERR && to->si_signo == SIGSEGV)
{
to->cpt_si_addr = from_ptrace.cpt_si_addr;
to->cpt_si_lower = from_ptrace.cpt_si_lower;
@@ -503,9 +505,6 @@ compat_x32_siginfo_from_siginfo (compat_x32_siginfo_t *to,
}
}
-
-
-
/* Convert the compatible x32 siginfo into system siginfo. */
static void
siginfo_from_compat_x32_siginfo (siginfo_t *to,
@@ -591,11 +590,9 @@ amd64_linux_siginfo_fixup_common (siginfo_t *ptrace, gdb_byte *inf,
else if (mode == FIXUP_X32)
{
if (direction == 0)
- compat_x32_siginfo_from_siginfo ((compat_x32_siginfo_t *) inf,
- ptrace);
+ compat_x32_siginfo_from_siginfo ((compat_x32_siginfo_t *) inf, ptrace);
else
- siginfo_from_compat_x32_siginfo (ptrace,
- (compat_x32_siginfo_t *) inf);
+ siginfo_from_compat_x32_siginfo (ptrace, (compat_x32_siginfo_t *) inf);
return 1;
}