This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix calling gcore when gdb is not in $PATH.
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Luis Machado <lgustavo at codesourcery dot com>
- Cc: "'gdb-patches at sourceware dot org'" <gdb-patches at sourceware dot org>
- Date: Fri, 11 Oct 2013 21:00:20 +0200
- Subject: Re: [PATCH] Fix calling gcore when gdb is not in $PATH.
- Authentication-results: sourceware.org; auth=none
- References: <525806C8 dot 8040108 at codesourcery dot com> <20131011143145 dot GA1517 at host2 dot jankratochvil dot net> <52580F4B dot 8050306 at codesourcery dot com> <52582B57 dot 8090006 at codesourcery dot com> <20131011165622 dot GA20960 at host2 dot jankratochvil dot net> <52583B08 dot 3010907 at codesourcery dot com> <20131011181008 dot GA2115 at host2 dot jankratochvil dot net> <525841CD dot 8070506 at codesourcery dot com>
On Fri, 11 Oct 2013 20:22:05 +0200, Luis Machado wrote:
> Hmmm... unless there is some discrepancy between shell interpreters,
> mine (bash) does the following:
OK, true, it works thanks to the 'which' command there.
But then why you have there the conditional
if test "x$binary_path" = x. ; then
?
You can run the 'which' block every time and it will work.
Jan