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

Side by Side Diff: gdb/testsuite/gdb.python/py-symbol.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.python/py-shared.exp ('k') | gdb/testsuite/gdb.python/py-symbol.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 2010-2012 Free Software Foundation, Inc. 3 Copyright 2010-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 17 matching lines...) Expand all
28 i = arg; 28 i = arg;
29 } 29 }
30 30
31 int valueofi (void) 31 int valueofi (void)
32 { 32 {
33 return i; /* Break in class. */ 33 return i; /* Break in class. */
34 } 34 }
35 }; 35 };
36 #endif 36 #endif
37 37
38 int qq = 72; /* line of qq */
39
38 int func (int arg) 40 int func (int arg)
39 { 41 {
40 int i = 2; 42 int i = 2;
41 i = i * arg; 43 i = i * arg; /* Block break here. */
42 return arg; /* Block break here. */ 44 return arg;
43 } 45 }
44 46
47 struct simple_struct
48 {
49 int a;
50 };
51
45 int main (int argc, char *argv[]) 52 int main (int argc, char *argv[])
46 { 53 {
47 #ifdef __cplusplus 54 #ifdef __cplusplus
48 SimpleClass sclass; 55 SimpleClass sclass;
49 #endif 56 #endif
50 int a = 0; 57 int a = 0;
51 int result; 58 int result;
59 struct simple_struct ss = { 10 };
52 enum tag {one, two, three}; 60 enum tag {one, two, three};
53 enum tag t = one; 61 enum tag t = one;
54 62
55 result = func (42); 63 result = func (42);
56 64
57 #ifdef __cplusplus 65 #ifdef __cplusplus
58 sclass.seti (42); 66 sclass.seti (42);
59 sclass.valueofi (); 67 sclass.valueofi ();
60 #endif 68 #endif
61 return 0; /* Break at end. */ 69 return 0; /* Break at end. */
62 } 70 }
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.python/py-shared.exp ('k') | gdb/testsuite/gdb.python/py-symbol.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698