aboutsummaryrefslogtreecommitdiff
path: root/gdbsupport/gdb-dlfcn.cc
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 /gdbsupport/gdb-dlfcn.cc
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 'gdbsupport/gdb-dlfcn.cc')
-rw-r--r--gdbsupport/gdb-dlfcn.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/gdbsupport/gdb-dlfcn.cc b/gdbsupport/gdb-dlfcn.cc
index ee17536..8fd6967 100644
--- a/gdbsupport/gdb-dlfcn.cc
+++ b/gdbsupport/gdb-dlfcn.cc
@@ -46,7 +46,8 @@ gdb_dlsym (const gdb_dlhandle_up &handle, const char *symbol)
void
dlclose_deleter::operator() (void *handle) const
{
- gdb_assert_not_reached ("gdb_dlclose should not be called on this platform.");
+ gdb_assert_not_reached (
+ "gdb_dlclose should not be called on this platform.");
}
int
@@ -70,21 +71,20 @@ gdb_dlopen (const char *filename)
return gdb_dlhandle_up (result);
#ifdef HAVE_DLFCN_H
- error (_("Could not load %s: %s"), filename, dlerror());
+ error (_ ("Could not load %s: %s"), filename, dlerror ());
#else
{
LPVOID buffer;
DWORD dw;
- dw = GetLastError();
+ 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);
+ FormatMessage (FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM
+ | FORMAT_MESSAGE_IGNORE_INSERTS,
+ NULL, dw, MAKELANGID (LANG_NEUTRAL, SUBLANG_DEFAULT),
+ (LPTSTR) &buffer, 0, NULL);
- error (_("Could not load %s: %s"), filename, (char *) buffer);
+ error (_ ("Could not load %s: %s"), filename, (char *) buffer);
}
#endif
}