PR symtab/17391 gdb internal error: assertion fails in regcache.c:178
[deliverable/binutils-gdb.git] / gdb / hppa-linux-tdep.c
index 0b05c372927131406fced9b68c3e2df87590ef09..eb7203a05479eb8f35f295bf5a9a3dd081e9a088 100644 (file)
@@ -39,14 +39,13 @@ static int
 hppa_dwarf_reg_to_regnum (struct gdbarch *gdbarch, int reg)
 {
   /* The general registers and the sar are the same in both sets.  */
-  if (reg <= 32)
+  if (reg >= 0 && reg <= 32)
     return reg;
 
   /* fr4-fr31 (left and right halves) are mapped from 72.  */
   if (reg >= 72 && reg <= 72 + 28 * 2)
     return HPPA_FP4_REGNUM + (reg - 72);
 
-  warning (_("Unmapped DWARF DBX Register #%d encountered."), reg);
   return -1;
 }
 
This page took 0.024552 seconds and 4 git commands to generate.