-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Description
Describe the issue
When building a native image binary with the -g flag, the debugging information is not recognized by gdb. The specific error is Dwarf Error: wrong version in compilation unit header (is 0, should be 2, 3, 4 or 5) [in module /home/clemens/Studium/MA/re22/helloworld].
Steps to reproduce the issue
Please include both build steps as well as run steps
- Write a Java program (e.g. just a Hello World) and compile it to bytecode
- Compile it to a native binary with
native-image -g HelloWorld - Load the binary in gdb:
gdb helloworld
Describe GraalVM and your environment:
- GraalVM version: CE 22.1.0
- JDK major version: 17
- OS: Arch Linux
- Architecture: AMD64
- gdb: 12.1 (also tested on 10.2 and 11.2)