最近作东西要用到多线程: http://bbs.chinaunix.net/forum/viewtopic.php?t=280919 看了上面的帖子,还是有很多不太明白,一个多线程的程序,如何调试其中特定的线程?(multproc on, blth这些命令我用了好像没有什么用么?我是在aix下面写程序的。) ps:不知道大家平时是如何进行多线程的调试的,感觉用哪个东东debug最方便? 请大虾指教!
用thread tid进行线程切换的时候,切换是成功了,但是用step命令走那个线程里的执行代码,执行不下去,说这个线程不在任何lwp上,我用lwp看了一下,当前的lwp是l@X,而用lwps看当前进程没有这个lwp,请问如何把这个线程附在一个lwp上,多谢了
在aix下用dbx怎么样可以单步调试啊 我的main函数在/home/test/project/main下面 我的其他代码放在/home/test/project/souce下面 现在我要调试/home/test/project/souce下面test.cpp这个源文件下int test(int a,int b) 这个函数, 跪求高手解答!!!!!!!!!!!!!!!!!!
在aix下怎么样可以单步调试啊 我的main函数在/home/test/project/main下面 我的其他代码放在/home/test/project/souce下面 现在我要调试/home/test/project/souce下面test.cpp这个源文件下int test(int a,int b) 这个函数, 跪求高手解答!!!!!!!!!!!!!!!!!!
各位大哥大姐好! 代码目录下下: ./bin ./bin/main ./src ./src/Phase ./src/Phase/Phase_FtpGetCargo.cpp ./src/scheduler ./src/scheduler/main.c 其中main.c会调用Phase_FtpGetCargo.cpp dbx -a连接main后,我想用file Phase_FtpGetCargo.cpp 更改当前文件,但它提示cannot read “Phase_FtpGetCargo.cpp”, 但是如果用stop at "Phase_FtpGetCargo.cpp":30 它又能成功,这是为什么啊? 先谢过了!
请教如何使用dbx调试守护进程: 操作系统版本: bash@root@senteon1#uname -a SunOS senteon1 5.8 Generic_108528-29 sun4u sparc SUNW,Sun-Fire-V240 dbx已经安装好: bash@root@senteon1#dbx -V Sun WorkShop 6 update 2 dbx Debugger 6.2 2001/05/16 但是在我调试的时候报错: (/opt/SUNWspro/bin/../WS6U2/bin/sparcv9/dbx) check -leaks dbx: check will not work with attached process,if librtc is not preloaded. See `...
请教如何使用dbx调试守护进程:\r\n\r\n操作系统版本:\r\nbash@root@senteon1#uname -a \r\nSunOS senteon1 5.8 Generic_108528-29 sun4u sparc SUNW,Sun-Fire-V240\r\n\r\ndbx已经安装好:\r\nbash@root@senteon1#dbx -V\r\nSun WorkShop 6 update 2 dbx Debugger 6.2 2001/05/16\r\n\r\n但是在我调试的时候报错:\r\n(/opt/SUNWspro/bin/../WS6U2/bin/sparcv9/dbx) check -leaks\r\ndbx: check will not work with attached proce...
Type 'help' for help. [using memory image in core] reading symbolic information ...warning: no source compiled with -g Segmentation fault in . at 0xf058 ($t1) 0x0000f058 warning: Unable to access address 0xf058 from core (dbx) list 1,1000 could not read "../../../../../../../src/bos/usr/ccs/lib/libcrypt/crypt.c" (dbx) quit 错误信息如上面所示,为什么list 1,1000 报错呢? 不是应该列出源程序来么?...