aboutsummaryrefslogtreecommitdiff
path: root/gdbserver
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2021-09-07 14:41:52 -0600
committerTom Tromey <tromey@adacore.com>2022-06-07 09:59:40 -0600
commit8fea1a81c7d9279a6f91e49ebacfb61e0f8ce008 (patch)
tree56272b04e80d52f561d31267d0e719db65227ea0 /gdbserver
parent265aa48b392cda4355b5875fde46b59c271cc093 (diff)
downloadgdb-8fea1a81c7d9279a6f91e49ebacfb61e0f8ce008.zip
gdb-8fea1a81c7d9279a6f91e49ebacfb61e0f8ce008.tar.gz
gdb-8fea1a81c7d9279a6f91e49ebacfb61e0f8ce008.tar.bz2
Introduce wrapper for CreateProcess
This is a small refactoring that introduces a wrapper for the Windows CreateProcess function. This is done to make the next patch a bit simpler.
Diffstat (limited to 'gdbserver')
-rw-r--r--gdbserver/win32-low.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/gdbserver/win32-low.cc b/gdbserver/win32-low.cc
index f941e8d..00ce2a5 100644
--- a/gdbserver/win32-low.cc
+++ b/gdbserver/win32-low.cc
@@ -578,11 +578,8 @@ create_process (const char *program, char *args,
strcpy (program_and_args, program);
strcat (program_and_args, " ");
strcat (program_and_args, args);
- ret = CreateProcessA (program, /* image name */
+ ret = create_process (program, /* image name */
program_and_args, /* command line */
- NULL, /* security */
- NULL, /* thread */
- TRUE, /* inherit handles */
flags, /* start flags */
NULL, /* environment */
/* current directory */