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

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

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 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/callexit.exp ('k') | gdb/testsuite/gdb.base/callfuncs.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 /* This testcase is part of GDB, the GNU debugger. 1 /* This testcase is part of GDB, the GNU debugger.
2 2
3 Copyright 1993-1995, 1998-2001, 2004, 2007-2012 Free Software 3 Copyright 1993-2013 Free Software Foundation, Inc.
4 Foundation, Inc.
5 4
6 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
7 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
8 the Free Software Foundation; either version 3 of the License, or 7 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version. 8 (at your option) any later version.
10 9
11 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,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details. 13 GNU General Public License for more details.
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 { 645 {
647 static int twentythree = 23; 646 static int twentythree = 23;
648 return &twentythree; 647 return &twentythree;
649 } 648 }
650 649
651 /* Gotta have a main to be able to generate a linked, runnable 650 /* Gotta have a main to be able to generate a linked, runnable
652 executable, and also provide a useful place to set a breakpoint. */ 651 executable, and also provide a useful place to set a breakpoint. */
653 652
654 int main () 653 int main ()
655 { 654 {
656 malloc(1); 655 void *p = malloc (1);
657 t_double_values(double_val1, double_val2); 656 t_double_values(double_val1, double_val2);
658 t_structs_c(struct_val1); 657 t_structs_c(struct_val1);
658 free (p);
659 return 0 ; 659 return 0 ;
660 } 660 }
661 661
662 static int 662 static int
663 Lcallfunc (int arg) 663 Lcallfunc (int arg)
664 { 664 {
665 return arg + 1; 665 return arg + 1;
666 } 666 }
667 667
668 int 668 int
669 callfunc (int (*func) (int value), int value) 669 callfunc (int (*func) (int value), int value)
670 { 670 {
671 return Lcallfunc (0) * 0 + func (value) * 2; 671 return Lcallfunc (0) * 0 + func (value) * 2;
672 } 672 }
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.base/callexit.exp ('k') | gdb/testsuite/gdb.base/callfuncs.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698