Hi all,

I'm having trouble debugging an ARM core file under scratchbox (running
on Debian Sarge x86) :

[sbox-router: ~] > file snmpd
snmpd: ELF 32-bit LSB executable, ARM, version 1 (ARM), dynamically
linked (uses shared libs), not stripped
[sbox-router: ~] > file snmpd.core
snmpd.core: ELF 32-bit LSB core file ARM, version 1 (SYSV), SVR4-style,
SVR4-style, from 'snmpd'

[sbox-router: ~] > gdb snmpd snmpd.core
GNU gdb 6.1 Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i386-pc-linux-gnu
--target=arm-linux-uclibc"...
GDB can't read core files on this machine.

The binary snmpd and its core file were generated outside of scratchbox
(by buildroot and a real target)

I tried to generate a core from a scratchbox compiled binary  (using
segfault.c from
http://www.scratchbox.org/documentation/user/scratchbox-1.0/html/debugging.html#AEN160)
but it no core is generated (ulimit -c unlimited is set). Adding a
couple of printf's shows that it does abort execution at the null
pointer dereference.
GDB doesn't see the segfault either :

(gdb) step
17                int y = *p;
(gdb) step
Watchdog has expired.  Target detached.


Packages installed are :
[EMAIL PROTECTED]:~$ apt-show-versions | grep scratchbox
scratchbox-toolchain-arm-gcc3.4-uclibc0.9.27/unstable uptodate 1.0.3
scratchbox-core/unstable uptodate 1.0.5
scratchbox-devkit-cputransp/unstable uptodate 1.0
scratchbox-libs/unstable uptodate 1.0.5


Any ideas appreciated,

Martin


_______________________________________________
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

Reply via email to