diff options
author | Gerhard Stenzel <stenzel@de.ibm.com> | 2008-03-28 14:18:30 +1100 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2008-03-28 14:36:15 +1100 |
commit | ada397e93d6002021f5bf4ba060aa4ecd5dea3e5 (patch) | |
tree | 07202363157d1824916b68ee5057278ecc43aeaf /drivers/block | |
parent | 36d29edb6dded938bf07f741a0bb0f2a7116e617 (diff) |
[POWERPC] spufs: fix incorrect file descriptors in SPU coredump note names
At present, ppu-gdb can't trace spu infomation with coredump generated
by the kernel. While the core dumps notes have correct contents, they
have the wrong names, as the file descriptors used to generate the note
names are off-by-one. An application that opens a SPE context as fd 3,
the current core dump code will generate notes like:
SPU/4/mem
SPU/4/regs
etc.
This confuses GDB, which knows it is looking for SPE context 3 (from
parsing the spu_context_run system call arguments), and cannot find
any notes that match context 3.
This change corrects the file descriptor counting, to only increment
the fd until after we've written the note name.
Signed-off-by: Gerhard Stenzel <stenzel@de.ibm.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'drivers/block')
0 files changed, 0 insertions, 0 deletions