diff options
author | Tom Tromey <tromey@adacore.com> | 2021-09-07 14:41:52 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-06-07 09:59:40 -0600 |
commit | 8fea1a81c7d9279a6f91e49ebacfb61e0f8ce008 (patch) | |
tree | 56272b04e80d52f561d31267d0e719db65227ea0 /gdbserver | |
parent | 265aa48b392cda4355b5875fde46b59c271cc093 (diff) | |
download | gdb-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.cc | 5 |
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 */ |