aboutsummaryrefslogtreecommitdiff
path: root/gdb/stap-probe.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2015-09-22 11:17:52 -0400
committerSimon Marchi <simon.marchi@ericsson.com>2015-09-22 11:18:09 -0400
commitbc1f8cdaf4b26d1c7af34c7a33038c50fd5eabd4 (patch)
tree5bf7155633e1de438c5dbd429c3d9c0923d7e229 /gdb/stap-probe.c
parent5fe2850dd96483f176858fd75c098313d5b20bc2 (diff)
stap-probe: Remove unnecessary cast
ret->args_u.text is const char *, probe_args is const char *, so no cast is needed. Found while doing cxx-conversion stuff, since it wouldn't build in C++. gdb/ChangeLog: * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
Diffstat (limited to 'gdb/stap-probe.c')
-rw-r--r--gdb/stap-probe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/stap-probe.c b/gdb/stap-probe.c
index 912505cfcb..8f8cea67fd 100644
--- a/gdb/stap-probe.c
+++ b/gdb/stap-probe.c
@@ -1538,7 +1538,7 @@ handle_stap_probe (struct objfile *objfile, struct sdt_note *el,
}
ret->args_parsed = 0;
- ret->args_u.text = (void *) probe_args;
+ ret->args_u.text = probe_args;
/* Successfully created probe. */
VEC_safe_push (probe_p, *probesp, (struct probe *) ret);