mirror of
https://github.com/sstefani/mtrace.git
synced 2025-12-06 16:56:41 +08:00
fix arm and ppc
This commit is contained in:
parent
8f30a9d2c9
commit
c711f9e033
@ -24,6 +24,8 @@
|
|||||||
#ifndef _INC_BREAKPOINT_H
|
#ifndef _INC_BREAKPOINT_H
|
||||||
#define _INC_BREAKPOINT_H
|
#define _INC_BREAKPOINT_H
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "sysdep.h"
|
#include "sysdep.h"
|
||||||
#include "forward.h"
|
#include "forward.h"
|
||||||
|
|
||||||
|
|||||||
@ -139,8 +139,8 @@ int dwarf_arch_init_unwind(struct dwarf_addr_space *as)
|
|||||||
c->loc[DWARF_ARM_PC] = DWARF_REG_LOC(DWARF_ARM_PC);
|
c->loc[DWARF_ARM_PC] = DWARF_REG_LOC(DWARF_ARM_PC);
|
||||||
c->loc[DWARF_ARM_CPSR] = DWARF_REG_LOC(DWARF_ARM_CPSR);
|
c->loc[DWARF_ARM_CPSR] = DWARF_REG_LOC(DWARF_ARM_CPSR);
|
||||||
|
|
||||||
c->ip = fetch_reg(as->task, offsetof(struct pt_regs, ARM_pc));
|
c->ip = fetch_reg(c->task, offsetof(struct pt_regs, ARM_pc));
|
||||||
c->cfa = fetch_reg(as->task, offsetof(struct pt_regs, ARM_sp));
|
c->cfa = fetch_reg(c->task, offsetof(struct pt_regs, ARM_sp));
|
||||||
|
|
||||||
c->use_prev_instr = 0;
|
c->use_prev_instr = 0;
|
||||||
|
|
||||||
|
|||||||
@ -174,8 +174,8 @@ int dwarf_arch_init_unwind(struct dwarf_addr_space *as)
|
|||||||
c->loc[DWARF_PPC_FPSCR] = DWARF_REG_LOC(DWARF_PPC_FPSCR);
|
c->loc[DWARF_PPC_FPSCR] = DWARF_REG_LOC(DWARF_PPC_FPSCR);
|
||||||
c->loc[DWARF_PPC_FRAME_POINTER] = DWARF_REG_LOC(DWARF_PPC_FRAME_POINTER);
|
c->loc[DWARF_PPC_FRAME_POINTER] = DWARF_REG_LOC(DWARF_PPC_FRAME_POINTER);
|
||||||
|
|
||||||
c->ip = fetch_reg(as->task, PT_LNK);
|
c->ip = fetch_reg(c->task, PT_LNK);
|
||||||
c->cfa = fetch_reg(as->task, PT_R1);
|
c->cfa = fetch_reg(c->task, PT_R1);
|
||||||
|
|
||||||
c->use_prev_instr = 0;
|
c->use_prev_instr = 0;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user