Hi,
Please help me in debugging c code in gdb
BFD: /Users/vamsi/Documents/c_programs/a.out: unknown load command 0x32
BFD: /Users/vamsi/Documents/c_programs/a.out: unknown load command 0x32
"/Users/vamsi/Documents/c_programs/a.out": not in executable format: file format not recognized
GNU gdb (GDB) 8.2
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.5 (clang-1205.0.22.9)
Target: x86_64-apple-darwin20.4.0
Please help me in debugging c code in gdb
compiled c code in gcc wit -g option
trying do debugging through gdb
BFD: /Users/vamsi/Documents/c_programs/a.out: unknown load command 0x32
BFD: /Users/vamsi/Documents/c_programs/a.out: unknown load command 0x32
"/Users/vamsi/Documents/c_programs/a.out": not in executable format: file format not recognized
GNU gdb (GDB) 8.2
gcc:
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.5 (clang-1205.0.22.9)
Target: x86_64-apple-darwin20.4.0