~ubuntu-branches/ubuntu/saucy/radare/saucy

« back to all changes in this revision

Viewing changes to src/dbg/arch/arm.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Reichel
  • Date: 2009-05-22 19:01:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090522190100-qqp4aja112976t5v
Tags: 20090522-1
* new hg checkout
 - added 'cX' command to compare like 'cc' does but using two side hexdiff dump format
 - specify pointer & data size in pm with %<size>
 - add graph.weight
 - fix 'c' command (missing radare_read(0))
 - added /P search command that searchs for proximity in bytelevel distance
 - added more 'ag' and 'gu' commands to readline autocompletion.
 - fix build of debugger for non-linux systems
 - fixed code analysis at startup
 - more work in graphs (graph.split)
 - fixups in x86 code analysis

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
        ARMBP_LAST
23
23
} ArmBpType;
24
24
 
25
 
//#define regs_t elf_gregset_t
26
 
/* linux */
27
 
#define R_R0(x) x[0]
28
 
#define R_R1(x) x[1]
29
 
#define R_R2(x) x[2]
30
 
#define R_R3(x) x[3]
31
 
#define R_SP(x) x[14]
32
 
#define R_PC(x) x[15]
33
 
 
34
 
//#define SYSCALL_OPS "\xcd\x80\xcc\x90"
35
 
#define SYSCALL_OPS "\xef\x90\x00\x00"
36
 
#define SYSCALL_OPS_little "\x00\x00\x90\xef"
37
 
 
38
 
#define CPU_ARG0(x) R_R0(x)
39
 
#define CPU_ARG1(x) R_R1(x)
40
 
#define CPU_ARG2(x) R_R2(x)
41
 
#define CPU_ARG3(x) R_R3(x)
42
 
#define CPU_SP(x) R_SP(x)
43
 
#define CPU_PC(x) R_PC(x)
44
 
#define CPU_RET(x) R_R0(x) /* return value */
45
 
 
 
25
#if __linux__
 
26
#include "arm-linux.h"
 
27
#elif __APPLE__
 
28
#include "arm-darwin.h"
 
29
#endif
46
30
 
47
31
#endif