Move exit_status_set_internal_vars out of GLOBAL_CURDIR
Fixes these testsuite fails on Windows: FAIL: gdb.base/shell.exp: shell success exitcode FAIL: gdb.base/shell.exp: shell fail exitcode The convenience variables $_shell_exitcode and $_shell_exitsignal don't depend on the GLOBAL_CURDIR define. gdb/ChangeLog: 2020-05-27 Hannes Domani <ssbssa@yahoo.de> * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
This commit is contained in:
parent
96445f0b66
commit
c17ace4397
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2020-05-27 Hannes Domani <ssbssa@yahoo.de>
|
||||||
|
|
||||||
|
* cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
|
||||||
|
|
||||||
2020-05-27 Hannes Domani <ssbssa@yahoo.de>
|
2020-05-27 Hannes Domani <ssbssa@yahoo.de>
|
||||||
|
|
||||||
* exec.c (exec_file_attach): Use errno value of first openp failure.
|
* exec.c (exec_file_attach): Use errno value of first openp failure.
|
||||||
|
|
|
@ -830,8 +830,8 @@ shell_escape (const char *arg, int from_tty)
|
||||||
/* Make sure to return to the directory GDB thinks it is, in case
|
/* Make sure to return to the directory GDB thinks it is, in case
|
||||||
the shell command we just ran changed it. */
|
the shell command we just ran changed it. */
|
||||||
chdir (current_directory);
|
chdir (current_directory);
|
||||||
exit_status_set_internal_vars (rc);
|
|
||||||
#endif
|
#endif
|
||||||
|
exit_status_set_internal_vars (rc);
|
||||||
#else /* Can fork. */
|
#else /* Can fork. */
|
||||||
int status, pid;
|
int status, pid;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue