From 97b9747c0c17b5d0c0c35a8730f841d73181e1eb Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Thu, 3 Sep 2009 18:52:02 +0000 Subject: [PATCH] * arm-tdep.c (displaced_write_reg): Replace call to abort by call to internal_error. --- gdb/ChangeLog | 6 ++++++ gdb/arm-tdep.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a538f1a74ac..3064089060e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2009-09-03 Pierre Muller + Richard Earnshaw + + * arm-tdep.c (displaced_write_reg): Replace call to abort by call + to internal_error. + 2009-09-02 Tom Tromey * frame.h (frame_unwinder_is): Declare. diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index a2523f5ff34..6e98469e517 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -2769,7 +2769,8 @@ displaced_write_reg (struct regcache *regs, struct displaced_step_closure *dsc, break; default: - abort (); + internal_error (__FILE__, __LINE__, + _("Invalid argument to displaced_write_reg")); } dsc->wrote_to_pc = 1; -- 2.30.2