diff options
author | Pedro Alves <palves@redhat.com> | 2015-09-07 19:34:31 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2015-09-07 19:34:31 +0100 |
commit | 72e0248351fdc4ab125a16af24df031bca2275e4 (patch) | |
tree | ce243844c02fff130389d32ed3b7eeec23a0e3fd /gdb/guile/scm-ports.c | |
parent | 3d4fde6974a1237d79055ee734d99cc49c6fd3f9 (diff) | |
download | gdb-72e0248351fdc4ab125a16af24df031bca2275e4.zip gdb-72e0248351fdc4ab125a16af24df031bca2275e4.tar.gz gdb-72e0248351fdc4ab125a16af24df031bca2275e4.tar.bz2 |
guile: Add as_a_scm_t_subr
Building GDB in C++ mode on Fedora 20, the gdb/guile/ code shows ~280
errors like:
src/gdb/guile/guile.c:515:1: error: invalid conversion from ‘scm_unused_struct* (*)(SCM, SCM) {aka scm_unused_struct* (*)(scm_unused_struct*, scm_unused_struct*)}’ to ‘scm_t_subr {aka void*}’ [-fpermissive]
This commit fixes them all.
gdb/ChangeLog:
2015-09-07 Pedro Alves <palves@redhat.com>
* guile/guile-internal.h (as_a_scm_t_subr): New.
* guile/guile.c (misc_guile_functions): Use it.
* guile/scm-arch.c (arch_functions): Use it.
* guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
Use it.
* guile/scm-breakpoint.c (breakpoint_functions): Use it.
* guile/scm-cmd.c (command_functions): Use it.
* guile/scm-disasm.c (disasm_functions): Use it.
* guile/scm-exception.c (exception_functions)
(private_exception_functions): Use it.
* guile/scm-frame.c (frame_functions)
* guile/scm-gsmob.c (gsmob_functions): Use it.
* guile/scm-iterator.c (iterator_functions): Use it.
* guile/scm-lazy-string.c (lazy_string_functions): Use it.
* guile/scm-math.c (math_functions): Use it.
* guile/scm-objfile.c (objfile_functions): Use it.
* guile/scm-param.c (parameter_functions): Use it.
* guile/scm-ports.c (port_functions, private_port_functions): Use
it.
* guile/scm-pretty-print.c (pretty_printer_functions): Use it.
* guile/scm-progspace.c (pspace_functions): Use it.
* guile/scm-string.c (string_functions): Use it.
* guile/scm-symbol.c (symbol_functions): Use it.
* guile/scm-symtab.c (symtab_functions): Use it.
* guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
it.
* guile/scm-value.c (value_functions): Use it.
Diffstat (limited to 'gdb/guile/scm-ports.c')
-rw-r--r-- | gdb/guile/scm-ports.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/gdb/guile/scm-ports.c b/gdb/guile/scm-ports.c index 622507b..e406ae1 100644 --- a/gdb/guile/scm-ports.c +++ b/gdb/guile/scm-ports.c @@ -1287,44 +1287,44 @@ gdbscm_set_memory_port_write_buffer_size_x (SCM port, SCM size) static const scheme_function port_functions[] = { - { "input-port", 0, 0, 0, gdbscm_input_port, + { "input-port", 0, 0, 0, as_a_scm_t_subr (gdbscm_input_port), "\ Return gdb's input port." }, - { "output-port", 0, 0, 0, gdbscm_output_port, + { "output-port", 0, 0, 0, as_a_scm_t_subr (gdbscm_output_port), "\ Return gdb's output port." }, - { "error-port", 0, 0, 0, gdbscm_error_port, + { "error-port", 0, 0, 0, as_a_scm_t_subr (gdbscm_error_port), "\ Return gdb's error port." }, - { "stdio-port?", 1, 0, 0, gdbscm_stdio_port_p, + { "stdio-port?", 1, 0, 0, as_a_scm_t_subr (gdbscm_stdio_port_p), "\ Return #t if the object is a gdb:stdio-port." }, - { "open-memory", 0, 0, 1, gdbscm_open_memory, + { "open-memory", 0, 0, 1, as_a_scm_t_subr (gdbscm_open_memory), "\ Return a port that can be used for reading/writing inferior memory.\n\ \n\ Arguments: [#:mode string] [#:start address] [#:size integer]\n\ Returns: A port object." }, - { "memory-port?", 1, 0, 0, gdbscm_memory_port_p, + { "memory-port?", 1, 0, 0, as_a_scm_t_subr (gdbscm_memory_port_p), "\ Return #t if the object is a memory port." }, - { "memory-port-range", 1, 0, 0, gdbscm_memory_port_range, + { "memory-port-range", 1, 0, 0, as_a_scm_t_subr (gdbscm_memory_port_range), "\ Return the memory range of the port as (start end)." }, { "memory-port-read-buffer-size", 1, 0, 0, - gdbscm_memory_port_read_buffer_size, + as_a_scm_t_subr (gdbscm_memory_port_read_buffer_size), "\ Return the size of the read buffer for the memory port." }, { "set-memory-port-read-buffer-size!", 2, 0, 0, - gdbscm_set_memory_port_read_buffer_size_x, + as_a_scm_t_subr (gdbscm_set_memory_port_read_buffer_size_x), "\ Set the size of the read buffer for the memory port.\n\ \n\ @@ -1332,12 +1332,12 @@ Set the size of the read buffer for the memory port.\n\ Returns: unspecified." }, { "memory-port-write-buffer-size", 1, 0, 0, - gdbscm_memory_port_write_buffer_size, + as_a_scm_t_subr (gdbscm_memory_port_write_buffer_size), "\ Return the size of the write buffer for the memory port." }, { "set-memory-port-write-buffer-size!", 2, 0, 0, - gdbscm_set_memory_port_write_buffer_size_x, + as_a_scm_t_subr (gdbscm_set_memory_port_write_buffer_size_x), "\ Set the size of the write buffer for the memory port.\n\ \n\ @@ -1351,7 +1351,7 @@ static const scheme_function private_port_functions[] = { #if 0 /* TODO */ { "%with-gdb-input-from-port", 2, 0, 0, - gdbscm_percent_with_gdb_input_from_port, + as_a_scm_t_subr (gdbscm_percent_with_gdb_input_from_port), "\ Temporarily set GDB's input port to PORT and then invoke THUNK.\n\ \n\ @@ -1362,7 +1362,7 @@ This procedure is experimental." }, #endif { "%with-gdb-output-to-port", 2, 0, 0, - gdbscm_percent_with_gdb_output_to_port, + as_a_scm_t_subr (gdbscm_percent_with_gdb_output_to_port), "\ Temporarily set GDB's output port to PORT and then invoke THUNK.\n\ \n\ @@ -1372,7 +1372,7 @@ Temporarily set GDB's output port to PORT and then invoke THUNK.\n\ This procedure is experimental." }, { "%with-gdb-error-to-port", 2, 0, 0, - gdbscm_percent_with_gdb_error_to_port, + as_a_scm_t_subr (gdbscm_percent_with_gdb_error_to_port), "\ Temporarily set GDB's error port to PORT and then invoke THUNK.\n\ \n\ |