C++ app on Ubuntu. After installing gcc 4.8.1 the gdb does not work

后端 未结 2 1913
失恋的感觉
失恋的感觉 2021-02-14 18:26

I installed gcc 4.8.1 on Ubuntu 12.04 (I had to add ppa to do that) now gdb displays the following message:

Unable to find dynamic linker breakpoint function. GDB will b

2条回答
  •  难免孤独
    2021-02-14 18:52

    Gdb is usually shipped with the toolchain.

    You're probably using gdb shipped with the previous toolchain. Use

      which gdb
    

    to discover which gdb you're using.

    To debug a program compiled with the new compiler, you have to use the new gdb, weherever it is.

提交回复
热议问题