/usr/share/vala/vapi/r_bp.vapi is in radare2-vala 0.9.6-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | /* radare - LGPL - Copyright 2009-2010 pancake<nopcode.org> */
[Compact]
[CCode (cheader_filename="r_bp.h,r_types_base.h,r_list.h", cname="RBreakpoint", free_function="r_bp_free", cprefix="r_bp_")]
public class Radare.RBreakpoint {
public RBreakpoint ();
public RList<RBreakpoint.Item> bps;
public RList<RBreakpoint.Trace> traces;
public bool use (string arch);
public void enable (uint64 addr, bool enabled);
public unowned Item? at_addr (uint64 addr, int rwx);
public unowned Item add_sw (uint64 addr, int len, int rwx);
public unowned Item add_hw (uint64 addr, int len, int rwx);
public bool add_fault (uint64 addr, int len, int rwx);
public int add_cond (string cond);
public bool del (uint64 addr);
public bool del_cond (int idx);
//public int get_bytes(out uint8 *buf, int len, bool bigendian, int idx);
public int set_trace (uint64 addr, int set);
public int restore (bool set);
public int recoil (uint64 addr);
/* TODO: deprecate the list() method.. language iterators should be enought */
public int list (bool rad);
public void traptrace_enable (bool enable);
public void traptrace_reset (bool hard);
public uint64 traptrace_next (uint64 addr);
public int traptrace_add (uint64 from, uint64 to);
public int traptrace_free_at (uint64 from);
public void traptrace_list ();
public int traptrace_at (uint64 from, int len);
// XXX public void traptrace_new ();
[CCode (cprefix="R_BP_PROT_")]
public enum Protection {
READ,
WRITE,
EXEC
}
[CCode (cprefix="R_BP_TYPE_")]
public enum Type {
SW,
HW,
COND
}
[Compact]
[CCode (cname="RBreakpointItem", free_function="")]
public class Item {
uint64 addr;
int size;
int rwx;
int hw;
int trace;
int enabled;
int recoil;
uint8* obytes;
uint8* bbytes;
char* data;
int[] pids;
}
[Compact]
[CCode (cname="RBreakpointTrace", free_function="")]
public class Trace {
uint64 addr;
uint64 addr_end;
uint8 *traps;
uint8 *buffer;
uint8 *bits;
int length;
int bitlen;
}
}
|