aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-watch.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-03-30 20:42:02 +0000
committerMike Frysinger <vapier@gentoo.org>2010-03-30 20:42:02 +0000
commitff398ee4f38a388e9565a63458e90ff56aace188 (patch)
tree681e2977655ce51f565a2acd1311f8f4a895278e /sim/common/sim-watch.h
parent6bf91687eb2ee78ad7cb60708d9f66288e345e16 (diff)
downloadgdb-ff398ee4f38a388e9565a63458e90ff56aace188.zip
gdb-ff398ee4f38a388e9565a63458e90ff56aace188.tar.gz
gdb-ff398ee4f38a388e9565a63458e90ff56aace188.tar.bz2
sim: constify watchpoint interrupt names
GCC issues warnings because const strings like "foo" are passed as char*. sim-watch.c: In function 'watchpoint_type_to_str': sim-watch.c:120: warning: return discards qualifiers from pointer target type
Diffstat (limited to 'sim/common/sim-watch.h')
-rw-r--r--sim/common/sim-watch.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/common/sim-watch.h b/sim/common/sim-watch.h
index 65be89f..2945f8d 100644
--- a/sim/common/sim-watch.h
+++ b/sim/common/sim-watch.h
@@ -63,7 +63,7 @@ typedef struct _sim_watchpoints {
/* FIXME: can this be done better? Look at the PPC's interrupt
mechanism and table for a rough idea of where it will go next */
int nr_interrupts;
- char **interrupt_names;
+ const char **interrupt_names;
/* active watchpoints */
int last_point_nr;