ǶÈëʽLinuxϵͳµÄGDBÔ¶³Ìµ÷ÊÔµÄʵÏÖ
Ô¶³Ìµ÷ÊÔ»·¾³ÓÉËÞÖ÷»úGDBºÍÄ¿±ê»úµ÷ÊÔstub¹²Í¬¹¹³É£¬Á½Õßͨ¹ý´®¿Ú»òTCPÁ¬½Ó£¬Ê¹ÓÃGDB±ê×¼³Ì´®ÐÐÐÒéÐͬ¹¤×÷£¬ÊµÏÖ¶ÔÄ¿±ê»úÉϵÄϵͳÄں˺ÍÉϲãÓ¦Óõļà¿ØºÍµ÷ÊÔ¹¦ÄÜ£¬µ÷ÊÔstubÊÇǶÈëʽϵͳÖеÄÒ»¶Î´úÂ룬×÷ΪËÞÖ÷»úGDBºÍÄ¿±ê»úµ÷ÊÔ³ÌÐò¼äµÄÒ»¸öý½é¶ø´æÔÚ¡£
¡¡¡¡¾ÍÄ¿Ç°¶øÑÔ£¬Ç¶ÈëʽLinuxϵͳÖУ¬Ö÷ÒªÓÐÈýÖÖÔ¶³Ìµ÷ÊÔ·½·¨£¬·Ö±ðÊÊÓÃÓÚ²»Í¬³¡ºÏµÄµ÷ÊÔ¹¤×÷£ºÓÃROM Monitorµ÷ÊÔÄ¿±ê»ú³ÌÐò¡¢ÓÃKGDBµ÷ÊÔϵͳÄں˺ÍÓÃgdbserverµ÷ÊÔÓû§¿Õ¼ä³ÌÐò£¬ÕâÈýÖÖµ÷ÊÔ·½·¨µÄÇø±ðÖ÷ÒªÔÚÓÚ£¬Ä¿±ê»úÔ¶³Ìµ÷ÊÔstub µÄ´æÔÚÐÎʽµÄ²»Í¬£¬¶øÆäÉè¼Æ˼·ºÍʵÏÖ·½·¨ÔòÊÇ´óÖÂÏàͬµÄ¡£
¡¡¡¡¶øÎÒÃÇ×î³£ÓõÄÊǵ÷ÊÔÓ¦ÓóÌÐò¾ÍÊDzÉÓÃgdb+gdbserverµÄ·½Ê½½øÐе÷ÊÔ£¬ÔںܶàÇé¿öÏ£¬Óû§ÐèÒª¶ÔÒ»¸öÓ¦ÓóÌÐò½øÐз´¸´µ÷ÊÔ£¬ÌرðÊǸ´ÔӵijÌÐò²ÉÓÃGDB·½·¨µ÷ÊÔ£¬ÓÉÓÚǶÈëʽϵͳ×ÊÔ´ÓÐÏÞÐÔ£¬Ò»°ã²»ÄÜÖ±½ÓÔÚÄ¿±êϵͳÉϽøÐе÷ÊÔ£¬Í¨³£²ÉÓÃgdb+gdbserverµÄ·½Ê½½øÐе÷ÊÔgdbserverÔÚÄ¿±êϵͳÖÐÔËÐУ¬GDBÔòÔÚËÞÖ÷»úÉÏÔËÐÐÐÐGDBµ÷ÊÔ£¬Ä¿±êϵͳ±ØÐë°üÀ¨gdbserver³ÌÐò£¬ËÞÖ÷»úÒ²±ØÐë°²×°GDB³ÌÐò¡£Ò»°ãLinux·¢ÐаæÖж¼ÓÐÒ»¸ö¿ÉÒÔÔËÐеÄGDB£¬µ«¿ª·¢ÈËÔ±²»ÄÜÖ±½ÓʹÓø÷¢ÐаæÖеÄGDBÀ´×öÔ¶³Ìµ÷ÊÔ£¬¶øÒª»ñÈ¡GDBµÄÔ´´úÂë°ü£¬Õë¶Ôarmƽ̨×÷Ò»¸ö¼òµ¥ÅäÖã¬ÖØбàÒëµÃµ½ÏàÓ¦GDB£¬GDBµÄÔ´´úÂë°ü¿ÉÒÔ´Ó http: //ftp.cs.pu.edu.tw/linux/sourceware/gdb/releases/ÏÂÔØ£¬×îа汾Ϊgdb-6.4£¬ÏÂÔص½Ä³¸öĿ¼£¬±ÊÕßÏÂÔص½×Ô¼ºµÄÓû§Ä¿Â¼£º/home/vicky
¡¡¡¡ÏÂÔØÍêºó£¬½øÈë/home/vickyĿ¼£¬ÅäÖñàÒë²½ÖèÈçÏ£º
#tar jxvf gdb-6.4-tar-bz2
#cd gdb-6.4
#./configure --target=arm-linux --prefix=/usr/local/arm-gdb -v
#make
¡¡¡¡ÕâÒ»²½µÄʱºò¿ÉÄÜ»áÓÐÎÊÌ⣬Ìáʾһ¸öº¯ÊýÖУ¨¾ßÌ庯ÊýÃû²»¼ÇµÃÁË£©parse error£¬¾ÍÊÇunsignedÇ°±ß¶àÁËÒ»¸ö”}”ÄãÓÃvi½øÈëÄÇÒ»ÐаÑËüɾµô¾ÍÐÐÁË
#make install
#export PATH=$PATH:/usr/local/arm-gdb
½øÈëgdbserverĿ¼£º
#./configure --target=arm-linux –host=arm-linux
#make CC=/usr/local/arm/2.95.3/bin/arm-linux-gcc
(ÕâÒ»²½ÒªÖ¸¶¨arm-linux-gccµÄλÖÃ)
¡¡¡¡Ã»ÓдíÎóµÄ»°¾ÍÔÚgdbserverĿ¼ÏÂÉú³Égdbserver¿ÉÖ´ÐÐÎļþ£¬°ÑËüÉÕдµ½flashµÄ¸ùÎļþϵͳ·ÖÇø£¬»òͨ¹ýnfs mountµÄ·½Ê½¶¼¿ÉÒÔ£¬Ö»Òª±£Ö¤gdbserverÄÜÔÚ¿ª·¢°åÉÏÔËÐоÍÐС£
¡¡¡¡ÏÂÃæ¾Í¿ÉÒÔÓÃgdb+gdbserverµ÷ÊÔÎÒÃÇ¿ª·¢°åÉϵijÌÐòÁËÔÚÄ¿±ê°åÉÏÔËÐÐgdbserver£¬Æäʵ
Ïà¹ØÎĵµ£º
ÀýÒ»£º·¢ËÍSignaling Packet£º
Signaling CommandÊÇ2¸öBluetoothʵÌåÖ®¼äµÄL2CAP²ãÃüÁî´«Êä¡£ËùÒÔµÃSignaling CommandʹÓÃCID 0x0001.
¶à¸öCommand¿ÉÒÔÔÚÒ»¸öC-frame£¨control frame£©Öз¢ËÍ¡£
Èç¹ûÒªÖ±½Ó·¢ËÍSignaling Command.ÐèÒª½¨Á¢SOCK_RAWÀàÐ͵ÄL2CAPÁ¬½ÓSocket¡£ÕâÑù²ÅÓлú»á×Ô¼ºÌî³äCommand Code£¬Identi ......
Linux°²×°JDK²½Öè1. ÏÈ´ÓÍøÉÏÏÂÔØjdk(jdk-1_5_0_02-linux-i586.rpm) £¬ÍƼöSUNµÄ¹Ù·½ÍøÕ¾www.sun.com£¬ÏÂÔغó·ÅÔÚ/homeĿ¼ÖУ¬µ±È»ÆäËüµØ·½Ò²ÐС£
½øÈ밲װĿ¼
#cd /home
#cp jdk-1_5_0_02-linux-i586.rpm /usr/local
#cd /usr/local
¸øËùÓÐÓû§Ìí¼Ó¿ÉÖ´ÐеÄȨÏÞ
#chmod +x jdk-1_5_0_02-linux-i586.rpm.bin
#./jd ......
linuxÉϵÄApache·þÎñºÍLAMP»·¾³µÄÅäÖÃ
ÔÚRHEL4ϵͳÖпÉÒÔͨ¹ýÁ½ÖÖ·½Ê½°²×°Apache·þÎñÆ÷¡£
1. RHEL4ϵͳµÄ°²×°¹âÅÌÖаüÀ¨µÄApache·þÎñÆ÷µÄRPMÈí¼þ°ü£¬¿ÉÒÔʹÓÃrpmÃüÁîÖ±½Ó½øÐа²×°¡£
2. ¿ÉÒÔ´ÓApache·þÎñÆ÷µÄ¹Ù·½Õ¾µãÏÂÔØ×îа汾µÄ³ÌÐòÔ´´úÂ룬²¢ÔÚRHEL4ϵͳÖнøÐбàÒë°²×°¡££¨ÒòΪϵͳ¹âÅÌÀïµÄ°æ±¾¹ýµÍËùÒÔÑ¡Ôñ±àÒë°² ......
1¡£LinuxÁ´½Ó
LinuxĿ¼ÖÐÿ¸öÃû×ÖÖÁinodeµÄÓ³Éä±»³ÆΪÁ´½Ó£¬¼´Ä¿Â¼ÖÐÒ»¸öÖ¸ÏòinodeµÄÃû×Ö¡£LinuxµÄÎļþÁ´½Ó·ÖΪӲÁ´½ÓºÍÈíÁ´½Ó¡£
Ó²Á´½Ó±ØÐëλÓÚͬһ¸öÎļþϵͳ¡£Ê¹ÓÃlink()º¯ÊýʵÏÖ¡£
ÈíÁ´½Ó¼´·ûºÅÁ´½Ó£¬Ëü²»Ôö¼Ó¶îÍâµÄĿ¼Ï¶øÊÇÒ»ÖÖÌØÊâµÄÎļþÀàÐÍ¡£Ëü¿ÉÒÔ¿çÔ½Îļþϵͳ¡£
2¡£É豸½Úµã¡£
É豸½ÚµãÊÇÓ¦Ó ......