aboutsummaryrefslogtreecommitdiff
path: root/gdb/x86-bsd-nat.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/x86-bsd-nat.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/x86-bsd-nat.c')
-rw-r--r--gdb/x86-bsd-nat.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/x86-bsd-nat.c b/gdb/x86-bsd-nat.c
index c55ab5b..b468f30 100644
--- a/gdb/x86-bsd-nat.c
+++ b/gdb/x86-bsd-nat.c
@@ -31,7 +31,6 @@
#include "x86-nat.h"
#include "x86-bsd-nat.h"
#include "inf-ptrace.h"
-
/* Support for debug registers. */
@@ -67,7 +66,7 @@ x86bsd_dr_get (ptid_t ptid, int regnum)
struct dbreg dbregs;
if (gdb_ptrace (PT_GETDBREGS, ptid, (PTRACE_TYPE_ARG3) &dbregs) == -1)
- perror_with_name (_("Couldn't read debug registers"));
+ perror_with_name (_ ("Couldn't read debug registers"));
return DBREG_DRX ((&dbregs), regnum);
}
@@ -78,7 +77,7 @@ x86bsd_dr_set (ptid_t ptid, int regnum, unsigned long value)
struct dbreg dbregs;
if (gdb_ptrace (PT_GETDBREGS, ptid, (PTRACE_TYPE_ARG3) &dbregs) == -1)
- perror_with_name (_("Couldn't get debug registers"));
+ perror_with_name (_ ("Couldn't get debug registers"));
/* For some mysterious reason, some of the reserved bits in the
debug control register get set. Mask these off, otherwise the
@@ -89,9 +88,9 @@ x86bsd_dr_set (ptid_t ptid, int regnum, unsigned long value)
for (thread_info *thread : current_inferior ()->non_exited_threads ())
{
- if (gdb_ptrace (PT_SETDBREGS, thread->ptid,
- (PTRACE_TYPE_ARG3) &dbregs) == -1)
- perror_with_name (_("Couldn't write debug registers"));
+ if (gdb_ptrace (PT_SETDBREGS, thread->ptid, (PTRACE_TYPE_ARG3) &dbregs)
+ == -1)
+ perror_with_name (_ ("Couldn't write debug registers"));
}
}
@@ -130,6 +129,7 @@ x86bsd_dr_get_control (void)
#endif /* PT_GETDBREGS */
void _initialize_x86_bsd_nat ();
+
void
_initialize_x86_bsd_nat ()
{