GDB fails with "File format not recognized" on Windows
See original GitHub issueEnvironment
- IntelliJ Rust plugin version: 0.2.118.2171-193
- Rust toolchain version: rustc 1.42.0 (b8cedc004 2020-03-09)
- IDE name and version: CLion
- Operating system: Windows 7
Problem description
Debug with GDB doesn’t work and fails with an exception.
Console log:
Error during pretty printers setup: Undefined info command: "pretty-printer". Try "help info".
Some features and performance optimizations will not be available.
com.jetbrains.cidr.execution.debugger.backend.gdb.GDBDriver$GDBCommandException:
"C:/Personal/xxx/Documents/workspace/untitled/target/debug/untitled.exe": not in executable format: File format not recognized
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
gdb error not in executable format: File format not recognized
The fix is simple: install 64-bit GDB (which is capable of debugging both 32 and 64-bit binaries), or build hello in 32-bit mode...
Read more >gdb "not in executable format: File format not recognized"
It's a core file (a memory dump, basically, produced when a program died) -- not an executable. To load core files in GDB,...
Read more >gdb error: not in executable format: File format not recognized
Hi, When I try to use gdb with binaries compile as: ELF-64 executable object file - PA-RISC 2.0 (LP64) I get the following...
Read more >gdb error not in executable format: File format not recognized ...
The fix is simple: install 64-bit GDB (which is capable of debugging both 32 and 64-bit binaries), or build hello in 32-bit mode...
Read more >gdb debug show error "not in executable format
For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... "/home/Relay/RelayD": not in executable format: File ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@ortem The problem is now resolved. I did in fact, have to upgrade MinGW. I used these settings:
@psotos Great!