/* When the kernel dumps core, it starts by dumping the user struct - thiswillbeusedbygdbtofigureoutwherethedataandstacksegments
are within the file, and what virtual addresses to use. */ struct user{ /* We start with the registers, to mimic the way that "memory" is returned
from the ptrace(3,...) function. */ struct pt_regs regs; /* Where the registers are actually stored */ /* ptrace does not yet supply these. Someday.... */ int u_fpvalid; /* True if math co-processor being used. */ /* for this mess. Not yet used. */ /* The rest of this junk is to help gdb figure out what goes where */ unsignedlongint u_tsize; /* Text segment size (pages). */ unsignedlongint u_dsize; /* Data segment size (pages). */ unsignedlongint u_ssize; /* Stack segment size (pages). */ unsignedlong start_code; /* Starting virtual address of text. */ unsignedlong start_stack; /* Starting virtual address of stack area. Thisisactuallythebottomofthestack, thetopofthestackisalwaysfoundinthe
esp register. */ longint signal; /* Signal that caused the core dump. */ int reserved; /* No longer used */ unsignedlong u_ar0; /* Used by gdb to help find the values for */ /* the registers. */ unsignedlong magic; /* To uniquely identify a core file */ char u_comm[32]; /* User command that was responsible */ int u_debugreg[8]; /* No longer used */ struct user_fp u_fp; /* FP state */ struct user_fp_struct * u_fp0;/* Used by gdb to help find the values for */ /* the FP registers. */
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.