[Guardsoft-cvs] guard/src/dbgsrv dbgsrv_gdbmi.c,1.2,1.3
Brought to you by:
jarrah
|
From: Greg W. <ja...@us...> - 2005-05-01 23:51:56
|
Update of /cvsroot/guardsoft/guard/src/dbgsrv In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16765 Modified Files: dbgsrv_gdbmi.c Log Message: New init() return value. Index: dbgsrv_gdbmi.c =================================================================== RCS file: /cvsroot/guardsoft/guard/src/dbgsrv/dbgsrv_gdbmi.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** dbgsrv_gdbmi.c 30 Apr 2005 22:50:28 -0000 1.2 --- dbgsrv_gdbmi.c 1 May 2005 23:51:46 -0000 1.3 *************** *** 90,95 **** void InitRegex(void); ! static int InitGDBMI(int *, int *); ! static int ReadGDBMI(int); dbgevent_t * DbgGDBMISetLineBreak(char *, int); --- 90,95 ---- void InitRegex(void); ! static dbgevent_t * InitGDBMI(int *, int *); ! static int ReadGDBMI(int); dbgevent_t * DbgGDBMISetLineBreak(char *, int); *************** *** 123,126 **** --- 123,128 ---- InitGDBMI, ReadGDBMI, + NULL, /* fillbuffer not used */ + NULL, /* progio_hook not used */ DbgGDBMISetLineBreak, DbgGDBMISetFuncBreak, *************** *** 145,150 **** DbgGDBMIAttach, DbgGDBMIFinish, - NULL, - NULL, DbgGDBMIReadyForCmd, DbgGDBMIOK, --- 147,150 ---- *************** *** 346,353 **** #endif /* DEBUG */ ! int InitGDBMI(int *rd, int *tty) { ! mi_aux_term *vt; MIHandle = mi_connect_local(); --- 346,354 ---- #endif /* DEBUG */ ! dbgevent_t * InitGDBMI(int *rd, int *tty) { ! dbgevent_t * e; ! mi_aux_term * vt; MIHandle = mi_connect_local(); *************** *** 355,360 **** if ( !MIHandle ) { ! fprintf(stderr, "%s\n", mi_get_error_str()); ! return -1; } --- 356,361 ---- if ( !MIHandle ) { ! EVENT_ERROR(e, DBGERR_DEBUGGER, (char *)mi_get_error_str()); ! return e; } *************** *** 388,392 **** Status = DBGSTAT_INITIALISING; ! return 0; } --- 389,393 ---- Status = DBGSTAT_INITIALISING; ! return NULL; } |