Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(876)

Side by Side Diff: gdb/testsuite/gdb.base/macscp1.c

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gdb/testsuite/gdb.base/macscp.exp ('k') | gdb/testsuite/gdb.base/maint.exp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include <stdio.h> 1 #include <stdio.h>
2 2
3 #define SPLICE(a, b) INNER_SPLICE(a, b) 3 #define SPLICE(a, b) INNER_SPLICE(a, b)
4 #define INNER_SPLICE(a, b) a ## b 4 #define INNER_SPLICE(a, b) a ## b
5 #define STRINGIFY(a) INNER_STRINGIFY(a) 5 #define STRINGIFY(a) INNER_STRINGIFY(a)
6 #define INNER_STRINGIFY(a) #a 6 #define INNER_STRINGIFY(a) #a
7 7
8 #define FIFTY_SEVEN 57 8 #define FIFTY_SEVEN 57
9 9
10 #define FORTY_EIGHT 48 10 #define FORTY_EIGHT 48
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 puts ("macscp1_3"); 82 puts ("macscp1_3");
83 } 83 }
84 84
85 void 85 void
86 macscp_expr (void) 86 macscp_expr (void)
87 { 87 {
88 int foo = -1; 88 int foo = -1;
89 89
90 foo = 0; /* set breakpoint here */ 90 foo = 0; /* set breakpoint here */
91 #define MACRO_TO_EXPAND foo 91 #define MACRO_TO_EXPAND foo
92 foo = 1; 92 foo = 1;» » » /* set second breakpoint here */
93 #undef MACRO_TO_EXPAND 93 #undef MACRO_TO_EXPAND
94 foo = 2; 94 foo = 2;» » » /* stopping point for line test */
95 } 95 }
96 96
97 #define TWENTY_THREE 23 97 #define TWENTY_THREE 23
98 98
99 int 99 int
100 main (int argc, char **argv) 100 main (int argc, char **argv)
101 { 101 {
102 macscp1_1 (); 102 macscp1_1 ();
103 macscp2_1 (); 103 macscp2_1 ();
104 macscp4_1_from_macscp2 (); 104 macscp4_1_from_macscp2 ();
105 macscp4_2_from_macscp2 (); 105 macscp4_2_from_macscp2 ();
106 macscp2_2 (); 106 macscp2_2 ();
107 macscp1_2 (); 107 macscp1_2 ();
108 macscp3_1 (); 108 macscp3_1 ();
109 macscp4_1_from_macscp3 (); 109 macscp4_1_from_macscp3 ();
110 macscp4_2_from_macscp3 (); 110 macscp4_2_from_macscp3 ();
111 macscp3_2 (); 111 macscp3_2 ();
112 macscp1_3 (); 112 macscp1_3 ();
113 macscp_expr (); 113 macscp_expr ();
114 } 114 }
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.base/macscp.exp ('k') | gdb/testsuite/gdb.base/maint.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698