aboutsummaryrefslogtreecommitdiff
path: root/gdb/inf-child.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/inf-child.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/inf-child.c')
-rw-r--r--gdb/inf-child.c26
1 files changed, 12 insertions, 14 deletions
diff --git a/gdb/inf-child.c b/gdb/inf-child.c
index 42ff2ac..f1d018d 100644
--- a/gdb/inf-child.c
+++ b/gdb/inf-child.c
@@ -39,11 +39,9 @@
#include <fcntl.h>
#include <unistd.h>
-static const target_info inf_child_target_info = {
- "native",
- N_("Native process"),
- N_("Native process (started by the \"run\" command).")
-};
+static const target_info inf_child_target_info
+ = { "native", N_ ("Native process"),
+ N_ ("Native process (started by the \"run\" command).") };
const target_info &
inf_child_target::info () const
@@ -59,15 +57,14 @@ host_status_to_waitstatus (int hoststatus)
if (WIFEXITED (hoststatus))
return target_waitstatus ().set_exited (WEXITSTATUS (hoststatus));
else if (!WIFSTOPPED (hoststatus))
- return target_waitstatus ().set_signalled
- (gdb_signal_from_host (WTERMSIG (hoststatus)));
+ return target_waitstatus ().set_signalled (
+ gdb_signal_from_host (WTERMSIG (hoststatus)));
else
- return target_waitstatus ().set_stopped
- (gdb_signal_from_host (WSTOPSIG (hoststatus)));
+ return target_waitstatus ().set_stopped (
+ gdb_signal_from_host (WSTOPSIG (hoststatus)));
}
-inf_child_target::~inf_child_target ()
-{}
+inf_child_target::~inf_child_target () {}
void
inf_child_target::post_attach (int pid)
@@ -170,7 +167,7 @@ void
inf_child_target::disconnect (const char *args, int from_tty)
{
if (args != NULL)
- error (_("Argument given to \"disconnect\"."));
+ error (_ ("Argument given to \"disconnect\"."));
/* This offers to detach/kill current inferiors, and then pops all
targets. */
@@ -310,7 +307,8 @@ inf_child_target::fileio_pread (int fd, gdb_byte *read_buf, int len,
/* Implementation of to_fileio_fstat. */
int
-inf_child_target::fileio_fstat (int fd, struct stat *sb, fileio_error *target_errno)
+inf_child_target::fileio_fstat (int fd, struct stat *sb,
+ fileio_error *target_errno)
{
int ret;
@@ -358,7 +356,7 @@ inf_child_target::fileio_readlink (struct inferior *inf, const char *filename,
{
/* We support readlink only on systems that also provide a compile-time
maximum path length (PATH_MAX), at least for now. */
-#if defined (PATH_MAX)
+#if defined(PATH_MAX)
char buf[PATH_MAX];
int len;