2020-08-25 11:23:25 +00:00
|
|
|
#ifndef COSMOPOLITAN_TOOL_BUILD_LIB_BREAKPOINT_H_
|
|
|
|
#define COSMOPOLITAN_TOOL_BUILD_LIB_BREAKPOINT_H_
|
|
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
|
|
COSMOPOLITAN_C_START_
|
|
|
|
|
|
|
|
struct Breakpoints {
|
|
|
|
size_t i, n;
|
|
|
|
struct Breakpoint {
|
|
|
|
int64_t addr;
|
|
|
|
const char *symbol;
|
|
|
|
bool disable;
|
|
|
|
bool oneshot;
|
|
|
|
} * p;
|
|
|
|
};
|
|
|
|
|
|
|
|
ssize_t IsAtBreakpoint(struct Breakpoints *, int64_t);
|
2020-08-27 06:08:08 +00:00
|
|
|
ssize_t PushBreakpoint(struct Breakpoints *, struct Breakpoint *);
|
|
|
|
void PopBreakpoint(struct Breakpoints *);
|
2020-08-25 11:23:25 +00:00
|
|
|
|
|
|
|
COSMOPOLITAN_C_END_
|
|
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
|
|
#endif /* COSMOPOLITAN_TOOL_BUILD_LIB_BREAKPOINT_H_ */
|