GKD symbol parsing engine failed to parse c++ symbol 2016-04-05 4.2K GKD symbol parsing engine failed to parse c++ symbol
Description of the first few entries in GOT table 2016-02-06 2.8K Description of the first few entries in GOT table GOT[0] : The table’ s entry zero is reserved to hold the…
Enhancement of the OS debug format, support scripting 2015-09-05 3.1K 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 3K 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…
gcc can't handle too much #if macro 2015-08-02 6K gcc can't handle too much macro (#if, #define), the output dwarf will have wrong line number. So when you disassemble…
Getting the parameters by parsing the dwarf directly 2015-07-07 3.1K I used another two months to getting correct location of each parameter of a functions. Mission sounds stupid, the timeframe…
How to lookup the value of each parameter from dwarf and memory location 2015-06-18 5.1K Here are the steps to lookup the parameter value 1) Look into the "info" section from dwarf, "objdump --dwarf=info". There…
Decoded first two instructions of .eh_frame 2015-05-12 3.8K Decoded first two instructions of .eh_frame, dwarf spec is lack of detail, need to hack into the objdump to understand…
I finally understand why "DW_OP_fbreg: 0" is possible 2015-04-14 5.2K In the following function kmalloc2, take a look the first parameter, the memory location of that parameter is stated by…
I finally understand why same parameter even has multiple locations 2015-04-07 6.2K 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 3.8K 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 5.9K heading toward to decode the range address of dwarf, this job is killing me. And I found the information in…
Peter-dwarf library can show hierarchy data for compile unit now 2015-02-15 4.1K Peter-dwarf library can show hierarchy data for compile unit now
Elf is having duplicate compile unit, why ld doesn't clear it out? 2015-01-09 2.9K Elf is having duplicate compile unit, why ld doesn't clear it out?
make bochs runs faster 2014-12-14 3.6K Without "CXXFLAGS=-O3", boots can only runs 20M ips on my i5 mbpr. With that, now is 57M ips.
bochs problem again 2014-11-22 3.6K I am unable to get the “” from the input stream. Please help. In command line, when i start bochs,…
Tutorial : Add a debug command in bochs 2014-11-15 3.3K This tutorial teach you how to add a debug command in boots, you need to touch these files only: debug.h…
bochs can't compile in mac (solved) 2014-11-15 3.3K bochs can't compile in mac because the configure always set gui_debugger=1, just set this variable to 0 in line 22459.…
GKD with windows is working 2014-10-09 3K Someone comlpaint GKD dosen't work with Bochs in windows. Because the bochs path has space. I just tested it in…
openjtag + openocd + smartarm 2200 2014-10-01 4.8K Finally connect my openjtag usb device to my old smartarm 2200 development board using openocd. The next step is buy…
find out what's wrong in your page table 2014-09-20 3K People always ask me why their virtual address is not pointing to the right physical address. Almost every time is…
A little bit better - Showing the MBR 2014-07-28 3.2K A little bit better - Showing the MBR Here is the java code to read MBR out:
gdb protocol, "g" command 2014-04-19 4.4K This is the tcpflow dump for the gdb protocol "g" command, it contains all register values. Let's parse it: After…
i may know why the gdb command "x" only request one byte each time 2013-10-08 3.4K I am playing the gdbstub in qemu, i found a bug there http://peter.kingofcoders.com/?p=859 , if i invoke the function cpu_physical_memory_rw(0xffff0, mem_buf, 50,…
qemu 1.6.0 rc2 has bug 2013-10-07 4.9K I found a bug in qemu, version 1.6.0 rc2. When i invoke: where addr=0xffff0 and noOfBytes=50, qemu will has segmentation…
QMP Supported Commands 2013-09-22 4K QMP Supported Commands: This document describes all commands currently supported by QMP. Most of the time their usage is…
Qemu + GDB, the single step speed is not fast 2013-08-18 4.1K In bochs, i can invokes around 40 single step commands in my 2012 mac air. People think qemu is much…
GDB two-breakpoints inter-communication between gdb and gdbstub of qemu 2013-06-16 4.1K $tcpflow -c -i lo0 port 1234 tcpflow[5508]: 127.000.000.001.01234-127.000.000.001.58366: new flow 127.000.000.001.58366-127.000.000.001.01234: + 127.000.000.001.58366-127.000.000.001.01234: $qSupported:multiprocess+;xmlRegisters=i386;qRelocInsn+#b5 127.000.000.001.01234-127.000.000.001.58366: + 127.000.000.001.01234-127.000.000.001.58366: $PacketSize=1000#f1 127.000.000.001.58366-127.000.000.001.01234: +…
gdb - qemu : two breakpoints flowchart 2013-06-12 3.4K This is the flowchart for qemu-gdb after i insert two breakpoints at 0x7c00 and 0x7c01, you can see everytime gdb…
gdb crash, for another debug server 2013-06-12 3.1K if you are create your own debug server, gdb will crash, take a look: Program received signal SIGSEGV, Segmentation fault.…
peter-dwarf can support 32 bits elf only 2013-04-26 5.6K There is a western friend told me he can't use peter-dwarf to parse his 64 bits elf file, after i…
qemu debug server hang after breakpoint is hit 2013-03-21 3.6K If you are developing a debug server for qemu, after qemu hit a breakpoint, your server have to remove the…
Restructuring the debugger 2013-03-13 3.5K At the moment, i am facing 2 big problems of bochs, the first one is unsolvable, bochs running too slow.…
qemu single step will fail if current EIP hit a breakpoint 2013-02-14 3.5K I use the following code to insert a breakpoint in physical address 0x1600000 qemu successfully hit the breakpoint and stop,…
A great qemu development link 2012-12-07 3.1K http://people.cs.nctu.edu.tw/~chenwj/dokuwiki/doku.php?id=qemu