This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: cross gdb for arm-freebsd
- From: Tom Tromey <tromey at redhat dot com>
- To: "John Hein" <jhein-gdbml at snkmail dot com>
- Cc: gdb at sourceware dot org
- Date: Tue, 01 Nov 2011 13:24:28 -0600
- Subject: Re: cross gdb for arm-freebsd
- References: <31555-1320078547-391519@sneakemail.com>
>>>>> "John" == John Hein <jhein-gdbml@snkmail.com> writes:
John> The gdb in the base FreeBSD is quite old (6.1.1) and I'm having
John> trouble debugging a core file from a threaded application. A newer
John> gdb (7.2 and 7.3.1) are in FreeBSD's ports system, but getting it to
John> build for --target=arm-freebsd and read core files is proving
John> difficult - I could use a few hints.
John> --- orig/armfbsd-tdep.c 2007-11-18 10:07:47.000000000 -0700
John> +++ armfbsd-tdep.c 2011-10-31 10:14:58.000000000 -0600
This file isn't in gdb. I guess it is a FreeBSD addition.
John> It compiles, but I'm getting this when I try to debug a core file:
[...]
John> warning: "/tmp/core1.core": no core file handler recognizes format, using default
I think this is probably the root of your problems. I suggest debugging
gdb and stepping through sniff_core_bfd. I don't know this area well
but I think this function should find the core file reader for your
target.
Tom