Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

gdbµ÷ÊÔC¡¢C++³ÌÐòʹÓÃÊÖ²á

Ò»¡¢¼ò½é
        µ÷ÊÔÆ÷(±ÈÈçÏóGDB)ÄÜÈÃÄã¹Û²ìÁíÒ»¸ö³ÌÐòÔÚÖ´ÐÐʱµÄÄÚ²¿»î¶¯£¬»ò³ÌÐò³ö´íʱ·¢ÉúÁËʲô¡£GDBÖ÷ÒªÄÜΪÄã×öËļþÊÂ(°üÀ¨ÎªÁËÍê³ÉÕâЩʶø¸½¼ÓµÄ¹¦ÄÜ)£¬°ïÖúÄãÕÒ³ö³ÌÐòÖеĴíÎó¡£
        * ÔËÐÐÄãµÄ³ÌÐò£¬ÉèÖÃËùÓеÄÄÜÓ°Ïì³ÌÐòÔËÐеĶ«Î÷¡£
        * ±£Ö¤ÄãµÄ³ÌÐòÔÚÖ¸¶¨µÄÌõ¼þÏÂÍ£Ö¹¡£
        * µ±Äã³ÌÐòֹͣʱ£¬ÈÃÄã¼ì²é·¢ÉúÁËʲô¡£
        * ¸Ä±äÄãµÄ³ÌÐò¡£ÄÇÑùÄã¿ÉÒÔÊÔ×ÅÐÞÕýij¸öbugÒýÆðµÄÎÊÌ⣬Ȼºó¼ÌÐø²éÕÒÁíÒ»¸öbug. 
   Richard StallmanÊÇGDBµÄʼ×÷Ù¸Õß,ÁíÍ⻹ÓÐÐí¶à±ðµÄGNUµÄ³ÉÔ±¡£Ðí¶àÈËΪ´Ë×÷³öÁ˹±Ïס£
¶þ¡¢ÃüÁî²ÎÊý˵Ã÷
        ÎÒÃÇ¿ÉÒÔ°ÑÒ»¸ögdbÃüÁîËõд³É¿ªÍ·¼¸¸ö×Öĸ£¬Èç¹ûÕâûÓжþÒâÐÔÄã¿ÉÒÔÖ±½Ó»Ø³µÀ´ÔËÐС£Ä㻹¿ÉÒÔʹÓÃTAB¼üÈÃgdb¸øÄãÍê³É½ÓÏÂÀ´µÄ¼üÈ룬»òÏòÄãÏÔʾ¿ÉÑ¡ÔñµÄÃüÁÈç¹ûÓв»Ö¹Ò»¸öÑ¡ÔñµÄ»°¡£
 
CommandÓï·¨
==============
 
        Ò»¸ögdbÃüÁîÊÇÒ»¸öµ¥ÐеÄÊäÈë¡£³¤¶ÈûÓÐÏÞÖÆ¡£ËüÒ»¸öÃüÁͷ£¬ºóÃæ¿ÉÒÔ¸ú²ÎÁ¿¡£ ±ÈÈçÃüÁî'step'½ÓÊÜÒ»¸ö²ÎÁ¿±íʾµ¥²½Ö´ÐжàÉÙ²½¡£ÄãÒ²¿ÉÒÔ²»ÓòÎÁ¿¡£ÓеÄÃüÁî²»½ÓÊÜÈκβÎÁ¿¡£
 
        gdbÃüÁîֻҪûÓжþÒâÐԵĻ°¾Í¿ÉÒÔ±»Ëõд¡£ÁíÍâһЩËõд×÷Ϊһ¸öÃüÁîÁгö¡£ÔÚijЩÇé¿ö϶þÒâÒ²ÊÇÔÊÐíµÄ¡£±ÈÈç's'ÊÇÖ¸¶¨'step'µÄËõд£¬µ«»¹ÓÐÃüÁî'start'¡£Äã¿ÉÒÔ°ÑÕâЩËõд×÷Ϊ'help'ÃüÁîµÄ²ÎÁ¿À´²âÊÔËüÃÇ¡£¿ÕÐÐ(Ö±½Ó»Ø³µ)±íʾÖظ´ÉÏÒ»¸öÃüÁî¡£µ«ÓÐЩÃüÁî²»ÄÜÖظ´±ÈÈçÏó'run'£¬¾Í²»»áÒÔÕâÖÖ·½Ê½Öظ´£¬ÁíÍâһЩµ±²»Ð¡ÐÄÖظ´»á²úÉúÑÏÖغó¹ûµÄÃüÁîÒ²²»ÄÜÓÃÕâÖÖ·½·¨Öظ´¡£
        'list'ºÍ'x'ÃüÁîµ±Äã¼òµ¥µÄ´ò»Ø³µÊ±£¬»á½¨Á¢ÐµıäÁ¿£¬¶ø²»ÊǼòµ¥µÄÖظ´ÉÏÒ»¸öÃüÁî¡£ÕâÑùÄã¿ÉÒÔ·½±ãµÄä¯ÀÀÔ­´úÂëºÍÄÚ´æ¡£
 
        gdb»¹ÓÐÒ»ÖÖ½âÊÍRETµÄ·½·¨£º·Ö¸î³¤Êä³ö¡£ÕâÖÖ·½·¨¾ÍºÍ'more'ÃüÁîÏàËÆ¡£ÓÉÓÚÕâʱ¾­³£»á²»Ð¡ÐĶà´ò»Ø³µ£¬gdb½«½ûÖ¹Öظ´µ±Ò»¸öÃüÁî²úÉúºÜ³¤µÄÊä³öʱ¡£
    
        ÈκÎÓÃ'#'¿ªÍ·Ò»Ö±µ½ÐÐβµÄÃüÁîÐб»¿


