cvs commit: src/sys/kern imgact_elf.c

Marcel Moolenaar marcel at FreeBSD.org
Sat Apr 3 12:25:42 PST 2004


marcel      2004/04/03 12:25:41 PST

  FreeBSD src repository

  Modified files:
    sys/kern             imgact_elf.c 
  Log:
  Create NT_PRSTATUS and NT_FPREGSET notes for each and every thread
  in the process. This is required for proper debugging of corefiles
  created by 1:1 or M:N threaded processes. Add an XXX comment where
  we should actually call a function that dumps MD specific notes.
  An example of a MD specific note is the NT_PRXFPREG note for SSE
  registers.
  
  Since BFD creates non-annotated pseudo-sections for the first PRSTATUS
  and FPREGSET notes (non-annotated in the sense that the name of the
  section does not contain the pid/tid), make sure those sections describe
  the initial thread of the process (i.e. the thread which tid equals the
  pid). This is not strictly necessary, but makes sure that tools that use
  the non-annotated section names will not change behaviour due to this
  change.
  
  The practical upshot of this all is that one can see the threads in
  the debugger when looking at a corefile. For 1:1 threading this means
  that *all* threads are visible.
  
  Revision  Changes    Path
  1.146     +81 -50    src/sys/kern/imgact_elf.c


More information about the cvs-src mailing list