Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
21 Views

Executable not recognized by debugger

I have an executable generated by ifort (ver 19.0.0.117). The program runs just fine (on my Mac).

file feap

recognizes the executable as: 

feap: Mach-O 64-bit executable x86_64

When I try to debug the executable, however, I run into the following error

gdb-ia ./feap

BFD: /Users/sg/Feap/ver85/main/feap: unknown load command 0x32
BFD: /Users/sg/Feap/ver85/main/feap: unknown load command 0x32
"/Users/sg/Feap/ver85/main/./feap": not in executable format: File format not recognized

The version of gdg-ia is

GNU gdb (GDB) 8.0.1.19.0748cc768c+5410f4dfd7+0000000000+820b7381b8
Copyright (C) 2017 Free Software Foundation, Inc.; (C) 2018 Intel Corp.

What have I missed?

 

 

0 Kudos
2 Replies
Highlighted
Black Belt Retired Employee
21 Views

I think you use the Xcode debugger, not gdb.

0 Kudos
Highlighted
Beginner
21 Views

Thanks for the hint.  I had tried /usr/bin/lldb but that had also failed.  However /Applications/Xcode.app/Contents/Developer/usr/bin/lldb does work.  Now I have to unlearn gdb syntax and learn lldb snytax :|

0 Kudos