1. Linux环境
u 平台软件
操作系统:linux- ubuntu
MudOS代码版本:v22.2b14
Mudlib代码版本:any
编译器:gcc
调试器:gdb
u Options.h预编译宏修改如下:
#define NO_WIZARDS 修改为 #undef NO_WIZARDS
#define SENSIBLE_MODIFIERS 修改为 #undef SENSIBLE_MODIFIERS
#undef CUSTOM_CRYPT 修改为 #define CUSTOM_CRYPT
#undef PACKAGE_UIDS 修改为 #define PACKAGE_UIDS
#define CFG_MAX_LOCAL_VARIABLES 25
修改为
#define CFG_MAX_LOCAL_VARIABLES 40
u MudOS安装命令:
#./build.MudOS ‘develop’
#gmake
#gmake install
注:以develop模式编译将打开gcc –g -DDEBUG -DDEBUG_MACRO选项。
u MudOS启动命令:
#gdb
#file driver
#set args config.xxx
#b main
#r
注:以单一参数“config.xxx”启动MudOS,断点设置于main函数入口——从此开始MudOS启动流程分析。