OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [gdb/] [testsuite/] [gdb.cp/] [psmang2.cc] - Blame information for rev 157

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
/* This test script is part of GDB, the GNU debugger.
2
 
3
   Copyright 2002, 2004,
4
   Free Software Foundation, Inc.
5
 
6
   This program is free software; you can redistribute it and/or modify
7
   it under the terms of the GNU General Public License as published by
8
   the Free Software Foundation; either version 3 of the License, or
9
   (at your option) any later version.
10
 
11
   This program is distributed in the hope that it will be useful,
12
   but WITHOUT ANY WARRANTY; without even the implied warranty of
13
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
   GNU General Public License for more details.
15
 
16
   You should have received a copy of the GNU General Public License
17
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
   */
19
 
20
#include <stdio.h>
21
 
22
/* Do not move this definition into a header file!  See the comments
23
   in psmang.exp.  */
24
struct s
25
{
26
  int value;
27
  void method1 (void);
28
  void method2 (void);
29
};
30
 
31
void
32
s::method2 (void)
33
{
34
  printf ("%d\n", value);
35
}
36
 
37
 
38
/* The presence of these variables ensures there will be so many
39
   symbols in psmang2.cc's symtab's global block that it will have a
40
   non-trivial hash table.  When there are only a very few symbols,
41
   the block only has one hash bucket, so even if we compute the hash
42
   value for the wrong symbol name, we'll still find a symbol that
43
   matches.  */
44
int a;
45
int b;
46
int a1;
47
int b1;
48
int a2;
49
int b2;
50
int a12;
51
int b12;
52
int a3;
53
int b3;
54
int a13;
55
int b13;
56
int a23;
57
int b23;
58
int a123;
59
int b123;
60
int a4;
61
int b4;
62
int a14;
63
int b14;
64
int a24;
65
int b24;
66
int a124;
67
int b124;
68
int a34;
69
int b34;
70
int a134;
71
int b134;
72
int a234;
73
int b234;
74
int a1234;
75
int b1234;
76
int a5;
77
int b5;
78
int a15;
79
int b15;
80
int a25;
81
int b25;
82
int a125;
83
int b125;
84
int a35;
85
int b35;
86
int a135;
87
int b135;
88
int a235;
89
int b235;
90
int a1235;
91
int b1235;
92
int a45;
93
int b45;
94
int a145;
95
int b145;
96
int a245;
97
int b245;
98
int a1245;
99
int b1245;
100
int a345;
101
int b345;
102
int a1345;
103
int b1345;
104
int a2345;
105
int b2345;
106
int a12345;
107
int b12345;
108
int a6;
109
int b6;
110
int a16;
111
int b16;
112
int a26;
113
int b26;
114
int a126;
115
int b126;
116
int a36;
117
int b36;
118
int a136;
119
int b136;
120
int a236;
121
int b236;
122
int a1236;
123
int b1236;
124
int a46;
125
int b46;
126
int a146;
127
int b146;
128
int a246;
129
int b246;
130
int a1246;
131
int b1246;
132
int a346;
133
int b346;
134
int a1346;
135
int b1346;
136
int a2346;
137
int b2346;
138
int a12346;
139
int b12346;
140
int a56;
141
int b56;
142
int a156;
143
int b156;
144
int a256;
145
int b256;
146
int a1256;
147
int b1256;
148
int a356;
149
int b356;
150
int a1356;
151
int b1356;
152
int a2356;
153
int b2356;
154
int a12356;
155
int b12356;
156
int a456;
157
int b456;
158
int a1456;
159
int b1456;
160
int a2456;
161
int b2456;
162
int a12456;
163
int b12456;
164
int a3456;
165
int b3456;
166
int a13456;
167
int b13456;
168
int a23456;
169
int b23456;
170
int a123456;
171
int b123456;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.