diff options
author | Pedro Alves <palves@redhat.com> | 2015-07-24 17:27:58 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2015-07-24 17:27:58 +0100 |
commit | fe23c31f262151ce3265f5b90870d40cb6840f0a (patch) | |
tree | 217beb000bc625baabebbd9b2566248c374178ad /gdb/testsuite/ChangeLog | |
parent | afa5870f1bfafa1ccfa8a4b3f432c07c19a2447e (diff) | |
download | gdb-fe23c31f262151ce3265f5b90870d40cb6840f0a.zip gdb-fe23c31f262151ce3265f5b90870d40cb6840f0a.tar.gz gdb-fe23c31f262151ce3265f5b90870d40cb6840f0a.tar.bz2 |
Fix failed exec error message
Ref: https://sourceware.org/ml/gdb-patches/2015-07/msg00629.html
This fixes the bogus command line in the error message shown when the
SHELL environment variable points somewhere that's not something that
resembles a shell:
$ SHELL=/nonexisting gdb /home/pedro/a.out
(gdb) r
Starting program: /home/pedro/a.out
- Cannot exec /home/pedro/a.out -c exec /home/pedro/a.out .
+ Cannot exec /nonexisting -c exec /home/pedro/a.out .
Error: No such file or directory
During startup program exited with code 127.
(gdb)
gdb/ChangeLog:
2015-07-24 Pedro Alves <palves@redhat.com>
* fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
Diffstat (limited to 'gdb/testsuite/ChangeLog')
0 files changed, 0 insertions, 0 deletions