Sergio Martins
Sergio Martins

Reputation: 937

How can I convert from DWARF version4 to version2 ? ( without recompiling )

I'm trying to debug a program that uses DWARF-4 but my gdb is too old and only understands DWARF-2.

I can't update gdb and I can't recompile, so I need a way to convert them, maybe with some binutils tool?

Upvotes: 0

Views: 812

Answers (1)

Tom Tromey
Tom Tromey

Reputation: 22519

I have never heard of a tool that does this.

If this were my problem I would probably hack up either objcopy or dwz to do it.

I wonder why you can't update gdb though. It isn't hard to build your own.

Upvotes: 2

Related Questions