mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 18:39:34 +08:00
gdb: bool-ify users of file_is_auto_load_safe
A previous patch missed those. gdb/ChangeLog: * auto-load.c (auto_load_objfile_script_1): Use bool. (execute_script_contents): Use bool. Change-Id: I214bf7ed25af36ced375eb3ec5a403ded2fa572e
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
|
||||||
|
|
||||||
|
* auto-load.c (auto_load_objfile_script_1): Use bool.
|
||||||
|
(execute_script_contents): Use bool.
|
||||||
|
|
||||||
2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
|
2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
|
||||||
|
|
||||||
* auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
|
* auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
|
||||||
|
@ -808,10 +808,9 @@ auto_load_objfile_script_1 (struct objfile *objfile, const char *realname,
|
|||||||
|
|
||||||
if (input)
|
if (input)
|
||||||
{
|
{
|
||||||
int is_safe;
|
|
||||||
struct auto_load_pspace_info *pspace_info;
|
struct auto_load_pspace_info *pspace_info;
|
||||||
|
|
||||||
is_safe
|
bool is_safe
|
||||||
= file_is_auto_load_safe (debugfile,
|
= file_is_auto_load_safe (debugfile,
|
||||||
_("auto-load: Loading %s script \"%s\""
|
_("auto-load: Loading %s script \"%s\""
|
||||||
" by extension for objfile \"%s\".\n"),
|
" by extension for objfile \"%s\".\n"),
|
||||||
@ -968,7 +967,7 @@ execute_script_contents (struct auto_load_pspace_info *pspace_info,
|
|||||||
objfile_script_executor_func *executor;
|
objfile_script_executor_func *executor;
|
||||||
const char *newline, *script_text;
|
const char *newline, *script_text;
|
||||||
const char *name;
|
const char *name;
|
||||||
int is_safe, in_hash_table;
|
int in_hash_table;
|
||||||
|
|
||||||
/* The first line of the script is the name of the script.
|
/* The first line of the script is the name of the script.
|
||||||
It must not contain any kind of space character. */
|
It must not contain any kind of space character. */
|
||||||
@ -1022,7 +1021,8 @@ of file %ps."),
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
is_safe = file_is_auto_load_safe (objfile_name (objfile),
|
bool is_safe
|
||||||
|
= file_is_auto_load_safe (objfile_name (objfile),
|
||||||
_("auto-load: Loading %s script "
|
_("auto-load: Loading %s script "
|
||||||
"\"%s\" from section \"%s\" of "
|
"\"%s\" from section \"%s\" of "
|
||||||
"objfile \"%s\".\n"),
|
"objfile \"%s\".\n"),
|
||||||
|
Reference in New Issue
Block a user