I cannot get GDB 8.3 to work

Answered

I had trouble with the bundled gdb so i used my own version 8.3 and it will not show any variables in debugger mode and has this in the GDB window.

 

GNU gdb (GDB) 8.3
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin18.5.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word".
Function "__cxx_global_var_init" not defined.
Function "__libc_csu_init" not defined.

 

 

my cmakelist.txt is set up as follows.

cmake_minimum_required(VERSION 3.15)
project(UDP_Server)

SET(CMAKE_C_COMPILER /usr/local/bin/gcc-9)
SET(CMAKE_CXX_COMPILER /usr/local/bin/g++-9)

set(SOURCE_FILES udp_server.cpp)
add_executable(UDP_Server ${SOURCE_FILES})
3 comments
Comment actions Permalink

Any help would be great.

0
Comment actions Permalink

Same issue, anyone can help?

BTW, gdb8.3 works good in command line for the executable built under CLion.

0

Please sign in to leave a comment.