aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-04-26 21:49:55 -0600
committerTom Tromey <tom@tromey.com>2017-08-03 07:58:53 -0600
commited1669453be56d71351c77377acee097aefe83b1 (patch)
tree80ee2b988d2bddb6f52fbf3e1fee2bb3376adab5 /gdb/ChangeLog
parentd419f42dd3f3635fc036413258ed530676998191 (diff)
downloadgdb-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/ChangeLog')
-rw-r--r--gdb/ChangeLog9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 17a818c..80b9c2b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,14 @@
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.
+
+2017-08-03 Tom Tromey <tom@tromey.com>
+
* xml-support.c (xml_fetch_content_from_file): Update.
* ui-file.c (stdio_file::open): Update.
* tracefile-tfile.c (tfile_start): Update.