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

« back to all changes in this revision

Viewing changes to src/dbg/darwin/debug.c

  • 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:
1
1
/*
2
 
 * Copyright (C) 2008
 
2
 * Copyright (C) 2008, 2009
3
3
 *       pancake <youterm.com>
4
4
 *
5
5
 * radare is part of the radare project
214
214
        return 0;
215
215
}
216
216
 
 
217
#if __arm || __arm__
 
218
void debug_arch_x86_trap_set(int pid, int foo)
 
219
{
 
220
        /* do nothing here */
 
221
}
 
222
#else
217
223
// XXX intel specific
218
224
#define EFLAGS_TRAP_FLAG 0x100
219
225
void debug_arch_x86_trap_set(int pid, int foo)
225
231
        else regs.__eflags &= ~EFLAGS_TRAP_FLAG;
226
232
        debug_setregs(pid_to_task(pid), &regs);
227
233
}
 
234
#endif
228
235
 
229
236
int QMACHINE_THREAD_STATE_COUNT = sizeof(regs_t)/4;
230
237
int debug_os_steps()
455
462
                        //fprintf(stderr, "debug_list_threads: %s\n", MACH_ERROR_STRING(err));
456
463
                } else{
457
464
                        th->status = 0; // XXX TODO
458
 
#if __POWERPC__
 
465
#if __arm__
 
466
                        th->addr = state.r15;
 
467
#elif __POWERPC__
459
468
                        th->addr = state.srr0;
460
469
#else
461
470
                        th->addr = state.__eip;