Change return type of find_and_open_script
authorTom Tromey <tom@tromey.com>
Thu, 27 Apr 2017 03:49:55 +0000 (21:49 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 3 Aug 2017 13:58:53 +0000 (07:58 -0600)
commited1669453be56d71351c77377acee097aefe83b1
tree80ee2b988d2bddb6f52fbf3e1fee2bb3376adab5
parentd419f42dd3f3635fc036413258ed530676998191
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.
gdb/ChangeLog
gdb/auto-load.c
gdb/cli/cli-cmds.c
gdb/cli/cli-cmds.h
This page took 0.029153 seconds and 4 git commands to generate.