* 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.
This commit is contained in:
Jim Blandy
2004-08-04 17:45:30 +00:00
parent 7a7aed7807
commit a44bddec71
3 changed files with 21 additions and 6 deletions

View File

@ -399,7 +399,9 @@ fetch_register (int tid, int regno)
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