Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Re: [RFA] Add ix86 target to asm-source.exp test
@ 2001-11-24 23:41 Kuppuswamy, Priyadarshini
  2001-11-25  7:45 ` Michael Snyder
  2001-11-30 13:53 ` Kuppuswamy, Priyadarshini
  0 siblings, 2 replies; 13+ messages in thread
From: Kuppuswamy, Priyadarshini @ 2001-11-24 23:41 UTC (permalink / raw)
  To: gdb-patches

In asm-source.exp  file, initially it checks for the assembly source
file based on the target(d10v.inc, sparc.inc or intel[345]86.inc]. I
notice that the assembly file has been implemented for sparc, intel.  I
ran the tests on alpha and I see that the assembly source file for alpha
has not been implemented and hence it's giving  the following errors. So
all the test cases in that file are failing.

Running
/mnt/u2/toolchain/buildsys/source/src/gdb/testsuite/gdb.asm/asm-source.e
xp ...
WARNING: Assembly source test -- not implemented for this target.

Executing on host: as
/mnt/u2/toolchain/buildsys/source/src/gdb/testsuite/gdb.asm/asmsrc1.s
-gstabs -I/mnt/u2/toolchain/buildsys/source/src/gdb/testsuite/gdb.asm
-I/mnt/u2/toolchain/buildsys/build/alpha7/basic-gcc_3.0.2/native/src-gdb
/gdb/testsuite/gdb.asm -o asmsrc1.o    (timeout = 300)
/mnt/u2/toolchain/buildsys/source/src/gdb/testsuite/gdb.asm/asmsrc1.s:
Assembler messages:^M
/mnt/u2/toolchain/buildsys/source/src/gdb/testsuite/gdb.asm/asmsrc1.s:14
: Error: unknown opcode `gdbasm_startup'^M
/mnt/u2/toolchain/buildsys/source/src/gdb/testsuite/gdb.asm/asmsrc1.s:15
: Error: unknown opcode `gdbasm_call'^M
/mnt/u2/toolchain/buildsys/source/src/gdb/testsuite/gdb.asm/asmsrc1.s:16
: Error: unknown opcode `gdbasm_exit'^M
/mnt/u2/toolchain/buildsys/source/src/gdb/testsuite/gdb.asm/asmsrc1.s:25
: Error: unknown opcode `gdbasm_enter'^M
/mnt/u2/toolchain/buildsys/source/src/gdb/testsuite/gdb.asm/asmsrc1.s:29
: Error: unknown opcode `gdbasm_several_nops'^M
/mnt/u2/toolchain/buildsys/source/src/gdb/testsuite/gdb.asm/asmsrc1.s:33
: Error: unknown opcode `gdbasm_call'^M
/mnt/u2/toolchain/buildsys/source/src/gdb/testsuite/gdb.asm/asmsrc1.s:37
: Error: unknown opcode `gdbasm_exit'^M
/mnt/u2/toolchain/buildsys/source/src/gdb/testsuite/gdb.asm/asmsrc1.s:43
: Error: unknown opcode `gdbasm_enter'^M
/mnt/u2/toolchain/buildsys/source/src/gdb/testsuite/gdb.asm/asmsrc1.s:44
: Error: unknown opcode `gdbasm_leave'^M
/mnt/u2/toolchain/buildsys/source/src/gdb/testsuite/gdb.asm/asmsrc1.s:48
: Error: unknown opcode `gdbasm_exit'^M
assembler exited with status 1
assembler output is:
/mnt/u2/toolchain/buildsys/source/src/gdb/testsuite/gdb.asm/asmsrc1.s:
Assembler messages:^M
/mnt/u2/toolchain/buildsys/source/src/gdb/testsuite/gdb.asm/asmsrc1.s:14
: Error: unknown opcode `gdbasm_startup'^M
/mnt/u2/toolchain/buildsys/source/src/gdb/testsuite/gdb.asm/asmsrc1.s:15
: Error: unknown opcode `gdbasm_call'^M
/mnt/u2/toolchain/buildsys/source/src/gdb/testsuite/gdb.asm/asmsrc1.s:16
: Error: unknown opcode `gdbasm_exit'^M
/mnt/u2/toolchain/buildsys/source/src/gdb/testsuite/gdb.asm/asmsrc1.s:25
: Error: unknown opcode `gdbasm_enter'^M
/mnt/u2/toolchain/buildsys/source/src/gdb/testsuite/gdb.asm/asmsrc1.s:29
: Error: unknown opcode `gdbasm_several_nops'^M
/mnt/u2/toolchain/buildsys/source/src/gdb/testsuite/gdb.asm/asmsrc1.s:33
: Error: unknown opcode `gdbasm_call'^M
/mnt/u2/toolchain/buildsys/source/src/gdb/testsuite/gdb.asm/asmsrc1.s:37
: Error: unknown opcode `gdbasm_exit'^M
/mnt/u2/toolchain/buildsys/source/src/gdb/testsuite/gdb.asm/asmsrc1.s:43
: Error: unknown opcode `gdbasm_enter'^M
/mnt/u2/toolchain/buildsys/source/src/gdb/testsuite/gdb.asm/asmsrc1.s:44
: Error: unknown opcode `gdbasm_leave'^M
/mnt/u2/toolchain/buildsys/source/src/gdb/testsuite/gdb.asm/asmsrc1.s:48
: Error: unknown opcode `gdbasm_exit'^M

