Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

Jdb_tcb Class Reference

#include <jdb_tcb_i.h>

Inheritance diagram for Jdb_tcb:

Jdb_module List of all members.

Public Member Functions

 Jdb_tcb ()
Jdb_module::Action_code action (int cmd, void *&args, char const *&fmt, int &next_char)
 The actual handler of the module.
Jdb_module::Cmd const *const cmds () const
 The commands this module provides.
int const num_cmds () const
 The number of commands this modules provides.

Static Public Member Functions

static Jdb_module::Action_code show (L4_uid tid, int level)

Static Private Member Functions

static void at_jdb_enter ()
static Address search_bt_start (Address tcb, Mword *ksp, bool is_current_thread)
static void print_entry_frame_regs (Task_num task)
static void info_thread_state (Thread *t, Jdb::Guessed_thread_state state)
static void print_regs_invalid_tid ()
static void print_thread_uid_raw (Thread *t)

Static Private Attributes

static L4_uid threadid
static Address address
static char first_char
static char auto_tcb

Constructor & Destructor Documentation

Jdb_tcb::Jdb_tcb  ) 
 


Member Function Documentation

Jdb_module::Action_code Jdb_tcb::action int  cmd,
void *&  args,
char const *&  fmt,
int &  next_char
[virtual]
 

The actual handler of the module.

Parameters:
cmd the command ID (see Cmd::id) of the executed command.
args a reference to the argument buffer pointer.
fmt a reference to the format string pointer.
This method is pure virtual and must be provided by the specific derivate of the Jdb_module. action() is called if one of the module's commands was issued and the input according to the format string is read.

The args and fmt arguments are references because they may be modified by the action() method and extra input may be requested by returning Action_code::EXTRA_INPUT. In the case where Action_code::EXTRA_INPUT is returned the Jdb_core reads again the values according to the given format (fmt) and enters action(). With this mechanism it is possible to request further input depending on the already given input.

Implements Jdb_module.

void Jdb_tcb::at_jdb_enter  )  [static, private]
 

Jdb_module::Cmd const *const Jdb_tcb::cmds  )  const [virtual]
 

The commands this module provides.

An array of Cmd structures must be returned, where each entry describes a single command. The command IDs (see Cmd::id) should be unique within the module, so that action() can distinguish between the different commands.

See also:
num_cmds()

Cmd

action()

Implements Jdb_module.

void Jdb_tcb::info_thread_state Thread t,
Jdb::Guessed_thread_state  state
[static, private]
 

int const Jdb_tcb::num_cmds  )  const [virtual]
 

The number of commands this modules provides.

This method must return how many Cmd structures can be found in the array returned by cmds().

See also:
cmds()

Implements Jdb_module.

void Jdb_tcb::print_entry_frame_regs Task_num  task  )  [static, private]
 

void Jdb_tcb::print_regs_invalid_tid  )  [static, private]
 

void Jdb_tcb::print_thread_uid_raw Thread t  )  [inline, static, private]
 

Address Jdb_tcb::search_bt_start Address  tcb,
Mword *  ksp,
bool  is_current_thread
[static, private]
 

Jdb_module::Action_code Jdb_tcb::show L4_uid  tid,
int  level
[static]
 


Member Data Documentation

Address Jdb_tcb::address [static, private]
 

char Jdb_tcb::auto_tcb [static, private]
 

char Jdb_tcb::first_char [static, private]
 

L4_uid Jdb_tcb::threadid [static, private]
 


The documentation for this class was generated from the following files:
Generated on Mon Sep 26 14:20:16 2005 for Fiasco by  doxygen 1.4.2