ʹÓÃGDBµ÷ÊÔǶÈëʽLinuxÉ豸
²½Ö裺
Ò»¡£ÊìϤÔÚÆÕͨµçÄÔÉÏÓÃ
GDBµ÷ÊԵĻù±¾·½Ê½¡£²Î¼û£º
http://www.ibm.com/developerworks/linux/library/l-gdb/
¶þ¡£ÏÂÔØ¡¶
gdb
quick reference¡·£¬
2ÕÅÖ½£¬´òÓ¡³öÀ´·ÅÔÚÊֱ߱¸Óá£
Èý¡£ÈÃǶÈëʽϵͳ֧³Ö
gdbserver.
£¨ÔÚ
openwrtÉÏ£¬¼´ÔÚ
make
menuconfigʱѡÔñ±àÒë
gdbserver£©
ËÄ¡£½øÐе÷ÊÔ
¶ÔÓÚµÚËÄ
µã£¬ÏÂÃæÒÔmips
cpu
ÉϵÄopenwrt
Ϊƽ̨½øÐоÙÀý
µçÄÔIPµØַΪ192.168.1.115, É豸IPµØַΪ192.168.1.1£¬»¥ÏàÄܽøÐÐIPͨÐÅ
ͨ¹ý½»²æ±àÒ빤¾ß£¬°ÑÈçÏ´úÂë±àÒë³ÉÉ豸ÉϵÄÖ§³ÖGDB
µÄ¿ÉÖ´ÐÐÎļþtest.bin
#include <stdio.h>
int main(int argc, char *argv[])
{
int i=0; i=1;
printf(“%d”, i++);
i++;
printf(“%d, %d”, j++, i++);
}
±àÒëÃüÁî¾ÙÀý£º
$(OPENWRT_DIR)/staging_dir/toolchain-mips_gcc4.1.2/bin/mips-linux-uclibc-gcc
-g -Wall -I. -I $(PWD)/../../Include/ -I
$(OPENWRT_DIR)/build_dir/linux-msp71xx/linux-2.6.20.21/ -o test.bin
test.c
½«±àÒë³öÀ´µÄtest.bin
¿½±´µ½Ç¶ÈëʽÉ豸ÉÏÅܵÄlinux
µÄ/usr/
Ŀ¼ÏÂ
ÔÚÉ豸ÉÏÖ´ÐÐÈçÏÂÓï¾äÆô¶¯GDBSERVER
gdbserver host:2345 /usr/test.bin
ÔÚµçÄÔÉÏÖ´ÐÐÈçÏÂÃüÁ
/openwrt/staging_dir/toolchain-mips_gcc4.1.2/bin/mips-linux-uclibc-gdb
test.bin
ÔÚµçÄÔÉϽøÈëGDB
µÄ½çÃæÁË£¬Ö´ÐÐÈçÏÂÃüÁî¸ømain
º¯Êý¼ÓÒ»¸ö¶Ïµã£º
break main
ÔÚµçÄÔÉϵÄGDB
½çÃæÖ´ÐÐÈçÏÂÃüÁ½¨Á¢ÓÚÉ豸ÉϵÄgdbserver
µÄÁ¬½Ó£º
target remote 192.168.1.1:2345
ÔÚµçÄÔÉϵÄGDB
½çÃæÖ´ÐÐÈçÏÂÃüÁʼÅܳÌÐò£º
continue
´Ëʱ±ã½øÈëµ÷ÊÔÁË£¬Ê¹ÓüûÇ°ÃæÌáµ½µÄ<gdb quick reference>
Ö´ÐÐÈçÏÂÃüÁîÖÕÖ¹GDB
µ÷ÊÔ£º
quit
Ïà¹ØÎĵµ£º
ϵͳÔÊÐíÒ»¸ö½ø³Ì´´½¨Ð½ø³Ì£¬Ð½ø³Ì¼´Îª×Ó½ø³Ì£¬×Ó½ø³Ì»¹¿ÉÒÔ´´½¨ÐµÄ×Ó½ø³Ì£¬Ðγɽø³ÌÊ÷½á¹¹Ä£ÐÍ¡£Õû¸ölinuxϵͳµÄËùÓнø³ÌÒ²ÊÇÒ»¸öÊ÷Ðνṹ¡£Ê÷¸ùÊÇϵͳ×Ô¶¯¹¹ÔìµÄ£¬¼´ÔÚÄÚºË̬ÏÂÖ´ÐеÄ0ºÅ½ø³Ì£¬ËüÊÇËùÓнø³ÌµÄ×æÏÈ¡£ÓÉ0ºÅ½ø³Ì´´½¨1ºÅ½ø³Ì£¨ÄÚºË̬£©£¬1ºÅ¸ºÔðÖ´ÐÐÄں˵IJ¿·Ö³õʼ»¯ ......
http://www.ibm.com/developerworks/cn/linux/cluster/lw-clustering.html
×¢£º¿´ÍêÏÂÃæµÄ½éÉܺó¿ÉÒÔ¿´Ò»ÏÂÕâ¸öÁ´½ÓµÄʵÀý£ºhttp://blog.csdn.net/chinalinuxzend/archive/2007/10/25/1842581.aspx
¼¶±ð£º ³õ¼¶
Rawn Shah, LinuxWorld רÀ¸×÷¼Ò
2000 Äê 5 ÔÂ 01 ÈÕ
Rawn Shah ×÷Ϊר¼Ò£¬ÔÚ Linux ÏÖÓеĿª·ÅÔ´ÂëºÍ·â±Õ ......
Ò»¸öÕýÔò±í´ïʽ¾ÍÊÇÓÉÆÕͨ×Ö·û£¨ÀýÈç×Ö·û a µ½ z£©ÒÔ¼°ÌØÊâ×Ö·û£¨³ÆΪԪ×Ö·û£©×é³ÉµÄÎÄ×Öģʽ¡£¸ÃģʽÃèÊöÔÚ²éÕÒÎÄ×ÖÖ÷Ìåʱ´ýÆ¥ÅäµÄÒ»¸ö»ò¶à¸ö×Ö·û´®¡£ÕýÔò±í´ïʽ×÷Ϊһ¸öÄ£°å£¬½«Ä³¸ö×Ö·ûģʽÓëËùËÑË÷µÄ×Ö·û´®½øÐÐÆ¥Åä¡£
\
½«ÏÂÒ»¸ö×Ö·û±ê¼ÇΪһ¸öÌØÊâ×Ö·û¡¢»òÒ»¸öÔÒå×Ö·û¡¢»òÒ»¸ö ºóÏòÒýÓᢻòÒ»¸ö°Ë½øÖÆתÒå· ......
LVMÊÇLogical Volume Manager(Âß¼¾í¹ÜÀíÆ÷)µÄ¼òд£¬ËüΪÖ÷»úÌṩÁ˸ü¸ß²ã´ÎµÄ´ÅÅÌ´æ´¢¹ÜÀíÄÜÁ¦¡£LVM¿ÉÒÔ°ïÖúϵͳ¹ÜÀíԱΪӦÓÃÓëÓû§·½±ãµØ·ÖÅä´æ´¢¿Õ¼ä¡£ÔÚLVM¹ÜÀíϵÄÂß¼¾í¿ÉÒÔ°´Ðè¸Ä±ä´óС»òÌí¼ÓÒƳý¡£ÁíÍ⣬LVM¿ÉÒÔΪËù¹ÜÀíµÄÂß¼¾íÌṩ¶¨ÖƵÄÃüÃû±êʶ¡£Òò´Ë£¬Ê¹ÓÃLVMÖ÷ÒªÊÇ·½±ãÁ˶Դ洢ϵͳµÄ¹ÜÀí£¬Ôö¼ÓÁËϵͳµÄÀ©Õ¹Ð ......
Centos redhat ,oracle10g,oracle11g¾ùÊÊÓÃ
1. ±àд½Å±¾£º
# vi startoracle.sh
#11gµÄ»°Ö»ÊÇÕâ¸öĿ¼ÓÐËùÇø±ð
ORACLE_HOME=/home/oracle/product/10.2.0/db_1;export ORACLE_HOME
ORACLE_SID=orcl;export ORACLE_SID #ÕâÀïÅäÉÏÄãµÄ±¾µØʾÀýÃû
&nbs ......