WARNING: Testcase compile failed, so all tests in this file will
automatically fail.

Or am I missing something here??

Thanks
Priya


^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: [RFA] Add ix86 target to asm-source.exp test
@ 2001-11-14  8:45 Michael Elizabeth Chastain
  0 siblings, 0 replies; 13+ messages in thread
From: Michael Elizabeth Chastain @ 2001-11-14  8:45 UTC (permalink / raw)
  To: msnyder; +Cc: gdb-patches

So the test was actually doing its job and pointing to a bug in gdb.
Nice!

I updated symtab.c to the current version, 1.49, where the incorrect
change has been reverted.  The results are a perfect 10 PASS, 0 FAIL
with both binutils-2.11.2 and binutils-HEAD.  More nice!

I'm a happy tester,

Michael C


^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: [RFA] Add ix86 target to asm-source.exp test
@ 2001-11-10 12:54 Michael Elizabeth Chastain
  2001-11-13  8:48 ` Michael Snyder
  0 siblings, 1 reply; 13+ messages in thread
From: Michael Elizabeth Chastain @ 2001-11-10 12:54 UTC (permalink / raw)
  To: msnyder; +Cc: gdb-patches

I ran the new asm-source.exp test for x86 targets and it is not working for me.

My environment: native i686-pc-linux-gnu, red hat linux 7.1, cvs gdb,
various versions of gcc, cvs binutils, dejagnu 1.4.2.

I tried binutils 2.11.2 and /bin/as + /bin/ld as well with no joy.

Here are the excerpts:

  http://www.shout.net/~mec/sunday/2001-11-24/log-asm-source/gcc-2.95.3-excerpt.txt
  http://www.shout.net/~mec/sunday/2001-11-24/log-asm-source/gcc-3.0.2-excerpt.txt
  http://www.shout.net/~mec/sunday/2001-11-24/log-asm-source/gcc-HEAD-excerpt.txt
  http://www.shout.net/~mec/sunday/2001-11-24/log-asm-source/gcc-gcc-3_0-branch-excerpt.txt

Basically, the test fails on the first "f" command, and then
derails on the "s" command in main.

It feels like an environmental dependency, like something is missing or
wrong in my test harness.  If you have all PASSes for this test, can
you post some excerpts from your gdb.log, and tell me what your PATH
is set to?

Michael C


^ permalink raw reply	[flat|nested] 13+ messages in thread
* [RFA] Add ix86 target to asm-source.exp test
@ 2001-11-08 11:26 Michael Snyder
  2001-11-08 12:29 ` Pierre Muller
  2001-11-08 15:20 ` Andrew Cagney
  0 siblings, 2 replies; 13+ messages in thread
From: Michael Snyder @ 2001-11-08 11:26 UTC (permalink / raw)
  To: gdb-patches; +Cc: cagney, fnasser


This is a minimal port of the asm-source test to the i[3456]86 target.
This runs successfully on a Linux x86 machine, but will probably need
some work to make it run on other ix86 platforms (esp. embedded).

The file "i386.inc" is appended at the end of the patch.

Andrew -- since Fernando is stepping down as testsuite maintainer, 
and since you've tinkered with asm-source, perhaps you could play
the role of second-pair-of-eyes?

Michael

2001-11-20  Michael Snyder  <msnyder@redhat.com>

	* gdb.asm/i386.inc: New file.
	* gdb.asm/asm-source.exp: Recognize ix86 target.
	* gdb.asm/configure.in: Recognize ix86 target.
	* gdb.asm/configure: Regenerate.

Index: configure
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.asm/configure,v
retrieving revision 1.1.1.1
diff -c -3 -p -r1.1.1.1 configure
*** configure	1999/04/16 01:34:30	1.1.1.1
--- configure	2001/11/21 01:46:48
*************** test "$host_alias" != "$target_alias" &&
*** 634,639 ****
--- 634,640 ----
  archinc=common.inc
  case ${target} in
  d10v-*-*) archinc=d10v.inc ;;
+ i[3456]86*) archinc=i386.inc ;;
  esac
  
  
Index: configure.in
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.asm/configure.in,v
retrieving revision 1.1.1.1
diff -c -3 -p -r1.1.1.1 configure.in
*** configure.in	1999/04/16 01:34:30	1.1.1.1
--- configure.in	2001/11/21 01:46:48
*************** dnl In default case we need to link with
*** 16,21 ****
--- 16,22 ----
  archinc=common.inc
  case ${target} in
  d10v-*-*) archinc=d10v.inc ;;
+ i[3456]86*) archinc=i386.inc ;;
  esac
  AC_LINK_FILES($archinc,arch.inc)
  
Index: asm-source.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.asm/asm-source.exp,v
retrieving revision 1.5
diff -c -3 -p -r1.5 asm-source.exp
*** asm-source.exp	2001/11/10 01:44:43	1.5
--- asm-source.exp	2001/11/21 01:46:48
*************** set asm-flags ""
*** 37,42 ****
--- 37,45 ----
  if [istarget "d10v-*-*"] then {
      set asm-arch d10v
  }
+ if [istarget "i\[3456\]86-*-*"] then {
+     set asm-arch i386
+ }
  if { "${asm-arch}" == "" } {
      gdb_suppress_entire_file "Assembly source test -- not implemented for this target."
  }

	comment "subroutine prologue"
	.macro gdbasm_enter
	push	%ebp
	mov	%esp,%ebp
	.endm

	comment "subroutine epilogue"
	.macro gdbasm_leave
	pop	%ebp
	ret
	.endm

	.macro gdbasm_call subr
	call	\subr
	.endm

	.macro gdbasm_several_nops
	nop
	nop
	nop
	nop
	.endm

	comment "exit (0)"
	.macro gdbasm_exit0
	hlt
	.endm

	comment "crt0 startup"
	.macro gdbasm_startup
	xor	%ebp, %ebp
	.endm


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2001-11-30 22:12 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-24 23:41 [RFA] Add ix86 target to asm-source.exp test Kuppuswamy, Priyadarshini
2001-11-25  7:45 ` Michael Snyder
2001-11-30 14:12   ` Michael Snyder
2001-11-30 13:53 ` Kuppuswamy, Priyadarshini
  -- strict thread matches above, loose matches on Subject: below --
2001-11-14  8:45 Michael Elizabeth Chastain
2001-11-10 12:54 Michael Elizabeth Chastain
2001-11-13  8:48 ` Michael Snyder
2001-11-26 14:22   ` Michael Snyder
2001-11-08 11:26 Michael Snyder
2001-11-08 12:29 ` Pierre Muller
2001-11-08 15:21   ` Michael Snyder
2001-11-08 15:20 ` Andrew Cagney
2001-11-09  1:49   ` Michael Snyder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox