GDB won't load source file

后端 未结 2 1926
野趣味
野趣味 2020-12-17 17:45
  1. I\'m using arm-linux-gcc to compile a simple C file at host (debian i386) with -g.
  2. Then copy the a.out file to the targ
2条回答
  •  渐次进展
    2020-12-17 18:22

    Read carefully the documentation of GDB notably about source path. You want to use the dir command

    Also, switch to a newer gdb (perhaps by compiling gdb from its source code). Current version is 7.7 (so 6.8 is really old)

提交回复
热议问题