+2004-08-04 Jim Blandy <jimb@redhat.com>
+
+ * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
+ a call to 'internal_error', with a more helpful error message.
+ * rs6000-tdep.c (e500_pseudo_register_read,
+ e500_pseudo_register_write): Same.
+
2004-08-04 Andrew Cagney <cagney@gnu.org>
* Makefile.in: Update dependencies.
regcache_raw_supply (current_regcache, regno, buf + padding);
}
else
- gdb_assert (0);
+ internal_error (__FILE__, __LINE__,
+ "fetch_register: unexpected byte order: %d",
+ gdbarch_byte_order (current_gdbarch));
}
static void
&& reg_nr < tdep->ppc_ev0_regnum + ppc_num_gprs)
e500_move_ev_register (regcache_raw_read, regcache, reg_nr, buffer);
else
- /* We should only be called on pseudo-registers. */
- gdb_assert (0);
+ internal_error (__FILE__, __LINE__,
+ "e500_pseudo_register_read: "
+ "called on unexpected register '%s' (%d)",
+ gdbarch_register_name (gdbarch, reg_nr), reg_nr);
}
static void
regcache_raw_write,
regcache, reg_nr, (void *) buffer);
else
- /* We should only be called on pseudo-registers. */
- gdb_assert (0);
+ internal_error (__FILE__, __LINE__,
+ "e500_pseudo_register_read: "
+ "called on unexpected register '%s' (%d)",
+ gdbarch_register_name (gdbarch, reg_nr), reg_nr);
}
/* The E500 needs a custom reggroup function: it has anonymous raw
&& TYPE_VECTOR (type))
regnum = tdep->ppc_vr0_regnum + 2;
else
- gdb_assert (0);
+ internal_error (__FILE__, __LINE__,
+ "rs6000_store_return_value: "
+ "unexpected array return type");
}
else
/* Everything else is returned in GPR3 and up. */