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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [gdb/] [testsuite/] [gdb.base/] [opaque0.c] - Rev 834

Go to most recent revision | Compare with Previous | Blame | View Log

/*  Note that struct foo is opaque (never defined) in this file.  This
    is allowed by C since this file does not reference any members of
    the structure.  The debugger needs to be able to associate this
    opaque structure definition with the full definition in another
    file.
*/
 
struct foo *foop;
extern struct foo *getfoo ();
#ifdef PROTOTYPES
extern void putfoo (struct foo *foop);
#endif
 
int main ()
{
#ifdef usestubs
    set_debug_traps();
    breakpoint();
#endif
    foop = getfoo ();
    putfoo (foop);
    return 0;
}
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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