Add proc_read_8
diff --git a/proc.c b/proc.c
index 6deb8da..4d6c0f7 100644
--- a/proc.c
+++ b/proc.c
@@ -1062,6 +1062,7 @@
return 0; \
}
+DEF_READER(proc_read_8, 8)
DEF_READER(proc_read_16, 16)
DEF_READER(proc_read_32, 32)
DEF_READER(proc_read_64, 64)
diff --git a/proc.h b/proc.h
index 01170f9..5576318 100644
--- a/proc.h
+++ b/proc.h
@@ -253,10 +253,11 @@
enum callback_status (*cb)(struct library_symbol *, void *),
void *data);
-/* Read 16, 32 or 64-bit quantity located at ADDR in PROC. The
+/* Read 8, 16, 32 or 64-bit quantity located at ADDR in PROC. The
* resulting value is stored in *LP. 0 is returned on success or a
* negative value on failure. This uses umovebytes under the hood
* (see backend.h). */
+int proc_read_8(struct process *proc, arch_addr_t addr, uint8_t *lp);
int proc_read_16(struct process *proc, arch_addr_t addr, uint16_t *lp);
int proc_read_32(struct process *proc, arch_addr_t addr, uint32_t *lp);
int proc_read_64(struct process *proc, arch_addr_t addr, uint64_t *lp);