gdb, gdbserver: remove configure check for fs_base/gs_base in user_regs_struct
[deliverable/binutils-gdb.git] / gdbserver / regcache.cc
index f63463344afaf02cc96df5a750cc7909406f144f..6c0af95b34ec4f2e2fc832d547a1a7eeff686ecc 100644 (file)
@@ -198,7 +198,7 @@ regcache_cpy (struct regcache *dst, struct regcache *src)
 
 /* Return a reference to the description of register N.  */
 
-static const struct reg &
+static const struct gdb::reg &
 find_register_by_number (const struct target_desc *tdesc, int n)
 {
   return tdesc->reg_defs[n];
@@ -477,25 +477,13 @@ collect_register_by_name (struct regcache *regcache,
 CORE_ADDR
 regcache_read_pc (struct regcache *regcache)
 {
-  CORE_ADDR pc_val;
-
-  if (the_target->read_pc)
-    pc_val = the_target->read_pc (regcache);
-  else
-    internal_error (__FILE__, __LINE__,
-                   "regcache_read_pc: Unable to find PC");
-
-  return pc_val;
+  return the_target->read_pc (regcache);
 }
 
 void
 regcache_write_pc (struct regcache *regcache, CORE_ADDR pc)
 {
-  if (the_target->write_pc)
-    the_target->write_pc (regcache, pc);
-  else
-    internal_error (__FILE__, __LINE__,
-                   "regcache_write_pc: Unable to update PC");
+  the_target->write_pc (regcache, pc);
 }
 
 #endif
This page took 0.02391 seconds and 4 git commands to generate.