tExtract more data from core dumps. - plan9port - [fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port
Log
Files
Refs
README
LICENSE
---
commit 28125cbd4c7d937278d838f1e375ee0763019d0d
parent dd944ec72a26d0b380ba2af5f6c00310f2f1651e
Author: rsc 
Date:   Sun, 23 Jan 2005 22:33:25 +0000

Extract more data from core dumps.

Diffstat:
  M include/mach.h                      |      15 +++++++++++----

1 file changed, 11 insertions(+), 4 deletions(-)
---
diff --git a/include/mach.h b/include/mach.h
t@@ -254,12 +254,18 @@ struct Fhdr
         ulong        sppcoff;                /* offset of sp-pc table in file */
         ulong        lnpcsz;                /* size of line number-pc table */
         ulong        lnpcoff;                /* size of line number-pc table */
-        char                *txtfil;                /* text name, for core files */
         void                *elf;                        /* handle to elf image */
         void                *dwarf;                /* handle to dwarf image */
         void                *macho;                /* handle to mach-o image */
         struct Stab        stabs;
-        char                *cmd;                /* command-line that produced core */
+        uint                pid;                        /* for core files */
+        char                *prog;                /* program name, for core files */
+        char                *cmdline;                /* command-line that produced core */
+        struct        {                        /* thread state for core files */
+                uint        id;
+                void        *ureg;
+        } *thread;
+        uint                nthread;
 
         /* private */
         Symbol        *sym;                /* cached list of symbols */
t@@ -293,6 +299,7 @@ Fhdr*        crackhdr(char *file, int mode);
 void                uncrackhdr(Fhdr *hdr);
 int                crackelf(int fd, Fhdr *hdr);
 int                crackmacho(int fd, Fhdr *hdr);
+Regs*        coreregs(Fhdr*, uint);
 
 int                symopen(Fhdr*);
 int                symdwarf(Fhdr*);
t@@ -328,8 +335,8 @@ extern Map *cormap;
 
 int                attachproc(int pid);
 int                attachcore(Fhdr *hdr);
-int                attachargs(int argc, char **argv, int omode);
-
+int                attachargs(int argc, char **argv, int omode, int);
+int                attachdynamic(int);
 /*
  * Machine descriptions.
  *