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

Side by Side Diff: gdb/testsuite/gdb.base/opaque0.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/opaque.exp ('k') | gdb/testsuite/gdb.base/overlays.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 /* Note that struct foo is opaque (never defined) in this file. This 1 /* Note that struct foo is opaque (never defined) in this file. This
2 is allowed by C since this file does not reference any members of 2 is allowed by C since this file does not reference any members of
3 the structure. The debugger needs to be able to associate this 3 the structure. The debugger needs to be able to associate this
4 opaque structure definition with the full definition in another 4 opaque structure definition with the full definition in another
5 file. 5 file.
6 */ 6 */
7 7
8 struct foo *foop; 8 struct foo *foop;
9 extern struct foo *getfoo (); 9 extern struct foo *getfoo ();
10 #ifdef PROTOTYPES 10 #ifdef PROTOTYPES
11 extern void putfoo (struct foo *foop); 11 extern void putfoo (struct foo *foop);
12 #endif 12 #endif
13 13
14 int main () 14 int main ()
15 { 15 {
16 #ifdef usestubs
17 set_debug_traps();
18 breakpoint();
19 #endif
20 foop = getfoo (); 16 foop = getfoo ();
21 putfoo (foop); 17 putfoo (foop);
22 return 0; 18 return 0;
23 } 19 }
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.base/opaque.exp ('k') | gdb/testsuite/gdb.base/overlays.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698