diff options
author | Tom Tromey <tom@tromey.com> | 2017-04-26 21:49:55 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-08-03 07:58:53 -0600 |
commit | ed1669453be56d71351c77377acee097aefe83b1 (patch) | |
tree | 80ee2b988d2bddb6f52fbf3e1fee2bb3376adab5 /gdb/copying.awk | |
parent | d419f42dd3f3635fc036413258ed530676998191 (diff) | |
download | gdb-ed1669453be56d71351c77377acee097aefe83b1.zip gdb-ed1669453be56d71351c77377acee097aefe83b1.tar.gz gdb-ed1669453be56d71351c77377acee097aefe83b1.tar.bz2 |
Change return type of find_and_open_script
This changes find_and_open_script to return a
gdb::optional<open_script>, where open_script is a new type
encapsulating the two return values. The new type helps avoid
cleanups in the callers.
ChangeLog
2017-08-03 Tom Tromey <tom@tromey.com>
* cli/cli-cmds.c (find_and_open_script): Change return type.
Remove "streamp" and "full_path" parameters.
(source_script_with_search): Update.
* auto-load.c (source_script_file): Update.
* cli/cli-cmds.h (find_and_open_script): Change type.
(open_script): New struct.
Diffstat (limited to 'gdb/copying.awk')
0 files changed, 0 insertions, 0 deletions