On Sat, Apr 17, 2010 at 8:19 AM, H.J. Lu wrote: >> 2010-04-06  Doug Evans   >> >>        Add -s option to source command. >>        * cli/cli-cmds.c (find_and_open_script): Add function comment. >>        Delete from_tty and cleanupp args.  Split filep arg into file and >>        full_pathp.  New arg search_path. >>        (source_script_from_stream): New function. >>        (source_script_with_search): New function. >>        (source_script): Rewrite. >>        (source_command): Parse "-s" option. >>        (init_cli_cmds): Add "-s" docs to source command help. >>        * python/python.c (source_python_script): Make file arg a const char *. >>        Don't call fclose, leave for caller. >>        * python/python.h (source_python_script): Update. >> >>        testsuite/ >>        * gdb.base/source-test.gdb: New file. >>        * gdb.base/source.exp: Add tests for "source -v" and "source -s". >> >>        doc/ >>        * gdb.texinfo (Command Files): Add docs for new "source -s" option. >> > > This caused: > > help source^M > Read commands from a file named FILE.^M > ^M > Usage: source [-s] [-v] FILE^M > -s: search for the script in the source search path,^M >    even if FILE contains directories.^M > -v: each command in FILE is echoed as it is executed.^M > ^M > Note that the file ".gdbinit" is read automatically in this way^M > when GDB is started.^M > (gdb) FAIL: gdb.base/help.exp: help source Thanks. Fix checked in. 010-04-19 Doug Evans * gdb.base/help.exp (help source): Update expected output.