亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 1721 | 回復(fù): 0
打印 上一主題 下一主題

用gdb 跟蹤ARM-Linux 大型程序的段錯(cuò)誤 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2011-12-23 03:03 |只看該作者 |倒序?yàn)g覽
Andrew Huang <bluedrum@163.com> 轉(zhuǎn)載請注明作者及出處

1.由于兩個(gè)程序占用內(nèi)存過大 利用應(yīng)用程序后臺(tái)運(yùn)行 ,使用gdb跟蹤

 

./dosbox &  # &:后臺(tái)運(yùn)行

2.程序運(yùn)行后使用ps查看系統(tǒng)進(jìn)程號

1134 root     44368 S <  ./dosbox

3.使用gdb 跟蹤pid進(jìn)程號

 

Gdb –pid=1134

4

出現(xiàn)段錯(cuò)誤時(shí)候  使用bt命令出現(xiàn)如下信息  排錯(cuò)

Program received signal SIGSEGV, Segmentation fault.

CBindGroup::ActivateBindList (this=<value optimized out>, list=0x1edba08,

    value=32767, ev_trigger=true) at sdl_mapper.cpp:1244

1244    sdl_mapper.cpp: No such file or directory.

        in sdl_mapper.cpp

(gdb) bt

#0  CBindGroup::ActivateBindList (this=<value optimized out>, list=0x1edba08,

    value=32767, ev_trigger=true) at sdl_mapper.cpp:1244

#1  0x000f4c4c in CKeyBindGroup::CheckEvent (this=0x1ebff68, event=0xbef0774c)

    at sdl_mapper.cpp:502

#2  0x000eb494 in MAPPER_CheckEvent (event=0x0) at sdl_mapper.cpp:2155

#3  0x000e6cd0 in GFX_Events () at sdlmain.cpp:1423

#4  0x0000cef8 in Normal_Loop () at dosbox.cpp:142

#5  0x0000cdc8 in DOSBOX_RunMachine () at dosbox.cpp:244

#6  0x00017988 in CALLBACK_RunRealInt (intnum=0 '\0') at callback.cpp:106

#7  0x001e57ac in DOS_Shell::Execute (this=<value optimized out>,

    name=<value optimized out>, args=<value optimized out>)

    at shell_misc.cpp:492

#8  0x001e2ce0 in DOS_Shell::DoCommand (this=0x1ee1128, line=0xbef099c3 "")

    at shell_cmds.cpp:153

#9  0x001db3fc in DOS_Shell::ParseLine (this=0x1ee1128,

    line=0xbef099b8 "ALADDIN.EXE") at shell.cpp:251

#10 0x001dca60 in DOS_Shell::Run (this=0x1ee1128) at shell.cpp:323

#11 0x001dbff8 in SHELL_Init () at shell.cpp:653

#12 0x001d2670 in Config::StartUp (this=0x0) at setup.cpp:853

^C#13 0x000ea4f0 in main (argc=<value optimized out>Quit

 

void MAPPER_CheckEvent(SDL_Event * event) {

 

       printf("hxy %s:event %x\n",__FUNCTION__,event);

       if(event == NULL)

              return ;

      

       for (CBindGroup_it it=bindgroups.begin();it!=bindgroups.end();it++) {

              if ((*it)->CheckEvent(event)) return;

       }

}

您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP