Month: March 2015

Finally can dump out the parameter type from dwarf standard

Finally can dump out the parameter type from dwarf standard. Some parameter is store recursively, so need to read out DW_AT_type and get the right die and decode again. Personally I think dwarf is just too hard to parse.

gkd dwarf parameter type
gkd dwarf parameter type

Here is the code
https://sourceforge.net/p/peter-dwarf/code/254/tree//trunk/src/main/java/com/peterdwarf/dwarf/DwarfLib.java
https://sourceforge.net/p/peter-dwarf/code/254/tree//trunk/src/main/java/com/peterdwarf/dwarf/Dwarf.java

read count : 241

ubuntu 12.04 vnc startup script for fallback mode

#!/bin/sh

DISPLAY=:1 xmodmap -e 'keysym Alt_L = Alt_L'
DISPLAY=:1  xmodmap -e 'keysym Alt_R = Alt_R'
DISPLAY=:1 xmodmap -e 'keycode 255 = Meta_L'
DISPLAY=:1  xmodmap -e 'keycode 254 = Meta_R'
DISPLAY=:1  xmodmap -e 'keycode 253 = Super_L'
DISPLAY=:1  xmodmap -e 'keycode 252 = Super_R'
DISPLAY=:1  xmodmap -e 'add mod3 = Super_L Super_R'
DISPLAY=:1  xmodmap -e 'add mod4 = Meta_L Meta_R'

export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS

gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &

read count : 198

Fixed ubuntu vnc keymap problem

ubuntu 12.04 vnc keymap has trouble, D become minimize all windows and S become start menu, run these to fix it.

DISPLAY=:1 xmodmap -e 'keysym Alt_L = Alt_L'
DISPLAY=:1  xmodmap -e 'keysym Alt_R = Alt_R'
DISPLAY=:1 xmodmap -e 'keycode 255 = Meta_L'
DISPLAY=:1  xmodmap -e 'keycode 254 = Meta_R'
DISPLAY=:1  xmodmap -e 'keycode 253 = Super_L'
DISPLAY=:1  xmodmap -e 'keycode 252 = Super_R'
DISPLAY=:1  xmodmap -e 'add mod3 = Super_L Super_R'
DISPLAY=:1  xmodmap -e 'add mod4 = Meta_L Meta_R'

read count : 218

compile dwarfdump in mac

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 /opt/local, so need to specific the path manually.

read count : 248