OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gdb/] [gdb-6.8/] [gdb/] [testsuite/] [gdb.base/] [opaque0.c] - Blame information for rev 25

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 25 jlechner
/*  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
3
    the structure.  The debugger needs to be able to associate this
4
    opaque structure definition with the full definition in another
5
    file.
6
*/
7
 
8
struct foo *foop;
9
extern struct foo *getfoo ();
10
#ifdef PROTOTYPES
11
extern void putfoo (struct foo *foop);
12
#endif
13
 
14
int main ()
15
{
16
#ifdef usestubs
17
    set_debug_traps();
18
    breakpoint();
19
#endif
20
    foop = getfoo ();
21
    putfoo (foop);
22
    return 0;
23
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.