aboutsummaryrefslogtreecommitdiff
path: root/gdb/stap-probe.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2015-10-26 22:04:10 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2015-10-26 22:04:10 -0400
commitbf6778dab2b3efc5a0ab01ee41e62e966ef08069 (patch)
treeebb85018152f8075136aed2e267b44ed698d4f2e /gdb/stap-probe.c
parentc92444842b32533b6411230e3554509a09924163 (diff)
downloadgdb-bf6778dab2b3efc5a0ab01ee41e62e966ef08069.zip
gdb-bf6778dab2b3efc5a0ab01ee41e62e966ef08069.tar.gz
gdb-bf6778dab2b3efc5a0ab01ee41e62e966ef08069.tar.bz2
stap-probe.c: Add casts
gdb/ChangeLog: * stap-probe.c (handle_stap_probe): Add (const char *) casts.
Diffstat (limited to 'gdb/stap-probe.c')
-rw-r--r--gdb/stap-probe.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/gdb/stap-probe.c b/gdb/stap-probe.c
index d88c470..18e0d83 100644
--- a/gdb/stap-probe.c
+++ b/gdb/stap-probe.c
@@ -1488,8 +1488,9 @@ handle_stap_probe (struct objfile *objfile, struct sdt_note *el,
/* Provider and the name of the probe. */
ret->p.provider = (char *) &el->data[3 * size];
- ret->p.name = memchr (ret->p.provider, '\0',
- (char *) el->data + el->size - ret->p.provider);
+ ret->p.name = ((const char *)
+ memchr (ret->p.provider, '\0',
+ (char *) el->data + el->size - ret->p.provider));
/* Making sure there is a name. */
if (ret->p.name == NULL)
{
@@ -1519,8 +1520,9 @@ handle_stap_probe (struct objfile *objfile, struct sdt_note *el,
/* Arguments. We can only extract the argument format if there is a valid
name for this probe. */
- probe_args = memchr (ret->p.name, '\0',
- (char *) el->data + el->size - ret->p.name);
+ probe_args = ((const char*)
+ memchr (ret->p.name, '\0',
+ (char *) el->data + el->size - ret->p.name));
if (probe_args != NULL)
++probe_args;