Re: [Cgdb-devel] TGDB architecture
Brought to you by:
bobbybrasko,
crouchingturbo
From: Bob R. <bo...@br...> - 2003-09-13 17:08:27
|
> > > What is the recovery when gdb goes to debugger heaven ? > >=20 > > TGDB has no problem when GDB crashes. I think that what you mean here, > > right? > >=20 > > Currently, it return TGDB_QUIT to the front end, and then CGDB just > > shuts down. It appears that CGDB doesn't work properly but thats just > > what we decided to do for now. The reason is because TGDB just reads a > > 'EOF' when TGDB dies, and currently it doesn't know if the EOF is > > because of normal or abnormal termination. >=20 > Couldn't we check the return val of a waitpid call when we receive the > EOF? That's the usual manner to check to see if a program exited > abnormally. Yeah, that seems like a good idea. Then I could return things like TGDB_QUIT_NORMAL and TGDB_QUIT_ABNORMAL with an error code or something. Unfortunatly, I have a feeling this will be somewhat non-portable. I'll look into it. Bob Rossi |