[wine-zh] Re: [wine-zh] 分享: 如何入门 WIne 的开发调试?

  • From: Zhenbo Li <litimetal@xxxxxxxxx>
  • To: wine-zh@xxxxxxxxxxxxx
  • Date: Tue, 5 Feb 2013 16:11:14 +0800

非常感谢Qian Hong的建议。

在 2013年2月5日上午4:58,Qian Hong <fracting@xxxxxxxxx>写道:

>
> 第一阶段的练习, 是学习 WINEDEBUG=+relay 的日志的阅读方法.
> 先写一个hello world 程序, 除了 printf("helloworld\n") , 什么都不做, 用mingw交叉编译为 exe,
> 然后终端运行:
> WINEDEBUG=+relay wine helloworld.exe &> relay.txt , 在日志中搜索 Starting
> process, 找到 helloworld.exe 的相关日志, 然后根据helloworld.exe的线程号 grep 一下日志,
> 只保留同一个线程的日志, 然后从日志中寻找printf的helloworld, 从那句话的上下文处开始理解日志, 必要的时候结合
> helloworld.exe 的反汇编代码去读日志.
> 这一步的要点是, 了解日志中哪些信息是价值大的,哪些信息是价值比较少可以忽略的. 做完这个helloworld实验之后,
> 可以写一些稍微复杂的程序进行练习, 这就是第二阶段的事情了.
>

这里我有个问题:用 mingw 交叉编译是否合适(毕竟调用的还是 gcc)
出于模拟实际环境的考虑,在 wine 下运行  vc 是否效果会更好
(仅仅是个人猜测)


(如果有人在安装 mingw 的时候卡住了,请尝试参考Fedora 下安装 mingw32
以交叉编译<http://endle.gitcafe.com/C/2013/02/05/fedora--mingw32-/>
,一个非常简单的方案。。。)


-- 

*Together we’ll cry happy tears
See the nations turn their swords into plowshares
 --<Heal the world>*

Other related posts: