Homebrew-GDB kann nicht öffnen Sie eine core-Datei auf Yosemite 10.10

Ich installiert GDB 7.8.1 und GCC 4.9 durch Homebrew.

Wenn ich öffnen Sie eine core-Datei erzeugt, die von einem GCC-kompiliert ( gcc-4.9 -g xxx.c -o xxx ) - Programm, berichtet Sie:

→  gdb ./list_test /cores/core.1176
GNU gdb (GDB) 7.8.1
Copyright (C) 2014 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-darwin14.0.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"...
Reading symbols from ./list_test...
warning: `/var/folders/r1/3sx4x5k1557g_v5by83k4hg00000gn/T//cchuMtAU.o': can't open to read symbols: No such file or directory.
(no debugging symbols found)...done.
"/cores/core.1176": no core file handler recognizes format

Habe ich gegoogelt und gefunden, jemand schlug vor, mit LLDB anstelle von GDB.

Ist es möglich den Gebrauch von GDB zum Debuggen der core-Datei? Und ist es denn GDB unterstützt nicht die binary-format auf Yosemite?

InformationsquelleAutor PJ.Hades | 2014-12-28
Schreibe einen Kommentar