mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-31 10:22:37 +00:00
368aeaf974
* Move empty strsub.c to util/ * r_flags depends on r_cons (yeah, it shouldnt..) - just for tmp fun * Fix some methods and declarations in r_bp and r_core vapis --HG-- rename : libr/cons/strsub.c => libr/util/strsub.c
48 lines
1.1 KiB
Vala
48 lines
1.1 KiB
Vala
/* radare - LGPL - Copyright 2009-2010 pancake<nopcode.org> */
|
|
|
|
[Compact]
|
|
[CCode (cheader_filename="r_bp.h", cname="struct r_bp_t", free_function="r_bp_free", cprefix="r_bp_")]
|
|
public class Radare.RBreakpoint {
|
|
public RBreakpoint ();
|
|
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);
|
|
|
|
/* TODO: deprecate the list() method.. language iterators should be enought */
|
|
public int list (bool rad);
|
|
|
|
[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")]
|
|
public struct Item {
|
|
uint64 addr;
|
|
int size;
|
|
int rwx;
|
|
int hw;
|
|
int trace;
|
|
int enabled;
|
|
uint8* obytes;
|
|
uint8* bbytes;
|
|
int[] pids;
|
|
}
|
|
}
|