This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Cannot debug 32 bits application on 64 bits host
- From: Yinon Ehrlich <yinon dot me at gmail dot com>
- To: gdb at sourceware dot org
- Date: Wed, 7 Dec 2016 13:43:57 +0200
- Subject: Cannot debug 32 bits application on 64 bits host
- Authentication-results: sourceware.org; auth=none
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