aboutsummaryrefslogtreecommitdiff
path: root/gdb/guile/scm-exception.c
diff options
context:
space:
mode:
authorDoug Evans <xdje42@gmail.com>2014-05-21 11:52:51 -0700
committerDoug Evans <xdje42@gmail.com>2014-05-21 11:52:51 -0700
commit4a2722c51f6acc5d4c410b9060d44afe96c294bc (patch)
tree09c1a7fb81eef15fbfff34bc70723bbc0cb24401 /gdb/guile/scm-exception.c
parent6a3cb8e88a739c967bb9b2d8774bf96b87a7fda4 (diff)
downloadgdb-4a2722c51f6acc5d4c410b9060d44afe96c294bc.zip
gdb-4a2722c51f6acc5d4c410b9060d44afe96c294bc.tar.gz
gdb-4a2722c51f6acc5d4c410b9060d44afe96c294bc.tar.bz2
Make exception throwers have void result. Delete unused gdbscm_scm_to_target_string_unsafe.
* scm-exception.c (gdbscm_invalid_object_error): Make result is void. (gdbscm_out_of_range_error): Ditto. (gdbscm_memory_error): Ditto. * scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete. * guile-internal.h (gdbscm_invalid_object_error): Update. (gdbscm_out_of_range_error): Update. (gdbscm_memory_error): Update. (gdbscm_scm_to_target_string_unsafe): Delete.
Diffstat (limited to 'gdb/guile/scm-exception.c')
-rw-r--r--gdb/guile/scm-exception.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/guile/scm-exception.c b/gdb/guile/scm-exception.c
index a96a350..ffe83ed 100644
--- a/gdb/guile/scm-exception.c
+++ b/gdb/guile/scm-exception.c
@@ -332,7 +332,7 @@ gdbscm_make_invalid_object_error (const char *subr, int arg_pos, SCM bad_value,
/* Throw an invalid-object error.
OBJECT is the name of the kind of object that is invalid. */
-SCM
+void
gdbscm_invalid_object_error (const char *subr, int arg_pos, SCM bad_value,
const char *object)
{
@@ -356,7 +356,7 @@ gdbscm_make_out_of_range_error (const char *subr, int arg_pos, SCM bad_value,
/* Throw an out-of-range error.
This is the standard Guile out-of-range exception. */
-SCM
+void
gdbscm_out_of_range_error (const char *subr, int arg_pos, SCM bad_value,
const char *error)
{
@@ -387,7 +387,7 @@ gdbscm_make_memory_error (const char *subr, const char *msg, SCM args)
/* Throw a gdb:memory-error exception. */
-SCM
+void
gdbscm_memory_error (const char *subr, const char *msg, SCM args)
{
SCM exception = gdbscm_make_memory_error (subr, msg, args);