Rev 5191 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5191 | Rev 6324 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | /* Remote target system call callback support. |
1 | /* Remote target system call callback support. |
2 | Copyright 1997-2013 Free Software Foundation, Inc. |
2 | Copyright (C) 1997-2015 Free Software Foundation, Inc. |
3 | Contributed by Cygnus Solutions. |
3 | Contributed by Cygnus Solutions. |
Line 4... | Line 4... | ||
4 | 4 | ||
Line 5... | Line 5... | ||
5 | This file is part of GDB. |
5 | This file is part of GDB. |
Line 57... | Line 57... | ||
57 | /* Mapping of host/target values. */ |
57 | /* Mapping of host/target values. */ |
58 | /* ??? For debugging purposes, one might want to add a string of the |
58 | /* ??? For debugging purposes, one might want to add a string of the |
59 | name of the symbol. */ |
59 | name of the symbol. */ |
Line 60... | Line 60... | ||
60 | 60 | ||
- | 61 | typedef struct { |
|
61 | typedef struct { |
62 | const char *name; |
62 | int host_val; |
63 | int host_val; |
63 | int target_val; |
64 | int target_val; |
Line 64... | Line 65... | ||
64 | } CB_TARGET_DEFS_MAP; |
65 | } CB_TARGET_DEFS_MAP; |
Line 86... | Line 87... | ||
86 | int (*write) (host_callback *,int, const char *, int); |
87 | int (*write) (host_callback *,int, const char *, int); |
87 | int (*write_stdout) (host_callback *, const char *, int); |
88 | int (*write_stdout) (host_callback *, const char *, int); |
88 | void (*flush_stdout) (host_callback *); |
89 | void (*flush_stdout) (host_callback *); |
89 | int (*write_stderr) (host_callback *, const char *, int); |
90 | int (*write_stderr) (host_callback *, const char *, int); |
90 | void (*flush_stderr) (host_callback *); |
91 | void (*flush_stderr) (host_callback *); |
91 | int (*stat) (host_callback *, const char *, struct stat *); |
92 | int (*to_stat) (host_callback *, const char *, struct stat *); |
92 | int (*fstat) (host_callback *, int, struct stat *); |
93 | int (*to_fstat) (host_callback *, int, struct stat *); |
93 | int (*lstat) (host_callback *, const char *, struct stat *); |
94 | int (*to_lstat) (host_callback *, const char *, struct stat *); |
94 | int (*ftruncate) (host_callback *, int, long); |
95 | int (*ftruncate) (host_callback *, int, long); |
95 | int (*truncate) (host_callback *, const char *, long); |
96 | int (*truncate) (host_callback *, const char *, long); |
96 | int (*pipe) (host_callback *, int *); |
97 | int (*pipe) (host_callback *, int *); |
Line 97... | Line 98... | ||
97 | 98 | ||
Line 314... | Line 315... | ||
314 | int cb_target_to_host_signal (host_callback *, int); |
315 | int cb_target_to_host_signal (host_callback *, int); |
Line 315... | Line 316... | ||
315 | 316 | ||
316 | /* Translate host signal number to target. */ |
317 | /* Translate host signal number to target. */ |
Line -... | Line 318... | ||
- | 318 | int cb_host_to_gdb_signal (host_callback *, int); |
|
- | 319 | ||
- | 320 | /* Translate symbols into human readable strings. */ |
|
- | 321 | const char *cb_host_str_syscall (host_callback *, int); |
|
- | 322 | const char *cb_host_str_errno (host_callback *, int); |
|
- | 323 | const char *cb_host_str_signal (host_callback *, int); |
|
- | 324 | const char *cb_target_str_syscall (host_callback *, int); |
|
- | 325 | const char *cb_target_str_errno (host_callback *, int); |
|
317 | int cb_host_to_gdb_signal (host_callback *, int); |
326 | const char *cb_target_str_signal (host_callback *, int); |
318 | 327 | ||
319 | /* Translate host stat struct to target. |
328 | /* Translate host stat struct to target. |
320 | If stat struct ptr is NULL, just compute target stat struct size. |
329 | If stat struct ptr is NULL, just compute target stat struct size. |