diff options
author | Mattias Andrée <maandree@kth.se> | 2023-06-25 14:31:34 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2023-06-25 14:31:34 +0200 |
commit | 8e20ec32e64b1e57972835f15e387ac1e8d6a8f6 (patch) | |
tree | 4804641f721a0ed9a16af521e4d44246856a27a7 /common.h | |
parent | Add more system call formattings (diff) | |
download | sctrace-8e20ec32e64b1e57972835f15e387ac1e8d6a8f6.tar.gz sctrace-8e20ec32e64b1e57972835f15e387ac1e8d6a8f6.tar.bz2 sctrace-8e20ec32e64b1e57972835f15e387ac1e8d6a8f6.tar.xz |
Add -a and trivial improvements
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | common.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -115,10 +115,12 @@ const char *get_errno_name(int err); const char *get_signum_name(int sig); /* memory.c */ +extern size_t abbreviate_memory; char *get_string(pid_t pid, unsigned long int addr, size_t *lenp, const char **errorp); int get_struct(pid_t pid, unsigned long int addr, void *out, size_t size, const char **errorp); char *get_memory(pid_t pid, unsigned long int addr, size_t n, const char **errorp); char *escape_memory(const char *str, size_t m); +char *escape_string(const char *str, size_t m); char *get_escaped_string(pid_t pid, unsigned long int addr, size_t *lenp, const char **errorp); char *get_escaped_memory(pid_t pid, unsigned long int addr, size_t n, const char **errorp); |