aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-04-24 16:24:05 -0600
committerTom Tromey <tom@tromey.com>2019-05-04 14:13:28 -0600
commitfbdf05a16ec647358e65582721c4ca7dae15e58d (patch)
treef169034b616d3ff2cc2ed15dc241845af307439f
parent06d16ec97736b5fc0f41cb5a43f756b7ba3d974b (diff)
downloadfsf-binutils-gdb-fbdf05a16ec647358e65582721c4ca7dae15e58d.zip
fsf-binutils-gdb-fbdf05a16ec647358e65582721c4ca7dae15e58d.tar.gz
fsf-binutils-gdb-fbdf05a16ec647358e65582721c4ca7dae15e58d.tar.bz2
Change arc_tdesc_init to return bool
This changes arc_tdesc_init to return bool. gdb/ChangeLog 2019-05-04 Tom Tromey <tom@tromey.com> * arc-tdep.c (arc_tdesc_init): Return bool.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/arc-tdep.c18
2 files changed, 13 insertions, 9 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 18d0ce8..ce7c49b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2019-05-04 Tom Tromey <tom@tromey.com>
+ * arc-tdep.c (arc_tdesc_init): Return bool.
+
+2019-05-04 Tom Tromey <tom@tromey.com>
+
* arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
Use gdb_assert_not_reached.
diff --git a/gdb/arc-tdep.c b/gdb/arc-tdep.c
index 9c02960..108b671 100644
--- a/gdb/arc-tdep.c
+++ b/gdb/arc-tdep.c
@@ -1720,7 +1720,7 @@ static const struct frame_base arc_normal_base = {
Returns TRUE if input tdesc was valid and in this case it will assign TDESC
and TDESC_DATA output parameters. */
-static int
+static bool
arc_tdesc_init (struct gdbarch_info info, const struct target_desc **tdesc,
struct tdesc_arch_data **tdesc_data)
{
@@ -1803,7 +1803,7 @@ arc_tdesc_init (struct gdbarch_info info, const struct target_desc **tdesc,
{
arc_print (_("Error: ARC v2 target description supplied for "
"non-ARCv2 target.\n"));
- return FALSE;
+ return false;
}
is_reduced_rf = false;
@@ -1819,7 +1819,7 @@ arc_tdesc_init (struct gdbarch_info info, const struct target_desc **tdesc,
{
arc_print (_("Error: ARC v2 target description supplied for "
"non-ARCv2 target.\n"));
- return FALSE;
+ return false;
}
is_reduced_rf = true;
@@ -1836,7 +1836,7 @@ arc_tdesc_init (struct gdbarch_info info, const struct target_desc **tdesc,
{
arc_print (_("Error: ARCompact target description supplied "
"for non-ARCompact target.\n"));
- return FALSE;
+ return false;
}
is_reduced_rf = false;
@@ -1847,7 +1847,7 @@ arc_tdesc_init (struct gdbarch_info info, const struct target_desc **tdesc,
{
arc_print (_("Error: Couldn't find core register feature in "
"supplied target description."));
- return FALSE;
+ return false;
}
}
}
@@ -1882,7 +1882,7 @@ arc_tdesc_init (struct gdbarch_info info, const struct target_desc **tdesc,
arc_print (_("Error: Cannot find required register `%s' in "
"feature `%s'.\n"), core_regs[i], core_feature_name);
tdesc_data_cleanup (tdesc_data_loc);
- return FALSE;
+ return false;
}
}
@@ -1894,7 +1894,7 @@ arc_tdesc_init (struct gdbarch_info info, const struct target_desc **tdesc,
arc_print (_("Error: Cannot find required feature `%s' in supplied "
"target description.\n"), aux_minimal_feature_name);
tdesc_data_cleanup (tdesc_data_loc);
- return FALSE;
+ return false;
}
for (int i = ARC_FIRST_AUX_REGNUM; i <= ARC_LAST_AUX_REGNUM; i++)
@@ -1907,14 +1907,14 @@ arc_tdesc_init (struct gdbarch_info info, const struct target_desc **tdesc,
"in feature `%s'.\n"),
name, tdesc_feature_name (feature));
tdesc_data_cleanup (tdesc_data_loc);
- return FALSE;
+ return false;
}
}
*tdesc = tdesc_loc;
*tdesc_data = tdesc_data_loc;
- return TRUE;
+ return true;
}
/* Implement the type_align gdbarch function. */