aboutsummaryrefslogtreecommitdiff
path: root/gdb/guile/scm-breakpoint.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2015-09-07 19:34:31 +0100
committerPedro Alves <palves@redhat.com>2015-09-07 19:34:31 +0100
commit72e0248351fdc4ab125a16af24df031bca2275e4 (patch)
treece243844c02fff130389d32ed3b7eeec23a0e3fd /gdb/guile/scm-breakpoint.c
parent3d4fde6974a1237d79055ee734d99cc49c6fd3f9 (diff)
downloadgdb-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-breakpoint.c')
-rw-r--r--gdb/guile/scm-breakpoint.c71
1 files changed, 43 insertions, 28 deletions
diff --git a/gdb/guile/scm-breakpoint.c b/gdb/guile/scm-breakpoint.c
index a7e0fe0..eea9b46 100644
--- a/gdb/guile/scm-breakpoint.c
+++ b/gdb/guile/scm-breakpoint.c
@@ -1169,7 +1169,7 @@ static const scheme_integer_constant breakpoint_integer_constants[] =
static const scheme_function breakpoint_functions[] =
{
- { "make-breakpoint", 1, 0, 1, gdbscm_make_breakpoint,
+ { "make-breakpoint", 1, 0, 1, as_a_scm_t_subr (gdbscm_make_breakpoint),
"\
Create a GDB breakpoint object.\n\
\n\
@@ -1178,128 +1178,142 @@ Create a GDB breakpoint object.\n\
Returns:\n\
<gdb:breakpoint object" },
- { "register-breakpoint!", 1, 0, 0, gdbscm_register_breakpoint_x,
+ { "register-breakpoint!", 1, 0, 0,
+ as_a_scm_t_subr (gdbscm_register_breakpoint_x),
"\
Register a <gdb:breakpoint> object with GDB." },
- { "delete-breakpoint!", 1, 0, 0, gdbscm_delete_breakpoint_x,
+ { "delete-breakpoint!", 1, 0, 0, as_a_scm_t_subr (gdbscm_delete_breakpoint_x),
"\
Delete the breakpoint from GDB." },
- { "breakpoints", 0, 0, 0, gdbscm_breakpoints,
+ { "breakpoints", 0, 0, 0, as_a_scm_t_subr (gdbscm_breakpoints),
"\
Return a list of all GDB breakpoints.\n\
\n\
Arguments: none" },
- { "breakpoint?", 1, 0, 0, gdbscm_breakpoint_p,
+ { "breakpoint?", 1, 0, 0, as_a_scm_t_subr (gdbscm_breakpoint_p),
"\
Return #t if the object is a <gdb:breakpoint> object." },
- { "breakpoint-valid?", 1, 0, 0, gdbscm_breakpoint_valid_p,
+ { "breakpoint-valid?", 1, 0, 0, as_a_scm_t_subr (gdbscm_breakpoint_valid_p),
"\
Return #t if the breakpoint has not been deleted from GDB." },
- { "breakpoint-number", 1, 0, 0, gdbscm_breakpoint_number,
+ { "breakpoint-number", 1, 0, 0, as_a_scm_t_subr (gdbscm_breakpoint_number),
"\
Return the breakpoint's number." },
- { "breakpoint-type", 1, 0, 0, gdbscm_breakpoint_type,
+ { "breakpoint-type", 1, 0, 0, as_a_scm_t_subr (gdbscm_breakpoint_type),
"\
Return the type of the breakpoint." },
- { "breakpoint-visible?", 1, 0, 0, gdbscm_breakpoint_visible,
+ { "breakpoint-visible?", 1, 0, 0, as_a_scm_t_subr (gdbscm_breakpoint_visible),
"\
Return #t if the breakpoint is visible to the user." },
- { "breakpoint-location", 1, 0, 0, gdbscm_breakpoint_location,
+ { "breakpoint-location", 1, 0, 0,
+ as_a_scm_t_subr (gdbscm_breakpoint_location),
"\
Return the location of the breakpoint as specified by the user." },
- { "breakpoint-expression", 1, 0, 0, gdbscm_breakpoint_expression,
+ { "breakpoint-expression", 1, 0, 0,
+ as_a_scm_t_subr (gdbscm_breakpoint_expression),
"\
Return the expression of the breakpoint as specified by the user.\n\
Valid for watchpoints only, returns #f for non-watchpoints." },
- { "breakpoint-enabled?", 1, 0, 0, gdbscm_breakpoint_enabled_p,
+ { "breakpoint-enabled?", 1, 0, 0,
+ as_a_scm_t_subr (gdbscm_breakpoint_enabled_p),
"\
Return #t if the breakpoint is enabled." },
- { "set-breakpoint-enabled!", 2, 0, 0, gdbscm_set_breakpoint_enabled_x,
+ { "set-breakpoint-enabled!", 2, 0, 0,
+ as_a_scm_t_subr (gdbscm_set_breakpoint_enabled_x),
"\
Set the breakpoint's enabled state.\n\
\n\
Arguments: <gdb:breakpoint> boolean" },
- { "breakpoint-silent?", 1, 0, 0, gdbscm_breakpoint_silent_p,
+ { "breakpoint-silent?", 1, 0, 0, as_a_scm_t_subr (gdbscm_breakpoint_silent_p),
"\
Return #t if the breakpoint is silent." },
- { "set-breakpoint-silent!", 2, 0, 0, gdbscm_set_breakpoint_silent_x,
+ { "set-breakpoint-silent!", 2, 0, 0,
+ as_a_scm_t_subr (gdbscm_set_breakpoint_silent_x),
"\
Set the breakpoint's silent state.\n\
\n\
Arguments: <gdb:breakpoint> boolean" },
- { "breakpoint-ignore-count", 1, 0, 0, gdbscm_breakpoint_ignore_count,
+ { "breakpoint-ignore-count", 1, 0, 0,
+ as_a_scm_t_subr (gdbscm_breakpoint_ignore_count),
"\
Return the breakpoint's \"ignore\" count." },
{ "set-breakpoint-ignore-count!", 2, 0, 0,
- gdbscm_set_breakpoint_ignore_count_x,
+ as_a_scm_t_subr (gdbscm_set_breakpoint_ignore_count_x),
"\
Set the breakpoint's \"ignore\" count.\n\
\n\
Arguments: <gdb:breakpoint> count" },
- { "breakpoint-hit-count", 1, 0, 0, gdbscm_breakpoint_hit_count,
+ { "breakpoint-hit-count", 1, 0, 0,
+ as_a_scm_t_subr (gdbscm_breakpoint_hit_count),
"\
Return the breakpoint's \"hit\" count." },
- { "set-breakpoint-hit-count!", 2, 0, 0, gdbscm_set_breakpoint_hit_count_x,
+ { "set-breakpoint-hit-count!", 2, 0, 0,
+ as_a_scm_t_subr (gdbscm_set_breakpoint_hit_count_x),
"\
Set the breakpoint's \"hit\" count. The value must be zero.\n\
\n\
Arguments: <gdb:breakpoint> 0" },
- { "breakpoint-thread", 1, 0, 0, gdbscm_breakpoint_thread,
+ { "breakpoint-thread", 1, 0, 0, as_a_scm_t_subr (gdbscm_breakpoint_thread),
"\
Return the breakpoint's thread id or #f if there isn't one." },
- { "set-breakpoint-thread!", 2, 0, 0, gdbscm_set_breakpoint_thread_x,
+ { "set-breakpoint-thread!", 2, 0, 0,
+ as_a_scm_t_subr (gdbscm_set_breakpoint_thread_x),
"\
Set the thread id for this breakpoint.\n\
\n\
Arguments: <gdb:breakpoint> thread-id" },
- { "breakpoint-task", 1, 0, 0, gdbscm_breakpoint_task,
+ { "breakpoint-task", 1, 0, 0, as_a_scm_t_subr (gdbscm_breakpoint_task),
"\
Return the breakpoint's Ada task-id or #f if there isn't one." },
- { "set-breakpoint-task!", 2, 0, 0, gdbscm_set_breakpoint_task_x,
+ { "set-breakpoint-task!", 2, 0, 0,
+ as_a_scm_t_subr (gdbscm_set_breakpoint_task_x),
"\
Set the breakpoint's Ada task-id.\n\
\n\
Arguments: <gdb:breakpoint> task-id" },
- { "breakpoint-condition", 1, 0, 0, gdbscm_breakpoint_condition,
+ { "breakpoint-condition", 1, 0, 0,
+ as_a_scm_t_subr (gdbscm_breakpoint_condition),
"\
Return the breakpoint's condition as specified by the user.\n\
Return #f if there isn't one." },
- { "set-breakpoint-condition!", 2, 0, 0, gdbscm_set_breakpoint_condition_x,
+ { "set-breakpoint-condition!", 2, 0, 0,
+ as_a_scm_t_subr (gdbscm_set_breakpoint_condition_x),
"\
Set the breakpoint's condition.\n\
\n\
Arguments: <gdb:breakpoint> condition\n\
condition: a string" },
- { "breakpoint-stop", 1, 0, 0, gdbscm_breakpoint_stop,
+ { "breakpoint-stop", 1, 0, 0, as_a_scm_t_subr (gdbscm_breakpoint_stop),
"\
Return the breakpoint's stop predicate.\n\
Return #f if there isn't one." },
- { "set-breakpoint-stop!", 2, 0, 0, gdbscm_set_breakpoint_stop_x,
+ { "set-breakpoint-stop!", 2, 0, 0,
+ as_a_scm_t_subr (gdbscm_set_breakpoint_stop_x),
"\
Set the breakpoint's stop predicate.\n\
\n\
@@ -1307,7 +1321,8 @@ Set the breakpoint's stop predicate.\n\
procedure: A procedure of one argument, the breakpoint.\n\
Its result is true if program execution should stop." },
- { "breakpoint-commands", 1, 0, 0, gdbscm_breakpoint_commands,
+ { "breakpoint-commands", 1, 0, 0,
+ as_a_scm_t_subr (gdbscm_breakpoint_commands),
"\
Return the breakpoint's commands." },