This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 2/2] warn if "source" fails to open the file when from_tty == 0
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 11 Oct 2013 12:24:53 +0400
- Subject: Re: [RFA 2/2] warn if "source" fails to open the file when from_tty == 0
- Authentication-results: sourceware.org; auth=none
- References: <1381389734-32490-1-git-send-email-brobecker at adacore dot com> <1381389734-32490-2-git-send-email-brobecker at adacore dot com> <87wqll6lns dot fsf at fleche dot redhat dot com>
> Joel> One would have at least expected the debugger to warn about
> Joel> not finding the file, similar to the error shown when using
> Joel> a more interactive mode. Eg:
>
> Yeah. That seems like a mistake, but it seems like it would also be a
> mistake to change it.
That's what I thought as well. Not sure whether anyone really relies
on that behavior, or not, but it's been like that at least since
start of CVS, as far as I can tell, so really hard to argue for
a change.
> Joel> Tested on x86_64-linux, Ok to commit?
>
> Looks good to me.
Thanks! Checked in.
--
Joel