aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-03-30 23:43:03 +0000
committerMike Frysinger <vapier@gentoo.org>2010-03-30 23:43:03 +0000
commit4e9586f0dc68911caa04d2a23967b6892576f56c (patch)
tree77744b5623a6aa23877fccc19224dbfd9b6fe2b5 /sim
parentb36562f693df03c18beb1b84ec991c2f2d0e5c1c (diff)
downloadgdb-4e9586f0dc68911caa04d2a23967b6892576f56c.zip
gdb-4e9586f0dc68911caa04d2a23967b6892576f56c.tar.gz
gdb-4e9586f0dc68911caa04d2a23967b6892576f56c.tar.bz2
sim: v850: fix build failure after watchpoint constification
Diffstat (limited to 'sim')
-rw-r--r--sim/v850/ChangeLog5
-rw-r--r--sim/v850/interp.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/sim/v850/ChangeLog b/sim/v850/ChangeLog
index 0e01705..4d43d3e 100644
--- a/sim/v850/ChangeLog
+++ b/sim/v850/ChangeLog
@@ -1,3 +1,8 @@
+2010-03-30 Mike Frysinger <vapier@gentoo.org>
+
+ * interp.c (interrupt_names): Add const to pointer type.
+ (do_interrupt): Add const to interrupt_name.
+
2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* configure: Regenerate.
diff --git a/sim/v850/interp.c b/sim/v850/interp.c
index 1ca248c..e8bea5f 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);