三年前

得不到的不一定是最好的,但是得不到的总会在心底留有一席之地,偶尔心心念之。今日机缘之下,解开了困扰心中已久的疑团。释然。

在这个阳光明媚的下午,聊聊自己最近的生活。一直在看吕大师的《三国史话》,书是好书,大师也是真大师,可读者不是好读者。被三国精彩的故事激发了玩游戏的念头,汗颜。

1、争取今年多读几本好书。

2、好好锻炼下身体,年纪也不小了。

3、每天记一点,进步真的看得见?

(闲置超过一年的博客,终于更新了。字数应该能超过一条微博的限制吧 :P ,继续我的统一大业,西北军,我来了)

[GSoC weekly report#14]Describe the patch in detail (The final post)

This is the Final post in the GSoC series.

Sorry for the late post. These days I was busy on finding a job - -!

The GSoC2013 is over now, but my project is not finished. I will continue to work on GNU/Hurd.

There are two goals I will get before I graduate from school. One is submit the patch, get the patch merged in the GDB main code line. The other one is to write a document to describe the patch in detail, as say this post is not finished:)

(Not finished...)

[GSoC weekly report#13]fix patch

I have updated my patch according to Pedro Alves and Thomas Schwinge's comments this week.

The main part of change is described  in the mail-list, like

  • add comment to describe the different between gdb and gdbserver
  • adjust Makefile to re-use the exist files instead of using soft link
  • generate the patch based on the current upstream master branch
  • remove spurious blanks and revert back the '^L' (which I didn't know it has been used as the separate character for GNU Formating)
  • use #ifdef GDBSERVER as less as I can.

Now, I am running the testcase for native and gdbserver.

[GSoC weekly report#12]submit patch and fix patch

This week I have begun to submit patch.

First, I have submit a patch create some new files. Pedro Alves suggest me to re-use the exist file for easy maintaining and reviewing with the #ifdef GDBSERVER macro.  Then I changed the patch to satisfy that but I used soft link. Then he told me the soft link will be not available on all platform. Then I have studied some knowledge about autoconf to modify the confingure.ac the Makefile.in.

Now, I need do some more improving work. Such as, combination the memory-access interface to wrap gnu_xfer_memory, using  a single target backend between gdb and gdbserver ,adding comment to describe the design divergences before the macro GDBSERVER and some other helper function to wrap the rest interface.

[GSoC weekly report#11]here gdbserver go

Here gdbserver go!

I have put the code to github, under the branch of gdbserver.  The basic gdbserver on Hurd can set breakpoint, dump and modify memory variable  and dump registers. Before submit patches to the mainline, I need do more things.

Move the MIG-gen file out, now I have copy  exc_request_S.c  msg_reply_S.c  notify_S.c  process_reply_S.c directlly from the gdb directory. I should change this to generate them by mig. I haven't totally understand [gdb]/gdb/config/i386/i386gnu.mh and the use of autoconf, I need a little more time.

Adjust the code style. I should change the code style to GNU-style. (not complete)