GDB no such file or directory

前端 未结 2 908
一整个雨季
一整个雨季 2020-12-30 06:39

I\'m following these lessons from OpenSecurityTraining.

I\'ve reached the lab part where I\'ve to train myself on a CMU Bomb. They provide a x86_64 compiled CMU Bomb

相关标签:
2条回答
  • 2020-12-30 06:50

    Use dir command to set source path

    dir /usr/src/debug
    

    in above path. Your code should present.

    0 讨论(0)
  • 2020-12-30 07:03

    The executable contains debugging symbols, which indicate the file (and particular line in the file) corresponding to each bit of assembled code. This is what allows you to step through C code in the debugger. The debugging symbols are put there by the compiler (e.g. by using the -g argument to gcc).

    If you don't have the C files that were used to compile the executable, the debugger won't be able to show you the C, and you'll be limited to looking at assembly.

    0 讨论(0)
提交回复
热议问题