newlib linker script summary for you own executable 2015-10-23 3.1K After i build my newlib by "../newlib-2.1.0/configure --target=$TARGET --prefix=$PREFIX", except the libc.a and crt0.o, i got these linker scripts. I…
YEAH, page tables is ok now 2015-10-22 3.8K After 100 times of failure, i finally loaded a exe into an independent address space (independent page tables and LDT).…
A guide to how the FreeBSD kernel manages the IA32 processors in Protected Mode 2015-09-29 2.6K Download : A guide to how the FreeBSD kernel manages the IA32 processors in Protected Mode
Kernel can load up all segments to correct v-addr and p-addr now 2015-09-29 2.8K Kernel can load up all segments to correct v-addr and p-addr now
Tutorial : import svn with all history into github 2015-09-22 2.7K Tutorial : import svn with all history into github Step 1) Create a project on github Step 2) Init the…
All svn history for peter-bochs debugger 2015-09-22 2.9K Its time to keep track of all history, peter-bochs change svn server for a few times. Here are all svn…
Netbeans - Maven Runner 2015-09-16 9.9K Eclipse has a great plugin call "Eclipse runner" https://marketplace.eclipse.org/content/eclipse-runner , i found out netbeans doesn't have any similar one. So…
ported libelf 2015-09-13 3.1K finally ported libel to my os, my linker script won't warn me I crossed the kernel boundary. So libelf's variables…
This battery save my apple magic mouse 2015-09-08 3.6K When you change your mouse from logitech mouse to magic mouse, the first feeling is that magic mouse is much…
Enable peter-swing theme in netbeans 2015-09-06 2.8K Edit : /Applications/NetBeans/NetBeans 8.0.2.app/Contents/Resources/NetBeans/etc/netbeans.conf Change the line to:
Enhancement of the OS debug format, support scripting 2015-09-05 3.3K OS debug format https://code.google.com/p/peter-bochs/wiki/OSDebugStandard is a xml based document stays in memory of the emulator, brining out the debug information…
http://www.kaizou.org/2015/01/linux-libraries/ 2015-09-02 3.1K Originally from http://www.kaizou.org/2015/01/linux-libraries/ , it is a super professional article that explain the LD process. 08 Jan 2015 by David Corvoysier A few…
Amazing recording feature by specific which code-block you want to record 2015-08-20 2.9K In the original GKD design, it works with bochs instrumentation. Being helped (https://sourceforge.net/p/bochs/discussion/39593/thread/d960fe94/?limit=50) by the author of bochs (Mr Stanislav…
handling exception 7 2015-08-19 2.9K the easiest way to handle exception 7 is to execute clts then iret. My kernel was crashed because it generated…
GKD can dump the exceptions now 2015-08-13 3K GKD can dump the exceptions now, it helps me to trace what happened to my kernel
hard to theme netbeans perfectly 2015-08-06 3K It is hard to theme netbeans using traditional swing look & feel. The reason is netbean's tab container is not…
grub is slow on bochs 2015-08-02 3.1K if grub is running slowly on bochs, try to add "--no-rs-codes" to your grub-bios-setup command. It will be 0.5 sec…
gcc can't handle too much #if macro 2015-08-02 6.2K gcc can't handle too much macro (#if, #define), the output dwarf will have wrong line number. So when you disassemble…
GKD is running fast with bochs instrumentation stub now 2015-07-26 2.9K GKD is running fast with bochs instrumentation stub now, it captures all jmp/call/int/ret, all instructions that change you EIP. I…
Getting the parameters by parsing the dwarf directly 2015-07-07 3.2K I used another two months to getting correct location of each parameter of a functions. Mission sounds stupid, the timeframe…
libelf include issue 2015-06-30 3.5K When you meet this: Just comment out the following line in /toolchain/include/libelf/sys_elf.h When I build the libelf in mac and…
How to lookup the value of each parameter from dwarf and memory location 2015-06-18 5.2K Here are the steps to lookup the parameter value 1) Look into the "info" section from dwarf, "objdump --dwarf=info". There…
Successfully decode .eh_frame 2015-05-27 3.2K Successfully decode .eh_frame, now able to calculate the base offset of each parameter, can keep going on profiling feature of…
objdump 2.24 has bug 2015-05-22 5.4K objdump 2.24 has bug, but this bug is fixed in 2.25. It dump the wrong address for my 32 bits…
Decoded first two instructions of .eh_frame 2015-05-12 4K Decoded first two instructions of .eh_frame, dwarf spec is lack of detail, need to hack into the objdump to understand…
binutils compile error 2015-05-03 2.9K If you compiling binutils and have these error, just remove d-exp.c and try again. d-exp.c should be generated by d-exp.y…
Tsinghua ucore kernel with GKD 2015-04-30 3.2K I talked to Professor Chen from Tsing Hua (http://media.cs.tsinghua.edu.cn/cn/cheny), i tried their education kernel (https://github.com/chyyuu/ucore_lab). I modified a little bit…
I finally understand why "DW_OP_fbreg: 0" is possible 2015-04-14 5.3K In the following function kmalloc2, take a look the first parameter, the memory location of that parameter is stated by…
objdump has bug 2015-04-11 3.8K objdump command has bug, i tried to use this command "objdump -dS kernel" to display mixed assembly and c code.…
I finally understand why same parameter even has multiple locations 2015-04-07 6.3K I finally understand why same parameter even has multiple locations. My pass concept is parameter stay in the stack. But…
Finally can dump out the parameter type from dwarf standard 2015-03-29 4K Finally can dump out the parameter type from dwarf standard. Some parameter is store recursively, so need to read out…
heading toward to decode the range address of dwarf 2015-03-22 6K heading toward to decode the range address of dwarf, this job is killing me. And I found the information in…
Fixed ubuntu vnc keymap problem 2015-03-19 3.7K ubuntu 12.04 vnc keymap has trouble, D become minimize all windows and S become start menu, run these to fix…
compile dwarfdump in mac 2015-03-07 3.1K CFLAGS='-I /opt/local/include -L /opt/local/lib' CXXFLAGS='-I /opt/local/include -L /opt/local/lib' ./configure --prefix=/peter-dwarfdump make make install Because mac gcc doesn't search for the…
Peter-dwarf library can show hierarchy data for compile unit now 2015-02-15 4.2K Peter-dwarf library can show hierarchy data for compile unit now