~ubuntu-branches/ubuntu/maverick/radare/maverick

« back to all changes in this revision

Viewing changes to src/dbg/arch/mips64-bp.c

  • Committer: Bazaar Package Importer
  • Author(s): SevenMachines
  • Date: 2010-09-07 15:44:27 UTC
  • mfrom: (1.1.3 upstream) (2.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100907154427-37u92vu12tqabqqz
Tags: 1:1.5.2-3ubuntu1
* Merge from debian testing (LP: #621016)
* debian/control:
     + libvala-dev transition to libval-0.10-dev (LP: #618809) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
        return 4;
69
69
}
70
70
 
71
 
int arch_set_wp_hw_n(int dr_free, u64 addr, int type)
 
71
int arch_set_wp_hw_n(int dr_free, ut64 addr, int type)
72
72
{
73
73
        return -1;
74
74
}
75
75
 
76
 
int arch_set_wp_hw(u64 addr, int type)
 
76
int arch_set_wp_hw(ut64 addr, int type)
77
77
{
78
78
        return -1;
79
79
}
80
80
 
81
81
/* hook hardware bps to software ones..arm can't :/ */
82
 
int arch_set_bp_hw(struct bp_t *bp, u64 addr)
 
82
int arch_set_bp_hw(struct bp_t *bp, ut64 addr)
83
83
{
84
84
        return arch_set_bp_soft(bp, addr);
85
85
}
106
106
        return 4;
107
107
}
108
108
 
109
 
int arch_set_bp_soft(struct bp_t *bp, u64 addr)
 
109
int arch_set_bp_soft(struct bp_t *bp, ut64 addr)
110
110
{
111
111
        int endian = config_get("cfg.bigendian");
112
112
        char *breakpoint = mips_bps[endian&1];
148
148
int arch_restore_bp(struct bp_t *bp)
149
149
{
150
150
        regs_t  regs;
151
 
        u64 off = arch_pc()-4;
 
151
        ut64 off = arch_pc()-4;
152
152
        arch_jmp(off);
153
153
        debug_getregs(ps.tid, &regs);
154
154
        arch_bp_soft_disable(bp);