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:
<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})
Please sign in to leave a comment.
Any help would be great.
Hi!
Actually we have https://youtrack.jetbrains.com/issue/CPP-17270 about macOS and GDB 8.3. Feel free to comment or upvote. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.
Same issue, anyone can help?
BTW, gdb8.3 works good in command line for the executable built under CLion.