vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| anoop.vijayan@gmail.com wrote: > How can i return the exit value of a program, debugged undex dbx, to > the shell (when dbx exits) ? You can't. The exit status is returned to the parent, or to init if the parent dies first; the child gets inherited by init in this case. Besides that, I don't think that dbx allows you specify an exit value in any event. Why would you need to accomplish this? |
| |||
| I am doing some automated testing under dbx control. So from a shell script I am invoking dbx and executing the target program. I rely on the exit code feature to determine whether the test passed or failed. So only if dbx exits with the exit code of the target program, I can verify it from the shell. I know gdb allows an exit value to be mentioned with the quit command. Is there any way that I can acccomplish my requirement with dbx (including the plugin options)? |