OLD | NEW |
1 /* | 1 /* |
2 * Test program for trace action commands | 2 * Test program for trace action commands |
3 */ | 3 */ |
4 | 4 |
5 #include <string.h> | 5 #include <string.h> |
6 | 6 |
7 static char gdb_char_test; | 7 static char gdb_char_test; |
8 static short gdb_short_test; | 8 static short gdb_short_test; |
9 static long gdb_long_test; | 9 static long gdb_long_test; |
10 static char gdb_arr_test[25]; | 10 static char gdb_arr_test[25]; |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 } | 112 } |
113 | 113 |
114 int | 114 int |
115 main (argc, argv, envp) | 115 main (argc, argv, envp) |
116 int argc; | 116 int argc; |
117 char *argv[], **envp; | 117 char *argv[], **envp; |
118 { | 118 { |
119 int i; | 119 int i; |
120 unsigned long myparms[10]; | 120 unsigned long myparms[10]; |
121 | 121 |
122 #ifdef usestubs | |
123 set_debug_traps (); | |
124 breakpoint (); | |
125 #endif | |
126 | |
127 begin (); | 122 begin (); |
128 for (i = 0; i < sizeof (myparms) / sizeof (myparms[0]); i++) | 123 for (i = 0; i < sizeof (myparms) / sizeof (myparms[0]); i++) |
129 myparms[i] = i; | 124 myparms[i] = i; |
130 | 125 |
131 gdb_c_test (&myparms[0]); | 126 gdb_c_test (&myparms[0]); |
132 | 127 |
133 end (); | 128 end (); |
134 return 0; | 129 return 0; |
135 } | 130 } |
136 | 131 |
OLD | NEW |