• 5846阅读
  • 0回复

有人调试过murphypinyin吗? [复制链接]

上一主题 下一主题
离线pchenhui
 

只看楼主 倒序阅读 楼主  发表于: 2006-04-19
到底应该怎么调试呀?听别人说将生成的动态连接库libmurphypinyin.so attach 到qpe上,可是list时却看不到源码呀,是应该attach 到textedit吗?也是出错呀!到底用gdb怎么调试输入法的动态连接库呢?

[root@localhost inputmethods]# ps -a
PID TTY       TIME CMD
4770 pts/1   00:00:05 qvfb
4983 pts/4   00:00:01 hyper
#############/1   00:00:00 quicklauncher
4772 pts/1   00:00:01 qpe
5535 pts/1   00:00:00 quicklauncher
5536 pts/3   00:00:00 ps
[root@localhost inputmethods]# gdb libmurphypinyin.so 4772
GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...
Attaching to program: /root/Trolltech/qtopia-free-1.7.0-debug/plugins/inputmethods/libmurphypinyin.so, process 4772
0xffffe002 in ?? ()
(gdb) l
1     /usr/src/build/324954-i386/BUILD/glibc-2.3.2-200304020432/build-i386-linux/csu/crti.S: 没有那个文件或目录.
    in /usr/src/build/324954-i386/BUILD/glibc-2.3.2-200304020432/build-i386-linux/csu/crti.S
(gdb) n
Cannot find bounds of current function
(gdb) c
Continuing.

Program received signal SIGINT, Interrupt.
0xffffe002 in ?? ()
(gdb) q
The program is running. Quit anyway (and detach it)? (y or n) y
Detaching from program: /root/Trolltech/qtopia-free-1.7.0-debug/plugins/inputmethods/libmurphypinyin.so, process 4772
You have new mail in /var/spool/mail/root
[root@localhost inputmethods]#

我将输入法挂到qpe进程了吗?为什么在 list 时出错? /usr/src/build这个目录根本就没有呀,Continuing后根本就不动了,麻烦你们帮我看一下好吗?
[ 此贴被XChinux在2006-04-19 18:24重新编辑 ]
快速回复
限100 字节
 
上一个 下一个