question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GDB fails with "File format not recognized" on Windows

See original GitHub issue

Environment

  • 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:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
psotoscommented, Apr 1, 2020

@ortem The problem is now resolved. I did in fact, have to upgrade MinGW. I used these settings: MinGW-settings

0reactions
ortemcommented, Apr 1, 2020

@psotos Great!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found