This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [ARI regression] in arm-tdep.c
(thanks Pierre for bringing this issue up!)
> OK, though I think "Invalid argument to displaced_write_reg" might be a
> better error.
Just to help speed things up, here is what I checked in:
2009-09-03 Pierre Muller <muller@ics.u-strasbg.fr>
Richard Earnshaw <rearnsha@arm.com>
* arm-tdep.c (displaced_write_reg): Replace call to abort by call
to internal_error.
Tested by recompiling arm-tdep.c only.
--
Joel
Index: arm-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/arm-tdep.c,v
retrieving revision 1.286
diff -u -p -r1.286 arm-tdep.c
--- arm-tdep.c 14 Aug 2009 00:32:31 -0000 1.286
+++ arm-tdep.c 3 Sep 2009 18:49:55 -0000
@@ -2769,7 +2769,8 @@ displaced_write_reg (struct regcache *re
break;
default:
- abort ();
+ internal_error (__FILE__, __LINE__,
+ _("Invalid argument to displaced_write_reg"));
}
dsc->wrote_to_pc = 1;