дамп ядра gdb "не является дампом ядра: формат файла не распознан" - PullRequest
2 голосов
/ 22 сентября 2019

Я скомпилировал мой C-файл test с флагами -g -Wall -std=gnu99 -pedantic

Я запустил его, и файл core был создан

Я попытался проанализировать его gdb test core и получилэто сообщение об ошибке

GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 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-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"...
Reading symbols from test...done.
"/[...]/aula02/core" is not a core dump: File format not recognized

1 Ответ

2 голосов
/ 22 сентября 2019

Я использовал VirtualMachine и выполнял файлы, которые находились в каталоге macOS, когда он выполнялся в VM Desktop, он отлично работает

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...