diff options
Diffstat (limited to 'include/gdb/callback.h')
-rw-r--r-- | include/gdb/callback.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/gdb/callback.h b/include/gdb/callback.h index 4628b7e..80299f1 100644 --- a/include/gdb/callback.h +++ b/include/gdb/callback.h @@ -59,6 +59,7 @@ name of the symbol. */ typedef struct { + const char *name; int host_val; int target_val; } CB_TARGET_DEFS_MAP; @@ -316,6 +317,14 @@ int cb_target_to_host_signal (host_callback *, int); /* Translate host signal number to target. */ int cb_host_to_gdb_signal (host_callback *, int); +/* Translate symbols into human readable strings. */ +const char *cb_host_str_syscall (host_callback *, int); +const char *cb_host_str_errno (host_callback *, int); +const char *cb_host_str_signal (host_callback *, int); +const char *cb_target_str_syscall (host_callback *, int); +const char *cb_target_str_errno (host_callback *, int); +const char *cb_target_str_signal (host_callback *, int); + /* Translate host stat struct to target. If stat struct ptr is NULL, just compute target stat struct size. Result is size of target stat struct or 0 if error. */ |