This is the mail archive of the frysk@sources.redhat.com mailing list for the frysk 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]

Re: bi-arch test patch for 64-bit frysk


Hi Yong,
Since the intent is to fully support 32 bit debugging on 64-bit, I think we need to find a more robust and consistent way to always run these (or at least a specific set of) tests. Perhaps consider it at two levels:


- testing 32- x 64-bit features
For instance: a 32-bit program exec-ing a 64-bit program and vice-versa; 32-bit registers read correctly when 64-bit frysk; ...


- generic testing as either 32- or 64- bit
This is less focused but what the below does. Unless it is going to be fully integrated and installed, I'm not sure how useful it is when compared to better focused tests. However, looking at a way to get funit (the installed JUnit TestRunner) to be able to do this might be useful.


Andrew

Yong Zheng wrote:
hi,

On PPC64, all applications are compiled into 32-bit mode by default if
the compiling option "-m64" isn't explicitly given, which means most
applications running on PPC64 are in 32-bit mode. So it's necessary for
64-bit frysk to debug 32-bit applications on PPC64.


Currently, funit(in frysk-core/frysk/pkglibexecdir/) should be build in
64-bit mode, since it is dependent on other 64-bit frysk libraries, such
as libfrysk-core.a.  In order to build other test cases in 32-bit mode
without breaking the 64-bit funit, one rule in Makefile.am is added.
That is to say, we remove all existent test cases(64-bit) except funit,
and rebuild them in 32-bit mode.  All these 32-bit test cases could be
run via TestRunner.

On X86_64, although applications are compiled in 64-bit mode by default,
it's also necessary to do bi-arch test.  The modifications will be
useful to 64-bit frysk on X86_64.

Among the frysk's five main sub-directories, frysk-gtk, frsyk-gui,
frysk-import and frysk-sys needn't do the bi-arch tests for their less
arch-dependence.  So no rules are added for them. If someone thinks it's
also necessary, we'd like to add rules for them.

Please review, and any comments are welcome!
Thanks!

2006-08-24 Yong Zheng <zhengyo@cn.ibm.com>

	* frysk-core/Makefile.am: Add support for compiling 32bit
	testcases.


Best regards Yong Zheng

------------------------------------------------------------------------

Index: frysk-core/Makefile.am
===================================================================
RCS file: /cvs/frysk/frysk-core/Makefile.am,v
retrieving revision 1.61
diff -u -r1.61 Makefile.am
--- frysk-core/Makefile.am 17 Aug 2006 01:54:27 -0000 1.61
+++ frysk-core/Makefile.am 24 Aug 2006 07:24:18 -0000
@@ -120,3 +120,7 @@
.PHONY: installcheck-funit
installcheck-funit:
$(DESTDIR)$(pkglibexecdir)/funit
+
+64test32:
+ -rm -fr frysk/pkglibexecdir/funit-*
+ $(MAKE) $(pkglibexec_PROGRAMS) CC="gcc -m32" CCAS="gcc -m32" CXX="g++ -m32"


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