src/commands/mdb/kernel.c File Reference

#include "mdb.h"
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ptrace.h>
#include "proto.h"
#include <kernel/arch/i386/include/archtypes.h>
#include <kernel/const.h>
#include <kernel/type.h>
#include <kernel/proc.h>

Go to the source code of this file.

Defines

#define ptrace   mdbtrace
#define SIZ   (1 + sizeof(struct proc)/sizeof(long))

Functions

PUBLIC void disp_maps ()
PUBLIC void update ()
PUBLIC int disp_regs ()
PUBLIC long get_reg (int pid, long k)
PUBLIC void set_reg (int pid, long k, long value)
PUBLIC long reg_addr (char *s)
PUBLIC int outsegreg (off_t num)

Variables

struct procprc
long lbuf [SIZ]
PRIVATE char segment_name [] = "TDS"
PRIVATE char regs [] = "es ds di si bp bx dx cx ax ip cs ps sp ss"


Define Documentation

#define ptrace   mdbtrace

Definition at line 10 of file kernel.c.

#define SIZ   (1 + sizeof(struct proc)/sizeof(long))

Definition at line 22 of file kernel.c.


Function Documentation

PUBLIC void disp_maps (  ) 

Definition at line 32 of file kernel.c.

PUBLIC int disp_regs (  ) 

Definition at line 71 of file kernel.c.

PUBLIC long get_reg ( int  pid,
long  k 
)

Definition at line 127 of file kernel.c.

PUBLIC int outsegreg ( off_t  num  ) 

Definition at line 201 of file kernel.c.

PUBLIC long reg_addr ( char *  s  ) 

Definition at line 167 of file kernel.c.

PUBLIC void set_reg ( int  pid,
long  k,
long  value 
)

Definition at line 152 of file kernel.c.

PUBLIC void update (  ) 

Definition at line 48 of file kernel.c.


Variable Documentation

long lbuf[SIZ]

Definition at line 25 of file kernel.c.

struct proc* prc

Definition at line 24 of file kernel.c.

PRIVATE char regs[] = "es ds di si bp bx dx cx ax ip cs ps sp ss"

Definition at line 123 of file kernel.c.

PRIVATE char segment_name[] = "TDS"

Definition at line 27 of file kernel.c.


Generated on Tue Mar 9 04:36:35 2010 for Minix by  doxygen 1.5.8