cross gdb for arm-freebsd

Tom Tromey tromey@redhat.com
Tue Nov 1 19:24:00 GMT 2011


>>>>> "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



More information about the Gdb mailing list