Blame SOURCES/gdb-6.7-bz426600-DW_TAG_interface_type-test.patch

861f93
http://sourceware.org/ml/gdb-patches/2007-12/msg00397.html
861f93
861f93
2007-12-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
861f93
861f93
	* gdb.arch/i386-interface.S, gdb.arch/i386-interface.exp: New files.
861f93
861f93
2008-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
861f93
861f93
	* gdb.arch/i386-interface.exp: Fix a testcase race.
861f93
861f93
--- /dev/null	1 Jan 1970 00:00:00 -0000
861f93
+++ ./gdb/testsuite/gdb.arch/i386-interface.S	22 Dec 2007 19:07:28 -0000
861f93
@@ -0,0 +1,628 @@
861f93
+/* Copyright 2007 Free Software Foundation, Inc.
861f93
+
861f93
+   This program is free software; you can redistribute it and/or modify
861f93
+   it under the terms of the GNU General Public License as published by
861f93
+   the Free Software Foundation; either version 3 of the License, or
861f93
+   (at your option) any later version.
861f93
+
861f93
+   This program is distributed in the hope that it will be useful,
861f93
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
861f93
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
861f93
+   GNU General Public License for more details.
861f93
+
861f93
+   You should have received a copy of the GNU General Public License
861f93
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.
861f93
+
861f93
+   Please email any bugs, comments, and/or additions to this file to:
861f93
+   bug-gdb@gnu.org
861f93
+
861f93
+   This file is part of the gdb testsuite.
861f93
+
861f93
+   This file was produced by:
861f93
+   $ gcj -S interface.java -ggdb2 -Wall -m32
861f93
+   from the .java file:
861f93
+     interface Interface
861f93
+     {
861f93
+     }
861f93
+     class Class implements Interface
861f93
+     {  
861f93
+     }
861f93
+*/
861f93
+
861f93
+	.file	"cc28Pp2B.jar"
861f93
+	.section	.debug_abbrev,"",@progbits
861f93
+.Ldebug_abbrev0:
861f93
+	.section	.debug_info,"",@progbits
861f93
+.Ldebug_info0:
861f93
+	.section	.debug_line,"",@progbits
861f93
+.Ldebug_line0:
861f93
+	.text
861f93
+.Ltext0:
861f93
+	.local	_MT_Interface
861f93
+	.comm	_MT_Interface,0,4
861f93
+	.data
861f93
+	.align 4
861f93
+	.type	_catch_classes_Interface, @object
861f93
+	.size	_catch_classes_Interface, 24
861f93
+_catch_classes_Interface:
861f93
+	.zero	24
861f93
+	.section	.rodata
861f93
+	.align 2
861f93
+	.type	_Utf1, @object
861f93
+	.size	_Utf1, 4
861f93
+_Utf1:
861f93
+	.value	36121
861f93
+	.value	9
861f93
+	.ascii	"Interface"
861f93
+	.zero	1
861f93
+.globl _ZN9Interface6class$E
861f93
+	.data
861f93
+	.align 32
861f93
+	.type	_ZN9Interface6class$E, @object
861f93
+	.size	_ZN9Interface6class$E, 144
861f93
+_ZN9Interface6class$E:
861f93
+	.long	_ZTVN4java4lang5ClassE+8
861f93
+	.long	403000
861f93
+	.long	_Utf1
861f93
+	.value	1536
861f93
+	.zero	2
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.long	_MT_Interface
861f93
+	.value	0
861f93
+	.value	6
861f93
+	.long	0
861f93
+	.long	4
861f93
+	.value	0
861f93
+	.value	0
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.long	_catch_classes_Interface
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.value	0
861f93
+	.byte	1
861f93
+	.zero	1
861f93
+	.long	0
861f93
+	.value	0
861f93
+	.zero	2
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.hidden	_ZN9Interface7class$$E
861f93
+.globl _ZN9Interface7class$$E
861f93
+	.section	.rodata
861f93
+	.align 4
861f93
+	.type	_ZN9Interface7class$$E, @object
861f93
+	.size	_ZN9Interface7class$$E, 4
861f93
+_ZN9Interface7class$$E:
861f93
+	.long	_ZN9Interface6class$E
861f93
+	.text
861f93
+	.align 2
861f93
+.globl _ZN5ClassC1Ev
861f93
+	.type	_ZN5ClassC1Ev, @function
861f93
+_ZN5ClassC1Ev:
861f93
+.LFB2:
861f93
+	pushl	%ebp
861f93
+.LCFI0:
861f93
+	movl	%esp, %ebp
861f93
+.LCFI1:
861f93
+	subl	$24, %esp
861f93
+.LCFI2:
861f93
+.LBB2:
861f93
+#if 0
861f93
+	.file 1 "interface.java"
861f93
+#else
861f93
+	.file "interface.java"
861f93
+#endif
861f93
+	.loc 1 4 0
861f93
+	movl	8(%ebp), %eax
861f93
+	movl	%eax, -4(%ebp)
861f93
+	movl	-4(%ebp), %eax
861f93
+	movl	%eax, (%esp)
861f93
+	call	_ZN4java4lang6ObjectC1Ev
861f93
+.LBE2:
861f93
+	leave
861f93
+	ret
861f93
+.LFE2:
861f93
+	.size	_ZN5ClassC1Ev, .-_ZN5ClassC1Ev
861f93
+	.hidden	_ZTVN5ClassE
861f93
+.globl _ZTVN5ClassE
861f93
+	.data
861f93
+	.align 32
861f93
+	.type	_ZTVN5ClassE, @object
861f93
+	.size	_ZTVN5ClassE, 40
861f93
+_ZTVN5ClassE:
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.long	_ZN5Class6class$E
861f93
+	.long	4
861f93
+	.long	_ZN4java4lang6Object8finalizeEJvv
861f93
+	.long	_ZN4java4lang6Object8hashCodeEJiv
861f93
+	.long	_ZN4java4lang6Object6equalsEJbPS1_
861f93
+	.long	_ZN4java4lang6Object8toStringEJPNS0_6StringEv
861f93
+	.long	_ZN4java4lang6Object5cloneEJPS1_v
861f93
+	.long	_ZN4java4lang6Object22throwNoSuchMethodErrorEJvv
861f93
+	.set	.L_ZN5ClassC1Ev0,_ZN5ClassC1Ev
861f93
+	.section	.rodata
861f93
+	.align 2
861f93
+	.type	_Utf2, @object
861f93
+	.size	_Utf2, 4
861f93
+_Utf2:
861f93
+	.value	626
861f93
+	.value	6
861f93
+	.ascii	"<init>"
861f93
+	.zero	1
861f93
+	.align 2
861f93
+	.type	_Utf3, @object
861f93
+	.size	_Utf3, 4
861f93
+_Utf3:
861f93
+	.value	39797
861f93
+	.value	3
861f93
+	.ascii	"()V"
861f93
+	.zero	1
861f93
+	.data
861f93
+	.align 4
861f93
+	.type	_MT_Class, @object
861f93
+	.size	_MT_Class, 20
861f93
+_MT_Class:
861f93
+	.long	_Utf2
861f93
+	.long	_Utf3
861f93
+	.value	16384
861f93
+	.value	-1
861f93
+	.long	.L_ZN5ClassC1Ev0
861f93
+	.long	0
861f93
+	.align 4
861f93
+	.type	_IF_Class, @object
861f93
+	.size	_IF_Class, 4
861f93
+_IF_Class:
861f93
+	.long	_ZN9Interface6class$E
861f93
+	.align 4
861f93
+	.type	_catch_classes_Class, @object
861f93
+	.size	_catch_classes_Class, 24
861f93
+_catch_classes_Class:
861f93
+	.zero	24
861f93
+	.section	.rodata
861f93
+	.align 2
861f93
+	.type	_Utf4, @object
861f93
+	.size	_Utf4, 4
861f93
+_Utf4:
861f93
+	.value	47448
861f93
+	.value	5
861f93
+	.ascii	"Class"
861f93
+	.zero	1
861f93
+.globl _ZN5Class6class$E
861f93
+	.data
861f93
+	.align 32
861f93
+	.type	_ZN5Class6class$E, @object
861f93
+	.size	_ZN5Class6class$E, 144
861f93
+_ZN5Class6class$E:
861f93
+	.long	_ZTVN4java4lang5ClassE+8
861f93
+	.long	403000
861f93
+	.long	_Utf4
861f93
+	.value	32
861f93
+	.zero	2
861f93
+	.long	_ZN4java4lang6Object6class$E
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.long	_MT_Class
861f93
+	.value	1
861f93
+	.value	6
861f93
+	.long	0
861f93
+	.long	4
861f93
+	.value	0
861f93
+	.value	0
861f93
+	.long	_ZTVN5ClassE+8
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.long	_catch_classes_Class
861f93
+	.long	_IF_Class
861f93
+	.long	0
861f93
+	.value	1
861f93
+	.byte	1
861f93
+	.zero	1
861f93
+	.long	0
861f93
+	.value	0
861f93
+	.zero	2
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.long	0
861f93
+	.hidden	_ZN5Class7class$$E
861f93
+.globl _ZN5Class7class$$E
861f93
+	.section	.rodata
861f93
+	.align 4
861f93
+	.type	_ZN5Class7class$$E, @object
861f93
+	.size	_ZN5Class7class$$E, 4
861f93
+_ZN5Class7class$$E:
861f93
+	.long	_ZN5Class6class$E
861f93
+	.section	.jcr,"aw",@progbits
861f93
+	.align 4
861f93
+	.long	_ZN9Interface6class$E
861f93
+	.long	_ZN5Class6class$E
861f93
+	.section	.debug_frame,"",@progbits
861f93
+.Lframe0:
861f93
+	.long	.LECIE0-.LSCIE0
861f93
+.LSCIE0:
861f93
+	.long	0xffffffff
861f93
+	.byte	0x1
861f93
+	.string	""
861f93
+	.uleb128 0x1
861f93
+	.sleb128 -4
861f93
+	.byte	0x8
861f93
+	.byte	0xc
861f93
+	.uleb128 0x4
861f93
+	.uleb128 0x4
861f93
+	.byte	0x88
861f93
+	.uleb128 0x1
861f93
+	.align 4
861f93
+.LECIE0:
861f93
+.LSFDE0:
861f93
+	.long	.LEFDE0-.LASFDE0
861f93
+.LASFDE0:
861f93
+	.long	.Lframe0
861f93
+	.long	.LFB2
861f93
+	.long	.LFE2-.LFB2
861f93
+	.byte	0x4
861f93
+	.long	.LCFI0-.LFB2
861f93
+	.byte	0xe
861f93
+	.uleb128 0x8
861f93
+	.byte	0x85
861f93
+	.uleb128 0x2
861f93
+	.byte	0x4
861f93
+	.long	.LCFI1-.LCFI0
861f93
+	.byte	0xd
861f93
+	.uleb128 0x5
861f93
+	.align 4
861f93
+.LEFDE0:
861f93
+	.section	.eh_frame,"a",@progbits
861f93
+.Lframe1:
861f93
+	.long	.LECIE1-.LSCIE1
861f93
+.LSCIE1:
861f93
+	.long	0x0
861f93
+	.byte	0x1
861f93
+.globl __gcj_personality_v0
861f93
+	.string	"zP"
861f93
+	.uleb128 0x1
861f93
+	.sleb128 -4
861f93
+	.byte	0x8
861f93
+	.uleb128 0x5
861f93
+	.byte	0x0
861f93
+	.long	__gcj_personality_v0
861f93
+	.byte	0xc
861f93
+	.uleb128 0x4
861f93
+	.uleb128 0x4
861f93
+	.byte	0x88
861f93
+	.uleb128 0x1
861f93
+	.align 4
861f93
+.LECIE1:
861f93
+.LSFDE1:
861f93
+	.long	.LEFDE1-.LASFDE1
861f93
+.LASFDE1:
861f93
+	.long	.LASFDE1-.Lframe1
861f93
+	.long	.LFB2
861f93
+	.long	.LFE2-.LFB2
861f93
+	.uleb128 0x0
861f93
+	.byte	0x4
861f93
+	.long	.LCFI0-.LFB2
861f93
+	.byte	0xe
861f93
+	.uleb128 0x8
861f93
+	.byte	0x85
861f93
+	.uleb128 0x2
861f93
+	.byte	0x4
861f93
+	.long	.LCFI1-.LCFI0
861f93
+	.byte	0xd
861f93
+	.uleb128 0x5
861f93
+	.align 4
861f93
+.LEFDE1:
861f93
+	.text
861f93
+.Letext0:
861f93
+	.section	.debug_loc,"",@progbits
861f93
+.Ldebug_loc0:
861f93
+.LLST0:
861f93
+	.long	.LFB2-.Ltext0
861f93
+	.long	.LCFI0-.Ltext0
861f93
+	.value	0x2
861f93
+	.byte	0x74
861f93
+	.sleb128 4
861f93
+	.long	.LCFI0-.Ltext0
861f93
+	.long	.LCFI1-.Ltext0
861f93
+	.value	0x2
861f93
+	.byte	0x74
861f93
+	.sleb128 8
861f93
+	.long	.LCFI1-.Ltext0
861f93
+	.long	.LFE2-.Ltext0
861f93
+	.value	0x2
861f93
+	.byte	0x75
861f93
+	.sleb128 8
861f93
+	.long	0x0
861f93
+	.long	0x0
861f93
+	.section	.debug_info
861f93
+	.long	0x117
861f93
+	.value	0x2
861f93
+	.long	.Ldebug_abbrev0
861f93
+	.byte	0x4
861f93
+	.uleb128 0x1
861f93
+	.string	"GNU Java 4.3.0 20071221 (experimental)"
861f93
+	.byte	0xb
861f93
+	.string	"interface.java"
861f93
+	.string	"/home/jkratoch/redhat/bz371831"
861f93
+	.long	.Ltext0
861f93
+	.long	.Letext0
861f93
+	.long	.Ldebug_line0
861f93
+	.uleb128 0x2
861f93
+	.string	"Interface"
861f93
+	.byte	0x4
861f93
+	.byte	0x1
861f93
+	.byte	0x0
861f93
+	.long	0x8e
861f93
+	.long	0x8e
861f93
+	.uleb128 0x3
861f93
+	.long	0x8e
861f93
+	.byte	0x2
861f93
+	.byte	0x23
861f93
+	.uleb128 0x0
861f93
+	.byte	0x1
861f93
+	.byte	0x0
861f93
+	.uleb128 0x4
861f93
+	.string	"java.lang.Object"
861f93
+	.byte	0x1
861f93
+	.uleb128 0x5
861f93
+	.string	"Class"
861f93
+	.byte	0x4
861f93
+	.byte	0x1
861f93
+	.byte	0x0
861f93
+	.long	0x8e
861f93
+	.long	0xe8
861f93
+	.uleb128 0x3
861f93
+	.long	0x8e
861f93
+	.byte	0x2
861f93
+	.byte	0x23
861f93
+	.uleb128 0x0
861f93
+	.byte	0x1
861f93
+	.uleb128 0x6
861f93
+	.long	0x6e
861f93
+	.byte	0x2
861f93
+	.byte	0x23
861f93
+	.uleb128 0x0
861f93
+	.byte	0x1
861f93
+	.byte	0x1
861f93
+	.uleb128 0x7
861f93
+	.byte	0x1
861f93
+	.string	"<init>"
861f93
+	.byte	0x1
861f93
+	.byte	0x0
861f93
+	.string	"_ZN5ClassC1Ev"
861f93
+	.byte	0x1
861f93
+	.uleb128 0x8
861f93
+	.long	0xe8
861f93
+	.byte	0x1
861f93
+	.byte	0x0
861f93
+	.byte	0x0
861f93
+	.uleb128 0x9
861f93
+	.byte	0x4
861f93
+	.long	0xa1
861f93
+	.uleb128 0xa
861f93
+	.long	0xc6
861f93
+	.long	.LFB2
861f93
+	.long	.LFE2
861f93
+	.long	.LLST0
861f93
+	.long	0x114
861f93
+	.uleb128 0xb
861f93
+	.long	0xe8
861f93
+	.byte	0x2
861f93
+	.byte	0x91
861f93
+	.sleb128 0
861f93
+	.uleb128 0xc
861f93
+	.long	0x114
861f93
+	.byte	0x2
861f93
+	.byte	0x91
861f93
+	.sleb128 -12
861f93
+	.byte	0x0
861f93
+	.uleb128 0x9
861f93
+	.byte	0x4
861f93
+	.long	0x8e
861f93
+	.byte	0x0
861f93
+	.section	.debug_abbrev
861f93
+	.uleb128 0x1
861f93
+	.uleb128 0x11
861f93
+	.byte	0x1
861f93
+	.uleb128 0x25
861f93
+	.uleb128 0x8
861f93
+	.uleb128 0x13
861f93
+	.uleb128 0xb
861f93
+	.uleb128 0x3
861f93
+	.uleb128 0x8
861f93
+	.uleb128 0x1b
861f93
+	.uleb128 0x8
861f93
+	.uleb128 0x11
861f93
+	.uleb128 0x1
861f93
+	.uleb128 0x12
861f93
+	.uleb128 0x1
861f93
+	.uleb128 0x10
861f93
+	.uleb128 0x6
861f93
+	.byte	0x0
861f93
+	.byte	0x0
861f93
+	.uleb128 0x2
861f93
+	.uleb128 0x38
861f93
+	.byte	0x1
861f93
+	.uleb128 0x3
861f93
+	.uleb128 0x8
861f93
+	.uleb128 0xb
861f93
+	.uleb128 0xb
861f93
+	.uleb128 0x3a
861f93
+	.uleb128 0xb
861f93
+	.uleb128 0x3b
861f93
+	.uleb128 0xb
861f93
+	.uleb128 0x1d
861f93
+	.uleb128 0x13
861f93
+	.uleb128 0x1
861f93
+	.uleb128 0x13
861f93
+	.byte	0x0
861f93
+	.byte	0x0
861f93
+	.uleb128 0x3
861f93
+	.uleb128 0x1c
861f93
+	.byte	0x0
861f93
+	.uleb128 0x49
861f93
+	.uleb128 0x13
861f93
+	.uleb128 0x38
861f93
+	.uleb128 0xa
861f93
+	.uleb128 0x32
861f93
+	.uleb128 0xb
861f93
+	.byte	0x0
861f93
+	.byte	0x0
861f93
+	.uleb128 0x4
861f93
+	.uleb128 0x2
861f93
+	.byte	0x0
861f93
+	.uleb128 0x3
861f93
+	.uleb128 0x8
861f93
+	.uleb128 0x3c
861f93
+	.uleb128 0xc
861f93
+	.byte	0x0
861f93
+	.byte	0x0
861f93
+	.uleb128 0x5
861f93
+	.uleb128 0x2
861f93
+	.byte	0x1
861f93
+	.uleb128 0x3
861f93
+	.uleb128 0x8
861f93
+	.uleb128 0xb
861f93
+	.uleb128 0xb
861f93
+	.uleb128 0x3a
861f93
+	.uleb128 0xb
861f93
+	.uleb128 0x3b
861f93
+	.uleb128 0xb
861f93
+	.uleb128 0x1d
861f93
+	.uleb128 0x13
861f93
+	.uleb128 0x1
861f93
+	.uleb128 0x13
861f93
+	.byte	0x0
861f93
+	.byte	0x0
861f93
+	.uleb128 0x6
861f93
+	.uleb128 0x1c
861f93
+	.byte	0x0
861f93
+	.uleb128 0x49
861f93
+	.uleb128 0x13
861f93
+	.uleb128 0x38
861f93
+	.uleb128 0xa
861f93
+	.uleb128 0x4c
861f93
+	.uleb128 0xb
861f93
+	.uleb128 0x32
861f93
+	.uleb128 0xb
861f93
+	.byte	0x0
861f93
+	.byte	0x0
861f93
+	.uleb128 0x7
861f93
+	.uleb128 0x2e
861f93
+	.byte	0x1
861f93
+	.uleb128 0x3f
861f93
+	.uleb128 0xc
861f93
+	.uleb128 0x3
861f93
+	.uleb128 0x8
861f93
+	.uleb128 0x3a
861f93
+	.uleb128 0xb
861f93
+	.uleb128 0x3b
861f93
+	.uleb128 0xb
861f93
+	.uleb128 0x2007
861f93
+	.uleb128 0x8
861f93
+	.uleb128 0x3c
861f93
+	.uleb128 0xc
861f93
+	.byte	0x0
861f93
+	.byte	0x0
861f93
+	.uleb128 0x8
861f93
+	.uleb128 0x5
861f93
+	.byte	0x0
861f93
+	.uleb128 0x49
861f93
+	.uleb128 0x13
861f93
+	.uleb128 0x34
861f93
+	.uleb128 0xc
861f93
+	.byte	0x0
861f93
+	.byte	0x0
861f93
+	.uleb128 0x9
861f93
+	.uleb128 0xf
861f93
+	.byte	0x0
861f93
+	.uleb128 0xb
861f93
+	.uleb128 0xb
861f93
+	.uleb128 0x49
861f93
+	.uleb128 0x13
861f93
+	.byte	0x0
861f93
+	.byte	0x0
861f93
+	.uleb128 0xa
861f93
+	.uleb128 0x2e
861f93
+	.byte	0x1
861f93
+	.uleb128 0x47
861f93
+	.uleb128 0x13
861f93
+	.uleb128 0x11
861f93
+	.uleb128 0x1
861f93
+	.uleb128 0x12
861f93
+	.uleb128 0x1
861f93
+	.uleb128 0x40
861f93
+	.uleb128 0x6
861f93
+	.uleb128 0x1
861f93
+	.uleb128 0x13
861f93
+	.byte	0x0
861f93
+	.byte	0x0
861f93
+	.uleb128 0xb
861f93
+	.uleb128 0x5
861f93
+	.byte	0x0
861f93
+	.uleb128 0x49
861f93
+	.uleb128 0x13
861f93
+	.uleb128 0x2
861f93
+	.uleb128 0xa
861f93
+	.byte	0x0
861f93
+	.byte	0x0
861f93
+	.uleb128 0xc
861f93
+	.uleb128 0x34
861f93
+	.byte	0x0
861f93
+	.uleb128 0x49
861f93
+	.uleb128 0x13
861f93
+	.uleb128 0x2
861f93
+	.uleb128 0xa
861f93
+	.byte	0x0
861f93
+	.byte	0x0
861f93
+	.byte	0x0
861f93
+	.section	.debug_pubnames,"",@progbits
861f93
+	.long	0x15
861f93
+	.value	0x2
861f93
+	.long	.Ldebug_info0
861f93
+	.long	0x11b
861f93
+	.long	0xee
861f93
+	.string	"()"
861f93
+	.long	0x0
861f93
+	.section	.debug_aranges,"",@progbits
861f93
+	.long	0x1c
861f93
+	.value	0x2
861f93
+	.long	.Ldebug_info0
861f93
+	.byte	0x4
861f93
+	.byte	0x0
861f93
+	.value	0x0
861f93
+	.value	0x0
861f93
+	.long	.Ltext0
861f93
+	.long	.Letext0-.Ltext0
861f93
+	.long	0x0
861f93
+	.long	0x0
861f93
+	.ident	"GCC: (GNU) 4.3.0 20071221 (experimental)"
861f93
+	.section	.note.GNU-stack,"",@progbits
861f93
--- /dev/null	1 Jan 1970 00:00:00 -0000
861f93
+++ ./gdb/testsuite/gdb.arch/i386-interface.exp	22 Dec 2007 19:07:28 -0000
861f93
@@ -0,0 +1,59 @@
861f93
+# Copyright 2007 Free Software Foundation, Inc.
861f93
+
861f93
+# This program is free software; you can redistribute it and/or modify
861f93
+# it under the terms of the GNU General Public License as published by
861f93
+# the Free Software Foundation; either version 3 of the License, or
861f93
+# (at your option) any later version.
861f93
+#
861f93
+# This program is distributed in the hope that it will be useful,
861f93
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
861f93
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
861f93
+# GNU General Public License for more details.
861f93
+#
861f93
+# You should have received a copy of the GNU General Public License
861f93
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
861f93
+
861f93
+# Please email any bugs, comments, and/or additions to this file to:
861f93
+# bug-gdb@gnu.org
861f93
+
861f93
+# This file is part of the gdb testsuite.
861f93
+
861f93
+# Test basis recognization of DW_TAG_interface_type.
861f93
+# GCC java_classify_record() produces it if returns RECORD_IS_INTERFACE.
861f93
+
861f93
+if {![istarget "i?86-*-*"] && ![istarget "x86_64-*-*"]} then {
861f93
+    verbose "Skipping i386 Java DW_TAG_interface_type test."
861f93
+    return
861f93
+}
861f93
+
861f93
+set testfile "i386-interface"
861f93
+set srcfile ${testfile}.S
861f93
+set binfile ${objdir}/${subdir}/${testfile}.o
861f93
+
861f93
+if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" object {debug additional_flags=-m32}] != "" } {
861f93
+    untested i386-gnu-cfi.exp
861f93
+    return -1
861f93
+}
861f93
+
861f93
+# Get things started.
861f93
+
861f93
+gdb_exit
861f93
+gdb_start
861f93
+gdb_reinitialize_dir $srcdir/$subdir
861f93
+gdb_load ${binfile}
861f93
+
861f93
+gdb_test "set language java"
861f93
+
861f93
+set test "ptype Interface"
861f93
+gdb_test_multiple $test $test {
861f93
+    -re "type = class Interface  *extends java.lang.Object \{.*$gdb_prompt $" {
861f93
+	pass $test
861f93
+    }
861f93
+}
861f93
+
861f93
+set test "ptype Class"
861f93
+gdb_test_multiple $test $test {
861f93
+    -re "type = class Class  *extends java.lang.Object implements Interface \{.*$gdb_prompt $" {
861f93
+	pass $test
861f93
+    }
861f93
+}