8sa1-binutils-gdb/gdb/python
Doug Evans 3f7b2faa4b Add -s option to source command.
* NEWS: Document new option.
	* 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, and reformat.
	* 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 -s".

	doc/
	* gdb.texinfo (Command Files): Add docs for new "source -s" option.
2010-04-15 17:45:57 +00:00
..
py-block.c 2010-04-14 Phil Muldoon <pmuldoon@redhat.com> 2010-04-14 13:18:55 +00:00
py-breakpoint.c 2010-04-09 Phil Muldoon <pmuldoon@redhat.com> 2010-04-09 09:41:43 +00:00
py-cmd.c 2010-04-14 Phil Muldoon <pmuldoon@redhat.com> 2010-04-14 13:18:55 +00:00
py-frame.c 2010-04-14 Phil Muldoon <pmuldoon@redhat.com> 2010-04-14 13:18:55 +00:00
py-function.c Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
py-lazy-string.c 2010-04-14 Phil Muldoon <pmuldoon@redhat.com> 2010-04-14 13:18:55 +00:00
py-objfile.c 2010-04-14 Phil Muldoon <pmuldoon@redhat.com> 2010-04-14 13:18:55 +00:00
py-prettyprint.c 2010-04-14 Phil Muldoon <pmuldoon@redhat.com> 2010-04-14 13:18:55 +00:00
py-symbol.c 2010-02-24 Phil Muldoon <pmuldoon@redhat.com> 2010-02-24 21:18:28 +00:00
py-symtab.c 2010-02-24 Phil Muldoon <pmuldoon@redhat.com> 2010-02-24 21:18:28 +00:00
py-type.c 2010-04-14 Phil Muldoon <pmuldoon@redhat.com> 2010-04-14 13:18:55 +00:00
py-utils.c gdb 2010-03-05 20:18:19 +00:00
py-value.c 2010-04-14 Phil Muldoon <pmuldoon@redhat.com> 2010-04-14 13:18:55 +00:00
python-internal.h 2010-04-09 Phil Muldoon <pmuldoon@redhat.com> 2010-04-09 09:41:43 +00:00
python.c Add -s option to source command. 2010-04-15 17:45:57 +00:00
python.h Add -s option to source command. 2010-04-15 17:45:57 +00:00