00001
00002
00003 #ifndef jdb_misc_i_h
00004 #define jdb_misc_i_h
00005
00006 #include <cstdio>
00007 #include "config.h"
00008 #include "cpu.h"
00009 #include "jdb.h"
00010 #include "jdb_ktrace.h"
00011 #include "jdb_module.h"
00012 #include "jdb_symbol.h"
00013 #include "jdb_screen.h"
00014 #include "jdb_tbuf_events.h"
00015 #include "static_init.h"
00016 #include "x86desc.h"
00017
00018 #include <cstdio>
00019 #include "config.h"
00020 #include "cpu.h"
00021 #include "jdb.h"
00022 #include "jdb_ktrace.h"
00023 #include "jdb_module.h"
00024 #include "jdb_screen.h"
00025 #include "jdb_tbuf_events.h"
00026 #include "static_init.h"
00027
00028 class Jdb_misc_general : public Jdb_module
00029 {
00030 static char first_char;
00031
00032 public:
00033 Jdb_module::Action_code action(int cmd, void *&, char const *&, int &);
00034
00035 Jdb_module::Cmd const *const cmds() const;
00036
00037 int const num_cmds() const;
00038
00039 Jdb_misc_general();
00040 };
00041
00042
00043
00044
00045 class Jdb_misc_debug : public Jdb_module
00046 {
00047 static char first_char;
00048 static Task_num task;
00049
00050 public:
00051 Jdb_module::Action_code action(int cmd, void *&args, char const *&fmt, int &);
00052
00053 Jdb_module::Cmd const *const cmds() const;
00054
00055 int const num_cmds() const;
00056
00057 Jdb_misc_debug();
00058
00059 private:
00060 static void show_lbr_entry(const char *str, Address addr);
00061
00062 static void show_ldt();
00063 };
00064
00065
00066
00067
00068 class Jdb_misc_info : public Jdb_module
00069 {
00070 static char first_char;
00071 static Address addr;
00072 static Mword value;
00073 static Unsigned64 value64;
00074
00075 public:
00076 Jdb_module::Action_code action(int cmd, void *&args, char const *&fmt, int &);
00077
00078 Jdb_module::Cmd const *const cmds() const;
00079
00080 int const num_cmds() const;
00081
00082 Jdb_misc_info();
00083 };
00084
00085 class Jdb_misc_monitor : public Jdb_module
00086 {
00087 static int number;
00088 static char dummy;
00089 static char enable;
00090
00091 public:
00092 Jdb_module::Action_code action(int cmd, void *&args, char const *&fmt, int &);
00093
00094 Jdb_module::Cmd const *const cmds() const;
00095
00096 int const num_cmds() const;
00097
00098 Jdb_misc_monitor();
00099 };
00100
00101 #endif // jdb_misc_i_h