I cannot get GDB 8.3 to work


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:
Find the GDB manual and other documentation resources online at:

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)

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})
Comment actions Permalink

Any help would be great.

Comment actions Permalink

Same issue, anyone can help?

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


Please sign in to leave a comment.