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

Side by Side Diff: gdb/testsuite/gdb.base/return.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/restore.exp ('k') | gdb/testsuite/gdb.base/return-nodebug.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 /* Test "return" command. */ 2 /* Test "return" command. */
3 3
4 void func1 () 4 void func1 ()
5 { 5 {
6 printf("in func1\n"); 6 printf("in func1\n");
7 } 7 }
8 8
9 int 9 int
10 func2 () 10 func2 ()
11 { 11 {
12 return -5; 12 return -5;
13 } 13 }
14 14
15 double 15 double
16 func3 () 16 func3 ()
17 { 17 {
18 return -5.0; 18 return -5.0;
19 } 19 }
20 20
21 int tmp2; 21 int tmp2;
22 double tmp3; 22 double tmp3;
23 23
24 int main () 24 int main ()
25 { 25 {
26 #ifdef usestubs
27 set_debug_traps();
28 breakpoint();
29 #endif
30 func1 (); 26 func1 ();
31 printf("in main after func1\n"); 27 printf("in main after func1\n");
32 tmp2 = func2 (); 28 tmp2 = func2 ();
33 tmp3 = func3 (); 29 tmp3 = func3 ();
34 printf("exiting\n"); 30 printf("exiting\n");
35 return 0; 31 return 0;
36 } 32 }
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.base/restore.exp ('k') | gdb/testsuite/gdb.base/return-nodebug.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698