[Cbe-oss-dev] How is a debugger supposed to find the SPU's PC value in a CBE core file?

John DelSignore jdelsign at totalviewtech.com
Thu Jul 12 22:20:14 EST 2007


Hi,

When I look at the notes in a CBE core file, the npc file seems to be missing. For example:

alg:/nfs/algae/u0/home/jdelsign/tvbld/linux-power/algae/totalview/debugger/src/tests/cli/core_test/ppu-gcc_4.1.1_32>readelf -n core.27295 

Notes at offset 0x00000454 with length 0x00082398:
  Owner         Data size       Description
  CORE          0x0000010c      NT_PRSTATUS (prstatus structure)
  CORE          0x00000080      NT_PRPSINFO (prpsinfo structure)
  CORE          0x000000b0      NT_AUXV (auxiliary vector)
  CORE          0x00000108      NT_FPREGSET (floating point registers)
  SPU/21/regs           0x00000800      NT_PRSTATUS (prstatus structure)
  SPU/21/fpcr           0x00000010      NT_PRSTATUS (prstatus structure)
  SPU/21/lslr           0x0000000b      NT_PRSTATUS (prstatus structure)
  SPU/21/decr           0x0000000b      NT_PRSTATUS (prstatus structure)
  SPU/21/decr_status            0x0000000b      NT_PRSTATUS (prstatus structure)
  SPU/21/mem            0x00040000      NT_PRSTATUS (prstatus structure)
  SPU/21/signal1                0x00000004      NT_PRSTATUS (prstatus structure)
  SPU/21/signal1_type           0x00000002      NT_PRSTATUS (prstatus structure)
  SPU/21/signal2                0x00000004      NT_PRSTATUS (prstatus structure)
  SPU/21/signal2_type           0x00000002      NT_PRSTATUS (prstatus structure)
  SPU/21/event_mask             0x00000008      NT_PRSTATUS (prstatus structure)
  SPU/21/event_status           0x00000008      NT_PRSTATUS (prstatus structure)
  SPU/21/mbox_info              0x00000004      NT_PRSTATUS (prstatus structure)
  SPU/21/ibox_info              0x00000004      NT_PRSTATUS (prstatus structure)
  SPU/21/wbox_info              0x00000010      NT_PRSTATUS (prstatus structure)
  SPU/21/dma_info               0x00000228      NT_PRSTATUS (prstatus structure)
  SPU/21/proxydma_info          0x00000118      NT_PRSTATUS (prstatus structure)
  SPU/21/object-id              0x00000013      NT_PRSTATUS (prstatus structure)
  SPU/4/regs            0x00000800      NT_PRSTATUS (prstatus structure)
  SPU/4/fpcr            0x00000010      NT_PRSTATUS (prstatus structure)
  SPU/4/lslr            0x0000000b      NT_PRSTATUS (prstatus structure)
  SPU/4/decr            0x0000000b      NT_PRSTATUS (prstatus structure)
  SPU/4/decr_status             0x0000000b      NT_PRSTATUS (prstatus structure)
  SPU/4/mem             0x00040000      NT_PRSTATUS (prstatus structure)
  SPU/4/signal1         0x00000004      NT_PRSTATUS (prstatus structure)
  SPU/4/signal1_type            0x00000002      NT_PRSTATUS (prstatus structure)
  SPU/4/signal2         0x00000004      NT_PRSTATUS (prstatus structure)
  SPU/4/signal2_type            0x00000002      NT_PRSTATUS (prstatus structure)
  SPU/4/event_mask              0x00000008      NT_PRSTATUS (prstatus structure)
  SPU/4/event_status            0x00000008      NT_PRSTATUS (prstatus structure)
  SPU/4/mbox_info               0x00000004      NT_PRSTATUS (prstatus structure)
  SPU/4/ibox_info               0x00000004      NT_PRSTATUS (prstatus structure)
  SPU/4/wbox_info               0x00000010      NT_PRSTATUS (prstatus structure)
  SPU/4/dma_info                0x00000228      NT_PRSTATUS (prstatus structure)
  SPU/4/proxydma_info           0x00000118      NT_PRSTATUS (prstatus structure)
  SPU/4/object-id               0x00000013      NT_PRSTATUS (prstatus structure)
  CORE          0x0000010c      NT_PRSTATUS (prstatus structure)
  CORE          0x00000108      NT_FPREGSET (floating point registers)
  CORE          0x0000010c      NT_PRSTATUS (prstatus structure)
  CORE          0x00000108      NT_FPREGSET (floating point registers)
alg:/nfs/algae/u0/home/jdelsign/tvbld/linux-power/algae/totalview/debugger/src/tests/cli/core_test/ppu-gcc_4.1.1_32>

I would have expected an SPU/<id>/npc note to be present.

So, where does one find the value of an SPU's PC at the time of the core dump?

Thanks much, John D.



More information about the cbe-oss-dev mailing list