radare2/libr/anal/ctx.c
pancake cdd80105cb * Initial dummy implementation of r_bp
- Managing breakpoints for the core
  - Initial work on the support for breakpoints
    for the r_debug plugins
* Adding some dummy work for context support in r_anal
* Make asm_set_bits check per-plugin supported bit sizes
  - Now asm plugins have 'arch' and 'bits' attributes
  - Used to setup default callbacks for undefined 'assemble' callback
  - Also used to avoid setting asm.bits eval variable to invalid values
  - We need a way to display all this data
* Added DEFAULT_ARCH in config.h to setup default arch to asm and anal
* Added r_config_set_i_cb()
  - Make r_config_set restore value when callback is called and fails
  - asm.bits now has a config callback
* Added _LAST in some r_anal enums
2009-04-11 21:22:20 +00:00

34 lines
600 B
C

/* radare - LGPL - Copyright 2009 */
/* nibble<.ds@gmail.com> */
/* pancake<nopcode.org> */
#include <r_anal.h>
R_API void r_anal_ctx_init(struct r_anal_ctx_t *ctx)
{
}
R_API struct r_anal_ctx_t *r_anal_ctx_new()
{
struct r_anal_ctx_t *ctx = MALLOC_STRUCT(struct r_anal_ctx_t);
r_anal_ctx_init(ctx);
return ctx;
}
R_API void r_anal_ctx_reset(struct r_anal_t *anal)
{
}
#if 0
/* getter/setter */
R_API struct r_anal_ctx_t *r_anal_ctx_get(struct r_anal_t *anal)
{
return anal->ctx;
}
R_API void r_anal_ctx_set(struct r_anal_t *anal, struct r_anal_ctx_t *ctx)
{
anal->ctx = ctx;
}
#endif