Sungju's Slow Life

Personal journal


gdb

  • Why error message not goes into pipe nor redirected path in ‘crash’?

    In the below example, the error always shows in the console. crash> sym ffffffffa02ef86 > /dev/null sym: invalid address: ffffffffa02ef86 This ‘sym’ command is implemented in ‘void cmd_sym(void)’ function in crash. /* * This command may be used to: * * 1. Translate a symbol to its value. * 2. Translate a value to it… Continue reading

  • How to debug an application

    If you want to debug an application that is shipped with the fedora, you can use the following command. [root@localhost ~]# debuginfo-install gedit-3.4.2-1.fc17.x86_64 Loaded plugins: langpacks, presto, refresh-packagekit enabling fedora-debuginfo enabling updates-debuginfo –> Running transaction check —> Package atk-debuginfo.x86_64 0:2.4.0-1.fc17 will be installed —> Package cairo-debuginfo.x86_64 0:1.10.2-7.fc17 will be installed —> Package enchant-debuginfo.x86_64 1:1.6.0-4.fc17 will… Continue reading