This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] FreeBSD powerpc support


Hi all,

After a longer timeout here again :)

The attached patch adds support for FreeBSD PowerPC, 32-bit and 64-bit.
It is derived from ppcobsd* and ppc-linux with FreeBSD additions.

There is room for improvement :) And I will continue, but I'd like to
see this patch in the gdb cvs because it will be much easier for me fix
outstanding issues when I can work with cvs iso. of local revisions.
Also, other people might have a use of this work, even if not complete.

Currently missing/incomplete:
- Altivec support, kernel bits are missing.
- HW watchpoints, also kernel bits are missing.
- thread support.
- tls support.
- some sig tests.

Here the summary from 32-bit:

                === gdb Summary ===

# of expected passes            16337
# of unexpected failures        1107
# of expected failures          68
# of known failures             49
# of untested testcases         63
# of unresolved testcases       97
# of unsupported tests          141


Here the summary from 64-bit:
                === gdb Summary ===

# of expected passes            16203
# of unexpected failures        1192
# of unexpected successes       1
# of expected failures          69
# of known failures             48
# of untested testcases         61
# of unresolved testcases       2
# of unsupported tests          141

Note on the results, around 800 failures (c++) are due to compiling with
g++-4.2.1. Using a newer g++ will make them pass. This is on all
supported FreeBSD platforms the same.

I appreciate comments and corrections.

TIA,
Andreas


2012-11-19  Andreas Tobler  <andreast@fgznet.ch>

	* Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
	* configure.host: Add powerpc*-*-freebsd* target.
	* configure.tgt: Add target info for powerpc*-*-freebsd*.
	* ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
	* config/powerpc/fbsd.mh: New file.

Attachment: gdb_ppc_20121119-1.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]