screen, gdb, vdso and gentoo

Screen的中文乱码问题有了一点新进展。今天我了解到,如果使用中文,但使用gb字符集的时候,中文是正常的。UTF-8则是乱码。这对于解决这个问题应该有所帮助。

今天在Planet Larry上看到一篇blog,对我很有帮助。那里面提到一个gdb的初始加载文件,类似.bashrc。有很多有用的功能。比如在断点停住的时候,可以显示寄存器,堆栈等的内容和要执行的指令的上下文的反汇编。作者对这个文件加了点改进可以显示不同的颜色。
http://gnurbs.blogsome.com/2006/12/22/colorizing-mamons-gdbinit/
用了这个东西,基本可以抛弃emacs+gdb的组合了。毕竟emacs-23现在和gdb配合使用,我感觉还不是很稳定。

还看了这一篇文章, http://www.win.tue.nl/%7Eaeb/linux/lk/lk-4.html
不过里面最后一个例程应该是有点问题,改成这样就行了:
#include <stdio.h>

int pid;

int main() {
        __asm__ __volatile__(
                "movl $20, %%eax        \n\t"
                "movl $0xffffe400, %%ebx \n\t"
                "call *%%ebx            \n\t"
                "movl %%eax, %0         \n\t"
                : "=r"(pid)
                :
                : "ax", "bx"
        );
        printf("pid is %d\n", pid);
        return 0;
}

最后,今天发展了一个gentoo用户。基本上我帮他装的。有两点感觉:
1. 复制livecd安装真的很方便,很快
2. 一般Linux用户,特别是英文不怎么好的用户,安装gentoo,还真是会遇到不少困难,

Comments

slash said…
在.emacs(ansi-color-for-comint-mode-on)里面写
slash said…
This comment has been removed by the author.
r0bertz said…
这个已经有了,:)

Popular posts from this blog

The diff between the original SEC complaint against Ripple and the amended one

Send $SGB (Songbird) to another wallet using a script

Rippled thread cpu usage