diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2015-10-27 13:11:45 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2015-10-27 13:12:12 -0400 |
commit | c5192092506e52a5f075b137a36933e42db64563 (patch) | |
tree | b77e4f0b07106b16ef1b88a3e19e4cd1a9edff0a /gdb/guile/scm-ports.c | |
parent | 79b289e2d8083691ccb2c943d4502e1af54e81e2 (diff) | |
download | gdb-c5192092506e52a5f075b137a36933e42db64563.zip gdb-c5192092506e52a5f075b137a36933e42db64563.tar.gz gdb-c5192092506e52a5f075b137a36933e42db64563.tar.bz2 |
guile: Change return value of gdbscm_with_guile for const char *
The documentation of gdbscm_with_guile says that it returns a statically
allocated string (IOW, a const char *). We can reflect that in its
return value type, and get rid of C++ build errors.
Initially fixes:
/home/simark/src/binutils-gdb/gdb/guile/scm-disasm.c: In function ‘void* gdbscm_disasm_read_memory_worker(void*)’:
/home/simark/src/binutils-gdb/gdb/guile/scm-disasm.c:93:12: error: invalid conversion from ‘const void*’ to ‘void*’ [-fpermissive]
return "seek error";
gdb/ChangeLog:
* guile/guile-internal.h (gdbscm_with_guile): Change return
types to const char *.
* guile/scm-safe-call.c (gdbscm_with_guile): Likewise.
(struct c_data) <func>: Likewise.
(struct c_data) <result>: Change type to const char *.
(scscm_eval_scheme_string): Change return type to
const char *.
(scscm_source_scheme_script): Likewise.
(gdbscm_safe_eval_string): Change type of result variable to
const char * and remove cast.
(gdbscm_safe_source_script): Likewise.
* guile/scm-disasm.c (gdbscm_disasm_read_memory_worker):
Change return type to const char *.
(gdbscm_disasm_read_memory): Change type of status to
const char *.
Diffstat (limited to 'gdb/guile/scm-ports.c')
0 files changed, 0 insertions, 0 deletions