Dwarf Error: wrong version in compilation unit header

Ran Shalit ranshalit@gmail.com
Thu Aug 20 16:03:00 GMT 2015


I'm trying to debug kernel (vmlinux) with kgdb
I am using gdb version 7.9.1.

These are the logs in eclipse (host) and in target:

In eclipse I see the following:

Python Exception <type 'exceptions.ImportError'> No module named gdb:
/home/ubuntu/dtu/jjj/gdb-7.9.1/gdb/gdb: warning:
Could not load the Python gdb module from `/home/tigran/gdb/share/gdb/python'.
Limited Python support is available from the _gdb module.
Suggest passing --data-directory=/path/to/gdb/data-directory.

GNU gdb (GDB) 7.9.1
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
Find the GDB manual and other documentation resources online at:
For help, type "help".
Type "apropos word" to search for commands related to "word".
0xc03e366c in arch_kgdb_breakpoint () at kernel/debug/debug_core.c:1049
1049 wmb(); /* Sync point before breakpoint */
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Reply contains invalid hex digit 116
Ignoring packet error, continuing...
Function "main" not defined.          <-- lat message

And in target I see the following:
console [ttyS0] enabled
console [ttyS0] enabled
bootconsole [udbg0] disabled
bootconsole [udbg0] disabled
serial8250.0: ttyS1 at MMIO 0xe0004600 (irq = 17, base_baud = 16500000) is a 16A
kgdb: Registered I/O driver kgdboc.
kgdb: Waiting for connection from remote gdb...
mtip32xx Version 1.3.1
Error creating debugfs parent
Uniform Multi-Platform E-IDE driver
ide-gd driver 1  <- got stuck here.

Does anyone have any idea ?


More information about the Gdb mailing list