+2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * target-descriptions.c (struct target_desc_info) <fetched>:
+ bool.
+ (target_find_description): Adjust.
+ (target_clear_description): Adjust.
+
2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
* target-descriptions.c (struct target_desc_info) <tdesc>:
/* A flag indicating that a description has already been fetched
from the target, so it should not be queried again. */
- int fetched;
+ bool fetched;
/* The description fetched from the target, or NULL if the target
did not supply any description. Only valid when
/* Now that we know this description is usable, record that we
fetched it. */
- tdesc_info->fetched = 1;
+ tdesc_info->fetched = true;
}
/* Discard any description fetched from the current target, and switch
if (!tdesc_info->fetched)
return;
- tdesc_info->fetched = 0;
+ tdesc_info->fetched = false;
tdesc_info->tdesc = nullptr;
gdbarch_info info;