diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2009-05-19 13:51:37 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2009-05-19 13:51:37 +0000 |
commit | fbdebf465713844d23625ae09e0ae4995418328b (patch) | |
tree | 7af6455b1a462e3cba7eb1710604a7d2ea94be37 /gdb/exec.c | |
parent | 5fd62852f643d6fa71d7a0225237c7874868b695 (diff) | |
download | gdb-fbdebf465713844d23625ae09e0ae4995418328b.zip gdb-fbdebf465713844d23625ae09e0ae4995418328b.tar.gz gdb-fbdebf465713844d23625ae09e0ae4995418328b.tar.bz2 |
gdb/
Remove the PROT parameter from openp.
* source.c (openp): Remove the parameter PROT. Assertion check MODE.
defs.h (openp): Update the prototype.
Update all the openp callers.
Diffstat (limited to 'gdb/exec.c')
-rw-r--r-- | gdb/exec.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -197,7 +197,7 @@ exec_file_attach (char *filename, int from_tty) int scratch_chan; scratch_chan = openp (getenv ("PATH"), OPF_TRY_CWD_FIRST, filename, - write_files ? O_RDWR | O_BINARY : O_RDONLY | O_BINARY, 0, + write_files ? O_RDWR | O_BINARY : O_RDONLY | O_BINARY, &scratch_pathname); #if defined(__GO32__) || defined(_WIN32) || defined(__CYGWIN__) if (scratch_chan < 0) @@ -205,7 +205,7 @@ exec_file_attach (char *filename, int from_tty) char *exename = alloca (strlen (filename) + 5); strcat (strcpy (exename, filename), ".exe"); scratch_chan = openp (getenv ("PATH"), OPF_TRY_CWD_FIRST, exename, - write_files ? O_RDWR | O_BINARY : O_RDONLY | O_BINARY, 0, + write_files ? O_RDWR | O_BINARY : O_RDONLY | O_BINARY, &scratch_pathname); } #endif |