gdb: bool-ify maybe_add_script_{text,file}
authorSimon Marchi <simon.marchi@polymtl.ca>
Wed, 13 Jan 2021 17:09:58 +0000 (12:09 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Wed, 13 Jan 2021 17:25:16 +0000 (12:25 -0500)
commit506195754c948948a4940928969ffb07584ae845
tree4a9f67c986a9c57ab4cb2123673c8e8a02f3d8bf
parent5bf7e91b2b47295b021ce3a06688d8cfb74e7fab
gdb: bool-ify maybe_add_script_{text,file}

Bool-ify the return type of maybe_add_script_text and
maybe_add_script_file, the loaded parameter and related things.

gdb/ChangeLog:

* auto-load.c (struct loaded_script) <loaded>: Change to bool.
(maybe_add_script_file): Change return type to bool.
(maybe_add_script_text): Change return type and
loaded parameter to bool.
(source_script_file): Adjust.
(execute_script_contents): Adjust.

Change-Id: I59ab5862796fa7d154721b56e2ff8612ad5d734b
gdb/auto-load.c