C
C
Ckpyt2017-06-22 17:28:26
linux
Ckpyt, 2017-06-22 17:28:26

Debugging on CenotOS7 via VS2017. How to specify symbol files and where to get them?

Good afternoon!
I created a test project, I'm trying to debug it on a virtual machine - and it doesn't work. this is what it outputs:

=thread-group-added,id="i1"
GNU gdb (GDB) 7.9
Copyright (C) 2015 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 "--host=i686-pc-mingw32 --target=x86_64-linux-gnu".
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".
Loaded 'shared libraries loaded at this time.'. Cannot find or open the symbol file.
[Inferior 1 (process 33399) exited with code 01]
Программа "" завершилась с кодом 0 (0x0).

the program code itself:
#include <cstdio>
#include <stdlib.h>
#include <stddef.h>
#include <cstdint>
#include <chrono>
#include <thread>
#include <mutex>

using namespace std;
int main()
{
  printf("Создали ССalculation, запускаем расчёт...\n");
  char msgBuf[1024];
  char logBuf[20 * 1024];
  printf("Произвели расчет. Код окончания выполнения: %d (%s)\nЛог расчета:\n%s", 0, msgBuf, logBuf);
  printf("Нажмите любую кнопку для выхода\n");

  return 0;
}

gcc upgraded to version 5.4 according to 14 plus instructions:
https://stackoverflow.com/questions/36327805/how-t...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question