From: Mike Frysinger Date: Tue, 30 Mar 2010 23:43:03 +0000 (+0000) Subject: sim: v850: fix build failure after watchpoint constification X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4e9586f0dc68911caa04d2a23967b6892576f56c;p=binutils-gdb.git sim: v850: fix build failure after watchpoint constification --- diff --git a/sim/v850/ChangeLog b/sim/v850/ChangeLog index 0e01705044b..4d43d3e6492 100644 --- a/sim/v850/ChangeLog +++ b/sim/v850/ChangeLog @@ -1,3 +1,8 @@ +2010-03-30 Mike Frysinger + + * interp.c (interrupt_names): Add const to pointer type. + (do_interrupt): Add const to interrupt_name. + 2010-01-09 Ralf Wildenhues * configure: Regenerate. diff --git a/sim/v850/interp.c b/sim/v850/interp.c index 1ca248ca3e9..e8bea5f6752 100644 --- a/sim/v850/interp.c +++ b/sim/v850/interp.c @@ -48,7 +48,7 @@ enum interrupt_type num_int_types }; -char *interrupt_names[] = { +const char *interrupt_names[] = { "reset", "nmi", "intov1", @@ -65,7 +65,7 @@ do_interrupt (sd, data) SIM_DESC sd; void *data; { - char **interrupt_name = (char**)data; + const char **interrupt_name = (const char**)data; enum interrupt_type inttype; inttype = (interrupt_name - STATE_WATCHPOINTS (sd)->interrupt_names);