OLD | NEW |
1 /* This test script is part of GDB, the GNU debugger. | 1 /* This test script is part of GDB, the GNU debugger. |
2 | 2 |
3 Copyright 2006-2012 Free Software Foundation, Inc. | 3 Copyright 2006-2012 Free Software Foundation, Inc. |
4 | 4 |
5 This program is free software; you can redistribute it and/or modify | 5 This program is free software; you can redistribute it and/or modify |
6 it under the terms of the GNU General Public License as published by | 6 it under the terms of the GNU General Public License as published by |
7 the Free Software Foundation; either version 3 of the License, or | 7 the Free Software Foundation; either version 3 of the License, or |
8 (at your option) any later version. | 8 (at your option) any later version. |
9 | 9 |
10 This program is distributed in the hope that it will be useful, | 10 This program is distributed in the hope that it will be useful, |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 int mf2(MultiChild& C) | 54 int mf2(MultiChild& C) |
55 { | 55 { |
56 return mf1(C); | 56 return mf1(C); |
57 } | 57 } |
58 | 58 |
59 int main(void) | 59 int main(void) |
60 { | 60 { |
61 Child Q(42); | 61 Child Q(42); |
62 Child& QR = Q; | 62 Child& QR = Q; |
63 | 63 |
64 #ifdef usestubs | |
65 set_debug_traps(); | |
66 breakpoint(); | |
67 #endif | |
68 | |
69 /* Set breakpoint marker1 here. */ | 64 /* Set breakpoint marker1 here. */ |
70 | 65 |
71 f2(Q); | 66 f2(Q); |
72 f2(QR); | 67 f2(QR); |
73 | 68 |
74 MultiChild MQ(53); | 69 MultiChild MQ(53); |
75 MultiChild& MQR = MQ; | 70 MultiChild& MQR = MQ; |
76 | 71 |
77 mf2(MQ); /* Set breakpoint MQ here. */ | 72 mf2(MQ); /* Set breakpoint MQ here. */ |
78 } | 73 } |
OLD | NEW |