projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Delete trailing whitespace at end of lines.
[pspp-builds.git]
/
src
/
ui
/
debugger.c
diff --git
a/src/ui/debugger.c
b/src/ui/debugger.c
index 7b9c0b925fb73215d04af10992a88777a407ee6a..7f15f19a4d08ec59f6f5e6adde082f2975f399bd 100644
(file)
--- a/
src/ui/debugger.c
+++ b/
src/ui/debugger.c
@@
-28,7
+28,7
@@
#include <stdlib.h>
#include <sys/wait.h>
#include <stdlib.h>
#include <sys/wait.h>
-/* Fork, start gdb and connect to the parent process.
+/* Fork, start gdb and connect to the parent process.
If that happens successfully, then this function does not return,
but exits with EXIT_FAILURE. Otherwise it returns.
*/
If that happens successfully, then this function does not return,
but exits with EXIT_FAILURE. Otherwise it returns.
*/
@@
-40,12
+40,12
@@
connect_debugger (void)
snprintf (pidstr, 20, "%d", getpid ());
pid = fork ();
snprintf (pidstr, 20, "%d", getpid ());
pid = fork ();
- if ( pid == -1 )
+ if ( pid == -1 )
{
perror ("Cannot fork");
return ;
}
{
perror ("Cannot fork");
return ;
}
- if ( pid == 0 )
+ if ( pid == 0 )
{
/* child */
execlp ("gdb", "gdb", "-p", pidstr, NULL);
{
/* child */
execlp ("gdb", "gdb", "-p", pidstr, NULL);
@@
-56,10
+56,10
@@
connect_debugger (void)
{
int status;
wait (&status);
{
int status;
wait (&status);
- if ( EXIT_SUCCESS != WEXITSTATUS (status) )
+ if ( EXIT_SUCCESS != WEXITSTATUS (status) )
return ;
}
return ;
}
-
+
exit (EXIT_FAILURE);
}
exit (EXIT_FAILURE);
}
@@
-67,8
+67,8
@@
connect_debugger (void)
/* Don't know how to connect to gdb.
Just return.
*/
/* Don't know how to connect to gdb.
Just return.
*/
-void
-connect_debugger (void)
+void
+connect_debugger (void)
{
}
#endif /* !(HAVE_SYS_TYPES_H && HAVE_SYS_WAIT_H) */
{
}
#endif /* !(HAVE_SYS_TYPES_H && HAVE_SYS_WAIT_H) */