Archive for the ‘Sticker’ Category

Feeling too lazy!

Sticker needs a bit of design change & i’m feeling too lazy to do that! … … … … Get up makuchaku!

Child notifies parent before terminating…

Finally managed to get hold of SIGCHLD signal when the child terminates. The code can be found here.

Non-blocking wait…

The parent wants to wait() for child’s exit, but not blockingly… how to do this? One of the solution, i found was to trap SIGCHILD. This signal is sent to the parent on child’s termination. The parent can then loop on a bolean variable to check for child’s existance, while doing other work… something i [...]

PTRACE_SINGLESTEP

ptrace() needs to be reminded again & again that in what mode is it operating. So if you have to single-step through all the instructions in a program, you need to constantly call (or set) ptrace request to PTRACE_SINGLESTEP For example, this code will just single-step through first 10 instructions. while(1) { wait(&status); if(WIFEXITED(status)) { [...]

Disassembling Hello World…

(gdb) disassemble main Dump of assembler code for function main: 0×08048368 : push %ebp 0×08048369 : mov %esp,%ebp 0x0804836b : sub $0×8,%esp 0x0804836e : and $0xfffffff0,%esp 0×08048371 : mov $0×0,%eax 0×08048376 : add $0xf,%eax 0×08048379 : add $0xf,%eax 0x0804837c : shr $0×4,%eax 0x0804837f : shl $0×4,%eax 0×08048382 : sub %eax,%esp 0×08048384 : sub $0xc,%esp 0×08048387 [...]

Generating class diagrams using Umbrello

From past 4-5 days, I was hopping mad to generate Sticker’s class diagrams using autoDia, which was giving strange errors! Never in these 5 days I thought of using Umbrello directly for this…. & today morning, all I had to do was to ask Umbrello to “Import C++ classes”. It even generated the connecting arrows [...]

& its working like a charm…

“”” After 2 days of hair pulling, 1 day of slogging, finally… its working… as expected, without any major setbacks to the design “”” [root@hddlntd6010590 sticker]# make clean; make /bin/rm -f main.o sticker.o stickerDebug.o stickerRegisters.o stickerException.o stickerBase.o sticker *~ g++ -c -g main.cpp -o main.o g++ -c -g sticker.cpp -o sticker.o g++ -c -g stickerDebug.cpp [...]

Coding standards for Sticker

Come coding standards i wish to follow for

Sticker SRS

Sticker SRS is now available at Docs@Sticker Now the Sticker team has a direction

Welcome heart_reaver (Arjun) to the Sticker team

Today, heart_reaver (Arjun) has officially joined Sticker. He’ll be developing the test modules for Sticker (unit tests). I wish him good luck Why i made an offer to Arjun to join the project? His dedication & spirit to learn. Not everyone is a C expert, but those who have the courage & will power to [...]