fix arm and ppc

This commit is contained in:
Stefani Seibold 2015-05-07 08:02:24 +02:00
parent 8f30a9d2c9
commit c711f9e033
3 changed files with 6 additions and 4 deletions

View File

@ -24,6 +24,8 @@
#ifndef _INC_BREAKPOINT_H
#define _INC_BREAKPOINT_H
#include <stdlib.h>
#include "sysdep.h"
#include "forward.h"

View File

@ -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_CPSR] = DWARF_REG_LOC(DWARF_ARM_CPSR);
c->ip = fetch_reg(as->task, offsetof(struct pt_regs, ARM_pc));
c->cfa = fetch_reg(as->task, offsetof(struct pt_regs, ARM_sp));
c->ip = fetch_reg(c->task, offsetof(struct pt_regs, ARM_pc));
c->cfa = fetch_reg(c->task, offsetof(struct pt_regs, ARM_sp));
c->use_prev_instr = 0;

View File

@ -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_FRAME_POINTER] = DWARF_REG_LOC(DWARF_PPC_FRAME_POINTER);
c->ip = fetch_reg(as->task, PT_LNK);
c->cfa = fetch_reg(as->task, PT_R1);
c->ip = fetch_reg(c->task, PT_LNK);
c->cfa = fetch_reg(c->task, PT_R1);
c->use_prev_instr = 0;