Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Oct 2016 15:28:10 -0700
From:      John Baldwin <jhb@freebsd.org>
To:        FreeBSD mips <freebsd-mips@freebsd.org>
Subject:   CFT: gdb7 for mips
Message-ID:  <2889965.d6hI3Bs9hG@ralph.baldwin.cx>

next in thread | raw e-mail | index | archive | help
I have an initial set of patches to support MIPS in modern gdb.  I'd
like to get some initial testing before pushing the patches upstream.
So far I have tested n64 and o32 but not n32.  Things that are tested
include:

- cross and native debugging of n64 and o32 cores.
- shared libraries
- threads
- fork following
- unwinding across signal frames
- gcore (though only the native debugger can read generated cores)

Things that are still todo:

- n32 testing (probably needs a sigframe unwinder though it can perhaps
  just use the n64 unwinder)
- Implementing a gdbarch method to find the location of a longjmp
  (needed for single stepping across longjmp I think)

Things that aren't tested at all:

- floating point support

I also have a port of kgdb support that should support cross-debugging of
vmcores.  However, it seems that minidumps in MIPS are broken as global
variables from the kernel aren't included in the dump.

What I'd like is for folks to test the new gdb.  Right now it is easiest
to build from git using ./configure and gmake.  You can clone the
'mips_fbsd_nat' branch from github.com/bsdjhb/gdb.git.

You might be able to apply the patch of that branch against 'master' to
the port but I haven't tried that at all.

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2889965.d6hI3Bs9hG>