File: arg.c

package info (click to toggle)
radare2 0.9.6-3.1%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 17,496 kB
  • ctags: 45,959
  • sloc: ansic: 240,999; sh: 3,645; makefile: 2,520; python: 1,212; asm: 312; ruby: 214; awk: 209; perl: 188; lisp: 169; java: 23; xml: 17; php: 6
file content (21 lines) | stat: -rw-r--r-- 389 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* radare - LGPL - Copyright 2010 pancake<nopcode.org> */

#include <r_debug.h>

enum {
	TYPE_FASTCALL,
	TYPE_SYSCALL,
	// ... TODO
};

R_API ut64 r_debug_arg_get (RDebug *dbg, int type, int num) {
	char reg[8];
	// TODO
	sprintf (reg, "a%d", num);
	return r_debug_reg_get (dbg, reg);
}

R_API int r_debug_arg_set (RDebug *dbg, int fast, int num, ut64 value) {
	// TODO
	return R_FALSE;
}