Cannot debug 32 bits application on 64 bits host
Yinon Ehrlich <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <CAGE=tZGqRH6RDB0SnXWLNq18g8jiEyndd3_jQbbYD9Siyso2Mw@mail.gmail.com> |
Hi,
gdb (both 32 & 64 bits) cannot load 32 bits application with core file
on Debian x64 - issues a lot of warnings about ".dynamic section ...
is not at the expected address", then 'bt' stops with "previous frame
inner to this frame (corrupt stack?)"
The same gdb works on Ubuntu x32 !
The command-line used to check it is:
gdb 32bit.app 32bit.core -nx --batch -ex "bt"
But: when running the same command-line and hitting Ctrl+C while the
trace-back is loaded, the trace-back is seen !
Note: this happens both with stock Debian x64 /usb/bin/gdb as well as
gdb I configured using:
"./configure --enable-targets=mipsisa32r2el-linux-gnu,i686-pc-linux-gnu,x86_64-pc-linux-gnu,i686-pc-mingw32,x86_64-pc-mingw
--with-system-gdbinit=/etc/gdb/gdbinit --with-python=yes"
Any idea ?
Thanks in advance,
Yinon