Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 163484
b: refs/heads/master
c: 97efbbd
h: refs/heads/master
v: v3
  • Loading branch information
Matt Fleming committed Aug 21, 2009
1 parent 4905297 commit 394f1f5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fb3f3e7fc6d4afb32f9eba32124beaf40313de3c
refs/heads/master: 97efbbd5886e27b61c19c77d41f6491f5d96fbd0
1 change: 1 addition & 0 deletions trunk/arch/sh/include/asm/dwarf.h
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ struct dwarf_reg {
unsigned long addr;
unsigned long flags;
#define DWARF_REG_OFFSET (1 << 0)
#define DWARF_VAL_OFFSET (1 << 1)
};

/*
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/sh/kernel/dwarf.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
*
* TODO:
* - DWARF64 doesn't work.
* - Registers with DWARF_VAL_OFFSET rules aren't handled properly.
*/

/* #define DEBUG */
Expand Down Expand Up @@ -499,7 +500,7 @@ static int dwarf_cfa_execute_insns(unsigned char *insn_start,
count = dwarf_read_leb128(current_insn, &offset);
offset *= cie->data_alignment_factor;
regp = dwarf_frame_alloc_reg(frame, reg);
regp->flags |= DWARF_REG_OFFSET;
regp->flags |= DWARF_VAL_OFFSET;
regp->addr = offset;
break;
case DW_CFA_GNU_args_size:
Expand Down

0 comments on commit 394f1f5

Please sign in to comment.