aboutsummaryrefslogtreecommitdiff
path: root/gdb/guile/scm-string.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-string.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-string.c')
-rw-r--r--gdb/guile/scm-string.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/gdb/guile/scm-string.c b/gdb/guile/scm-string.c
index 87ecabf..c8d81c4 100644
--- a/gdb/guile/scm-string.c
+++ b/gdb/guile/scm-string.c
@@ -183,19 +183,6 @@ gdbscm_scm_from_string (const char *string, size_t len,
return scm_result;
}
-/* Convert an SCM string to a target string.
- This function will thrown a conversion error if there's a problem.
- Space for the result is allocated with malloc, caller must free.
- It is an error to call this if STRING is not a string. */
-
-char *
-gdbscm_scm_to_target_string_unsafe (SCM string, size_t *lenp,
- struct gdbarch *gdbarch)
-{
- return scm_to_stringn (string, lenp, target_charset (gdbarch),
- SCM_FAILED_CONVERSION_ERROR);
-}
-
/* (string->argv string) -> list
Return list of strings split up according to GDB's argv parsing rules.
This is useful when writing GDB commands in Scheme. */