aboutsummaryrefslogtreecommitdiff
path: root/gdbsupport
diff options
context:
space:
mode:
Diffstat (limited to 'gdbsupport')
-rw-r--r--gdbsupport/common-exceptions.h6
-rw-r--r--gdbsupport/event-loop.cc10
-rw-r--r--gdbsupport/fileio.cc42
-rw-r--r--gdbsupport/filestuff.cc10
-rw-r--r--gdbsupport/gdb-dlfcn.cc8
-rw-r--r--gdbsupport/gdb_string_view.h48
-rw-r--r--gdbsupport/job-control.cc4
-rw-r--r--gdbsupport/signals.cc8
8 files changed, 68 insertions, 68 deletions
diff --git a/gdbsupport/common-exceptions.h b/gdbsupport/common-exceptions.h
index 76d916f..bd56332 100644
--- a/gdbsupport/common-exceptions.h
+++ b/gdbsupport/common-exceptions.h
@@ -197,9 +197,9 @@ extern int exceptions_state_mc_catch (struct gdb_exception *, int);
CATCH_SJLJ (e, RETURN_MASK_ERROR)
{
switch (e.reason)
- {
- case RETURN_ERROR: ...
- }
+ {
+ case RETURN_ERROR: ...
+ }
}
END_CATCH_SJLJ
diff --git a/gdbsupport/event-loop.cc b/gdbsupport/event-loop.cc
index 9494158..a7d87c8 100644
--- a/gdbsupport/event-loop.cc
+++ b/gdbsupport/event-loop.cc
@@ -256,10 +256,10 @@ add_file_handler (int fd, handler_func *proc, gdb_client_data client_data,
{
#ifdef HAVE_POLL
/* Check to see if poll () is usable. If not, we'll switch to
- use select. This can happen on systems like
- m68k-motorola-sys, `poll' cannot be used to wait for `stdin'.
- On m68k-motorola-sysv, tty's are not stream-based and not
- `poll'able. */
+ use select. This can happen on systems like
+ m68k-motorola-sys, `poll' cannot be used to wait for `stdin'.
+ On m68k-motorola-sysv, tty's are not stream-based and not
+ `poll'able. */
fds.fd = fd;
fds.events = POLLIN;
if (poll (&fds, 1, 0) == 1 && (fds.revents & POLLNVAL))
@@ -423,7 +423,7 @@ delete_file_handler (int fd)
{
#ifdef HAVE_POLL
/* Create a new poll_fds array by copying every fd's information
- but the one we want to get rid of. */
+ but the one we want to get rid of. */
new_poll_fds = (struct pollfd *)
xmalloc ((gdb_notifier.num_fds - 1) * sizeof (struct pollfd));
diff --git a/gdbsupport/fileio.cc b/gdbsupport/fileio.cc
index 69ed426..4855eb7 100644
--- a/gdbsupport/fileio.cc
+++ b/gdbsupport/fileio.cc
@@ -30,47 +30,47 @@ host_to_fileio_error (int error)
switch (error)
{
case EPERM:
- return FILEIO_EPERM;
+ return FILEIO_EPERM;
case ENOENT:
- return FILEIO_ENOENT;
+ return FILEIO_ENOENT;
case EINTR:
- return FILEIO_EINTR;
+ return FILEIO_EINTR;
case EIO:
- return FILEIO_EIO;
+ return FILEIO_EIO;
case EBADF:
- return FILEIO_EBADF;
+ return FILEIO_EBADF;
case EACCES:
- return FILEIO_EACCES;
+ return FILEIO_EACCES;
case EFAULT:
- return FILEIO_EFAULT;
+ return FILEIO_EFAULT;
case EBUSY:
- return FILEIO_EBUSY;
+ return FILEIO_EBUSY;
case EEXIST:
- return FILEIO_EEXIST;
+ return FILEIO_EEXIST;
case ENODEV:
- return FILEIO_ENODEV;
+ return FILEIO_ENODEV;
case ENOTDIR:
- return FILEIO_ENOTDIR;
+ return FILEIO_ENOTDIR;
case EISDIR:
- return FILEIO_EISDIR;
+ return FILEIO_EISDIR;
case EINVAL:
- return FILEIO_EINVAL;
+ return FILEIO_EINVAL;
case ENFILE:
- return FILEIO_ENFILE;
+ return FILEIO_ENFILE;
case EMFILE:
- return FILEIO_EMFILE;
+ return FILEIO_EMFILE;
case EFBIG:
- return FILEIO_EFBIG;
+ return FILEIO_EFBIG;
case ENOSPC:
- return FILEIO_ENOSPC;
+ return FILEIO_ENOSPC;
case ESPIPE:
- return FILEIO_ESPIPE;
+ return FILEIO_ESPIPE;
case EROFS:
- return FILEIO_EROFS;
+ return FILEIO_EROFS;
case ENOSYS:
- return FILEIO_ENOSYS;
+ return FILEIO_ENOSYS;
case ENAMETOOLONG:
- return FILEIO_ENAMETOOLONG;
+ return FILEIO_ENAMETOOLONG;
}
return FILEIO_EUNKNOWN;
}
diff --git a/gdbsupport/filestuff.cc b/gdbsupport/filestuff.cc
index 179c425..9222e7e 100644
--- a/gdbsupport/filestuff.cc
+++ b/gdbsupport/filestuff.cc
@@ -483,15 +483,15 @@ mkdir_recursive (const char *dir)
component_end++;
/* Temporarily replace the slash with a null terminator, so we can create
- the directory up to this component. */
+ the directory up to this component. */
char saved_char = *component_end;
*component_end = '\0';
/* If we get EEXIST and the existing path is a directory, then we're
- happy. If it exists, but it's a regular file and this is not the last
- component, we'll fail at the next component. If this is the last
- component, the caller will fail with ENOTDIR when trying to
- open/create a file under that path. */
+ happy. If it exists, but it's a regular file and this is not the last
+ component, we'll fail at the next component. If this is the last
+ component, the caller will fail with ENOTDIR when trying to
+ open/create a file under that path. */
if (mkdir (start, 0700) != 0)
if (errno != EEXIST)
return false;
diff --git a/gdbsupport/gdb-dlfcn.cc b/gdbsupport/gdb-dlfcn.cc
index 1a755bd..50ba437 100644
--- a/gdbsupport/gdb-dlfcn.cc
+++ b/gdbsupport/gdb-dlfcn.cc
@@ -79,10 +79,10 @@ gdb_dlopen (const char *filename)
dw = GetLastError();
FormatMessage (FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM |
- FORMAT_MESSAGE_IGNORE_INSERTS,
- NULL, dw, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
- (LPTSTR) &buffer,
- 0, NULL);
+ FORMAT_MESSAGE_IGNORE_INSERTS,
+ NULL, dw, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
+ (LPTSTR) &buffer,
+ 0, NULL);
error (_("Could not load %s: %s"), filename, (char *) buffer);
}
diff --git a/gdbsupport/gdb_string_view.h b/gdbsupport/gdb_string_view.h
index 65124e6..0685cac 100644
--- a/gdbsupport/gdb_string_view.h
+++ b/gdbsupport/gdb_string_view.h
@@ -99,10 +99,10 @@ namespace gdb {
constexpr basic_string_view(const basic_string_view&) noexcept = default;
template<typename _Allocator>
- basic_string_view(const std::basic_string<_CharT, _Traits,
+ basic_string_view(const std::basic_string<_CharT, _Traits,
_Allocator>& __str) noexcept
- : _M_len{__str.length()}, _M_str{__str.data()}
- { }
+ : _M_len{__str.length()}, _M_str{__str.data()}
+ { }
/*constexpr*/ basic_string_view(const _CharT* __str)
: _M_len{__str == nullptr ? 0 : traits_type::length(__str)},
@@ -111,7 +111,7 @@ namespace gdb {
constexpr basic_string_view(const _CharT* __str, size_type __len)
: _M_len{__len},
- _M_str{__str}
+ _M_str{__str}
{ }
basic_string_view&
@@ -240,8 +240,8 @@ namespace gdb {
// [string.view.ops], string operations:
template<typename _Allocator>
- explicit operator std::basic_string<_CharT, _Traits, _Allocator>() const
- {
+ explicit operator std::basic_string<_CharT, _Traits, _Allocator>() const
+ {
return { this->_M_str, this->_M_len };
}
@@ -439,109 +439,109 @@ namespace gdb {
template<typename _CharT, typename _Traits>
/*constexpr*/ bool
operator==(basic_string_view<_CharT, _Traits> __x,
- basic_string_view<_CharT, _Traits> __y) noexcept
+ basic_string_view<_CharT, _Traits> __y) noexcept
{ return __x.size() == __y.size() && __x.compare(__y) == 0; }
template<typename _CharT, typename _Traits>
/*constexpr*/ bool
operator==(basic_string_view<_CharT, _Traits> __x,
- __detail::__idt<basic_string_view<_CharT, _Traits>> __y) noexcept
+ __detail::__idt<basic_string_view<_CharT, _Traits>> __y) noexcept
{ return __x.size() == __y.size() && __x.compare(__y) == 0; }
template<typename _CharT, typename _Traits>
/*constexpr*/ bool
operator==(__detail::__idt<basic_string_view<_CharT, _Traits>> __x,
- basic_string_view<_CharT, _Traits> __y) noexcept
+ basic_string_view<_CharT, _Traits> __y) noexcept
{ return __x.size() == __y.size() && __x.compare(__y) == 0; }
template<typename _CharT, typename _Traits>
/*constexpr*/ bool
operator!=(basic_string_view<_CharT, _Traits> __x,
- basic_string_view<_CharT, _Traits> __y) noexcept
+ basic_string_view<_CharT, _Traits> __y) noexcept
{ return !(__x == __y); }
template<typename _CharT, typename _Traits>
/*constexpr*/ bool
operator!=(basic_string_view<_CharT, _Traits> __x,
- __detail::__idt<basic_string_view<_CharT, _Traits>> __y) noexcept
+ __detail::__idt<basic_string_view<_CharT, _Traits>> __y) noexcept
{ return !(__x == __y); }
template<typename _CharT, typename _Traits>
/*constexpr*/ bool
operator!=(__detail::__idt<basic_string_view<_CharT, _Traits>> __x,
- basic_string_view<_CharT, _Traits> __y) noexcept
+ basic_string_view<_CharT, _Traits> __y) noexcept
{ return !(__x == __y); }
template<typename _CharT, typename _Traits>
/*constexpr*/ bool
operator< (basic_string_view<_CharT, _Traits> __x,
- basic_string_view<_CharT, _Traits> __y) noexcept
+ basic_string_view<_CharT, _Traits> __y) noexcept
{ return __x.compare(__y) < 0; }
template<typename _CharT, typename _Traits>
/*constexpr*/ bool
operator< (basic_string_view<_CharT, _Traits> __x,
- __detail::__idt<basic_string_view<_CharT, _Traits>> __y) noexcept
+ __detail::__idt<basic_string_view<_CharT, _Traits>> __y) noexcept
{ return __x.compare(__y) < 0; }
template<typename _CharT, typename _Traits>
/*constexpr*/ bool
operator< (__detail::__idt<basic_string_view<_CharT, _Traits>> __x,
- basic_string_view<_CharT, _Traits> __y) noexcept
+ basic_string_view<_CharT, _Traits> __y) noexcept
{ return __x.compare(__y) < 0; }
template<typename _CharT, typename _Traits>
/*constexpr*/ bool
operator> (basic_string_view<_CharT, _Traits> __x,
- basic_string_view<_CharT, _Traits> __y) noexcept
+ basic_string_view<_CharT, _Traits> __y) noexcept
{ return __x.compare(__y) > 0; }
template<typename _CharT, typename _Traits>
/*constexpr*/ bool
operator> (basic_string_view<_CharT, _Traits> __x,
- __detail::__idt<basic_string_view<_CharT, _Traits>> __y) noexcept
+ __detail::__idt<basic_string_view<_CharT, _Traits>> __y) noexcept
{ return __x.compare(__y) > 0; }
template<typename _CharT, typename _Traits>
/*constexpr*/ bool
operator> (__detail::__idt<basic_string_view<_CharT, _Traits>> __x,
- basic_string_view<_CharT, _Traits> __y) noexcept
+ basic_string_view<_CharT, _Traits> __y) noexcept
{ return __x.compare(__y) > 0; }
template<typename _CharT, typename _Traits>
/*constexpr*/ bool
operator<=(basic_string_view<_CharT, _Traits> __x,
- basic_string_view<_CharT, _Traits> __y) noexcept
+ basic_string_view<_CharT, _Traits> __y) noexcept
{ return __x.compare(__y) <= 0; }
template<typename _CharT, typename _Traits>
/*constexpr*/ bool
operator<=(basic_string_view<_CharT, _Traits> __x,
- __detail::__idt<basic_string_view<_CharT, _Traits>> __y) noexcept
+ __detail::__idt<basic_string_view<_CharT, _Traits>> __y) noexcept
{ return __x.compare(__y) <= 0; }
template<typename _CharT, typename _Traits>
/*constexpr*/ bool
operator<=(__detail::__idt<basic_string_view<_CharT, _Traits>> __x,
- basic_string_view<_CharT, _Traits> __y) noexcept
+ basic_string_view<_CharT, _Traits> __y) noexcept
{ return __x.compare(__y) <= 0; }
template<typename _CharT, typename _Traits>
/*constexpr*/ bool
operator>=(basic_string_view<_CharT, _Traits> __x,
- basic_string_view<_CharT, _Traits> __y) noexcept
+ basic_string_view<_CharT, _Traits> __y) noexcept
{ return __x.compare(__y) >= 0; }
template<typename _CharT, typename _Traits>
/*constexpr*/ bool
operator>=(basic_string_view<_CharT, _Traits> __x,
- __detail::__idt<basic_string_view<_CharT, _Traits>> __y) noexcept
+ __detail::__idt<basic_string_view<_CharT, _Traits>> __y) noexcept
{ return __x.compare(__y) >= 0; }
template<typename _CharT, typename _Traits>
/*constexpr*/ bool
operator>=(__detail::__idt<basic_string_view<_CharT, _Traits>> __x,
- basic_string_view<_CharT, _Traits> __y) noexcept
+ basic_string_view<_CharT, _Traits> __y) noexcept
{ return __x.compare(__y) >= 0; }
// basic_string_view typedef names
diff --git a/gdbsupport/job-control.cc b/gdbsupport/job-control.cc
index 381c5f0..d3c57fe 100644
--- a/gdbsupport/job-control.cc
+++ b/gdbsupport/job-control.cc
@@ -46,8 +46,8 @@ gdb_setpgid ()
{
#ifdef HAVE_SETPGID
/* The call setpgid (0, 0) is supposed to work and mean the same
- thing as this, but on Ultrix 4.2A it fails with EPERM (and
- setpgid (getpid (), getpid ()) succeeds). */
+ thing as this, but on Ultrix 4.2A it fails with EPERM (and
+ setpgid (getpid (), getpid ()) succeeds). */
retval = setpgid (getpid (), getpid ());
#else
#ifdef HAVE_SETPGRP
diff --git a/gdbsupport/signals.cc b/gdbsupport/signals.cc
index 485e0f0..b9fe900 100644
--- a/gdbsupport/signals.cc
+++ b/gdbsupport/signals.cc
@@ -601,20 +601,20 @@ do_gdb_signal_to_host (enum gdb_signal oursig,
&& oursig <= GDB_SIGNAL_REALTIME_63)
{
/* This block of signals is continuous, and
- GDB_SIGNAL_REALTIME_33 is 33 by definition. */
+ GDB_SIGNAL_REALTIME_33 is 33 by definition. */
retsig = (int) oursig - (int) GDB_SIGNAL_REALTIME_33 + 33;
}
else if (oursig == GDB_SIGNAL_REALTIME_32)
{
/* GDB_SIGNAL_REALTIME_32 isn't contiguous with
- GDB_SIGNAL_REALTIME_33. It is 32 by definition. */
+ GDB_SIGNAL_REALTIME_33. It is 32 by definition. */
retsig = 32;
}
else if (oursig >= GDB_SIGNAL_REALTIME_64
&& oursig <= GDB_SIGNAL_REALTIME_127)
{
/* This block of signals is continuous, and
- GDB_SIGNAL_REALTIME_64 is 64 by definition. */
+ GDB_SIGNAL_REALTIME_64 is 64 by definition. */
retsig = (int) oursig - (int) GDB_SIGNAL_REALTIME_64 + 64;
}
@@ -643,7 +643,7 @@ gdb_signal_to_host (enum gdb_signal oursig)
if (!oursig_ok)
{
/* The user might be trying to do "signal SIGSAK" where this system
- doesn't have SIGSAK. */
+ doesn't have SIGSAK. */
warning (_("Signal %s does not exist on this system."),
gdb_signal_to_name (oursig));
return 0;