In Linux, usually, kernel crashes with so-called Oops report.
This Oops report includes lots of useful information for debugging.

Therefore, I have seen lots of developer suffering from analyzing register, memory and stack dump in the report.
To analyze dumped information, memory information should be matched with source code.
But, this is not easy process.
So, I want to introduce the way to do this easily.

Main concept is, we can make tool to parse Oops report and pass these to debugging tool.
Here is introduction of my case.
I uses TRACE32 software - ARM simulator for debugging tool.
What I did is, implementing simple Perl script that parses Oops report and make cmm file that set register and memory information given by the report.
For example, auto generated cmm file is like this.

R.S cpsr 0x20000013
R.S r0 0x0
R.S r1 0x0
...
D.S 0xc035a248 %long 0xe3a02000
D.S 0xc035a24c %long 0xe3a03020
...

It's time to use TRACE32 PowerView for ARM to analyze the report.
Launching t32marm with simulator mode -> Loading issued 'vmlinux' -> Runnig auto-generated cmm script
Finally, I can see stack frame with local variables and interpreted memory information by virtue of T32.

I'm sorry not to share parsing tool - Perl script - due to ... as you know, something like legal issue... (I hate this.)
I hope this post is helpful for others...

변수는 사용하기 직전에 선언하는 것이 원칙인데.. 문제는 scope다.
C/C++/JAVA에서 명시적으로 '{ }'를 통해서 scope를 잡아주지 않으면, 이후에도 계속 해당 변수가 살아있는 상태가 되어서 좋지 못하다.
그래서 '{ }'를 사용해서 scope를 제한해 주는 것이 좋은데, 그렇게 하면, indentation에서 괜시리 한칸 들여쓰여지게 되어 미관상 - 개인적으로 - 마음에 안든다...
음...
변수의 scope를 위한 이~~쁜~~ syntax가 있었으면 좋았을텐데... 라는 생각이 그냥 들어서...

그로우랜서 게임 리뷰를 하면서.. 갑자기... 그 동안 내가 즐겼던 게임들이 떠올랐다.
각각에 대해 리뷰를 쓸수는 없겠지만... 언급이라도 하고 싶어서... 이곳에 한꺼번에 적는다.
생각날때마다 update할 예정...

Diablo : 1, hellfire, 2, expansion [특히 2]
: 미친듯이 했다. 하드코어 아시아 랭킹 30위 귄이였었다는...-_-;

Baldur's gate 1, 2, shadow of amn, throne of bhaal:
: 더 말해 무엇하랴. 생에 최고의 RPG중 하나. Dungeon and Dragons와 Forgotten Realms를 알게 해준 게임.

Never Winter Nights
: Bioware사랑해요~~

Icewind Dale
: 엔딩은 못 봤지만...

Might And Magic 6,7,8
: 3대 RPG는 아무나 가질 수 있는 title이 아니다!

Heros Of Might And Magic 2,3,4,5
: 미친듯이 했던 2 (블랙드래곤 짱.) 완전히 망했던 4. 그래도 역시 잼있음.

Kings Bounty - The Legend / Armored Princess
: HOMM의 원조격. 그렇지만 역시 재미는 HOMM이 더...

Startcraft
: 말이 필요없음! 쵝오~!

Civilization 2,3,4
: 악마게임...

Master Of Orion 2
: 이것도.. 악마.. (이것도 시드마이어 였던가???)

Final Fantasy 5,6,7,8,9
: 일본식 RPG의 정수! 특히 개인적으로 5, 7

Elder Scroll 1(Arena), 2(Dagger fall), 3, 4
: 이거야 말로... 자유도를 추구하는 RPG의 최고봉... 특히나, Daggerfall !! (베데사다 15주년으로 꽁짜로 풀렸어요~~)

삼국지 2, 3, 4, 5, 6, 7, 8, 9, 10, 11
: 삼국지를 좋아하니까..

신장의야망 혁신
: 일본을 좋아하진 않으나 게임의 완성도 면에서는...

용의기사
: 단순하게 즐길수 있는 SRPG...

용기전승
: 역시 SRPG. 수작이긴 하나... 명작이라고 하기엔...

'Essay > Review' 카테고리의 다른 글

[Review] 삼국군영전5  (0) 2011.11.23
[Review][Game] Growlancer (그로우랜서1)  (0) 2011.08.23
[Review] Extreme Programming Explained 2/E  (0) 2011.08.05
[Review] Kingdom Under Fire - Gold Edition  (1) 2011.08.05
[Review] Numb3rs (넘버즈)  (0) 2011.07.06

+ Recent posts