diff options
author | Hannes Domani <ssbssa@yahoo.de> | 2020-05-23 19:45:44 +0200 |
---|---|---|
committer | Hannes Domani <ssbssa@yahoo.de> | 2020-05-27 19:42:53 +0200 |
commit | c17ace4397c73bcdeb616f1b854a1cf8a8b6579c (patch) | |
tree | 3b877c5939ed9b84e48559861db258020796d9ce /gdb/cli | |
parent | 96445f0b66af20343e2ffed08c4da8cfac101a03 (diff) | |
download | gdb-c17ace4397c73bcdeb616f1b854a1cf8a8b6579c.zip gdb-c17ace4397c73bcdeb616f1b854a1cf8a8b6579c.tar.gz gdb-c17ace4397c73bcdeb616f1b854a1cf8a8b6579c.tar.bz2 |
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.
Diffstat (limited to 'gdb/cli')
-rw-r--r-- | gdb/cli/cli-cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index fdc8758..cd6f785 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -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 the shell command we just ran changed it. */ chdir (current_directory); - exit_status_set_internal_vars (rc); #endif + exit_status_set_internal_vars (rc); #else /* Can fork. */ int status, pid; |