Ïà¹ØÎĵµ£º

×ö3G¿ª·¢ÊÇѧJava»¹ÊÇC++

ÓкܶàѧÉúÎÊÎÒ,ÏÖÔÚ 3GÒƶ¯»¥ÁªÍø·¢Õ¹Ö®ÊÆÍ·±Ø½«ÊÇITÁìÓò·¢Õ¹Ê®ÄêÒ»ÓöµÄÄѵûúÓö£¬ÏëͶÉíµ½¸ÃÐÐÒµÖУ¬²»ÖªµÀÊÇÓ¦¸ÃѧÍøÂç¡¢»¹ÊÇѧǶÈëʽÉ豸¿ª·¢¡¢»¹ÊÇѧϰһÏÂJava,C++Ó¦Óÿª·¢£¬»¹ÊÇѧϰһÏ¿ªÔ´¿ò¼ÜAndroid?
 
´ÓÎÒ¸öÈ˶ÔÐÐÒµµÄÀí½âÀ´½²£¬Òƶ¯»¥ÁªÍøµÄ·¢Õ¹Ò»¶¨ÊÇÏÈ´ÓÍøÂ翪ʼ£¬ÍøÂçÉ豸ÌṩÉÌ¡¢Ð­ÒéµÄ¿ª·¢»ú¹¹£¨ ......

[ÖØÒª]CÖÐfread()º¯ÊýµÄ·µ»ØÖµ

 ×î½üÓиöÏîÄ¿ÐèÒªÔÚUNIXÏÂÓÃC×ö£¬ºÜ¾ÃûÓùýCÁË£¬·¢ÏÖЩÎÊÌâÈÝÒ׸ã´í¡£
      
    Õâ¸öÎÊÌâºÜÈÝÒ׸ã´í£¬²¢µ¼ÖºܶàÎÊÌ⣬ÐèҪǿµ÷µÄÊÇfreadº¯Êý·µ»ØµÄ²¢²»ÊÇ×Ö½ÚÊý¡£
realRead = fread(buf,item,count,fp)    £¨Ã¿´Î¶Áitem´óСµÄÊý¾Ý¿é£¬·Öcount´Î ......

C/C++»ñÈ¡µ±Ç°ÏµÍ³Ê±¼ä(תÔØ)


// ·½°¸— Óŵ㣺½öʹÓÃC ±ê×¼¿â£»È±µã£ºÖ»Äܾ«È·µ½Ã뼶
#include <time.h>
#include <stdio.h>
int main( void )
{
    time_t t = time(0);
    char tmp[64];
    strftime( tmp, sizeof(tmp), "%Y/%m/%d %X %A ±¾ÄêµÚ%jÌì %z",localtim ......

ÈçºÎÀûÓÃPro*CÖ±½Ó¶ÁÈ¡dbfÎļþ


ΪÁËʹÓÃCÓïÑÔ±à³ÌÖ±½Ó¶ÁÈ¡dbfÎļþ£¬ÐèÒªÁ˽âdbfÎļþµÄ¶þ½øÖÆÎļþ¸ñʽ£¬ÏÂÃæ¸ø³ö¼òÒªµÄ˵Ã÷¡£
±íÎļþÓÉÍ·¼Ç¼¼°Êý¾Ý¼Ç¼×é³É¡£Í·¼Ç¼¶¨Òå¸Ã±íµÄ½á¹¹²¢°üº¬Óë±íÏà¹ØµÄÆäËûÐÅÏ¢¡£Í·¼Ç¼ÓÉÎļþλÖà 0 ¿ªÊ¼¡£Êý¾Ý¼Ç¼1½ô½ÓÔÚÍ·¼Ç¼֮ºó£¨Á¬ÐøµÄ×Ö½Ú£©£¬°üº¬×Ö¶ÎÖÐʵ¼ÊµÄÎı¾¡£
¼Ç¼µÄ³¤¶È£¨ÒÔ×Ö½ÚΪµ¥Î»£©µÈÓÚËùÓÐ×ֶζ¨Òå ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