Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167797
b: refs/heads/master
c: cde3f86
h: refs/heads/master
i:
  167795: 196177c
v: v3
  • Loading branch information
Artem Bityutskiy authored and Russell King committed Oct 14, 2009
1 parent 8c5ba02 commit b10eb22
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a771fe6e4e3e58f2056823ef9c30a554ec48f453
refs/heads/master: cde3f8607350666c4dd120dbbdbd9c70ffb2ea61
3 changes: 3 additions & 0 deletions trunk/arch/arm/include/asm/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ extern int elf_check_arch(const struct elf32_hdr *);
extern int arm_elf_read_implies_exec(const struct elf32_hdr *, int);
#define elf_read_implies_exec(ex,stk) arm_elf_read_implies_exec(&(ex), stk)

int dump_task_regs(struct task_struct *t, elf_gregset_t *elfregs);
#define ELF_CORE_COPY_TASK_REGS dump_task_regs

#define USE_ELF_CORE_DUMP
#define ELF_EXEC_PAGESIZE 4096

Expand Down
9 changes: 9 additions & 0 deletions trunk/arch/arm/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,15 @@ copy_thread(unsigned long clone_flags, unsigned long stack_start,
return 0;
}

/*
* Fill in the task's elfregs structure for a core dump.
*/
int dump_task_regs(struct task_struct *t, elf_gregset_t *elfregs)
{
elf_core_copy_regs(elfregs, task_pt_regs(t));
return 1;
}

/*
* fill in the fpe structure for a core dump...
*/
Expand Down

0 comments on commit b10eb22

Please sign in to comment.