mac上的gdb python:“/ usr / local / bin / python”的错误:不是可执行格式

时间:2016-10-14 01:29:46

标签: python macos gdb

我在mac上安装了最新的gdb

 qiwu$ brew install gdb
 Warning: gdb-7.12 already installed

然后我试图附加到python3.5进程

qiwu$ gdb python 4411
GNU gdb (GDB) 7.12
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-apple-darwin15.6.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"...
"/usr/local/bin/python": not in executable format: File format not recognized
Attaching to process 4411
Can't attach to process 4411: No such process (3)
/Users/qiwu/4411: No such file or directory.
(gdb)

1 个答案:

答案 0 :(得分:0)

可能是因为unix系统识别<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <div id="startJobDialog"></div>而不是#!/usr/local/bin/python