Fri Jan 29 16:44:01 1999 Edith Epstein <eepstein@sophia.cygnus.com>

* inferior.h: ran indent

	* fork-child.c: ran indent

	* infrun.c : ran indent
This commit is contained in:
Edith Epstein 1999-01-29 21:47:09 +00:00
parent fbd641cbd3
commit 34adffbd05
2 changed files with 184 additions and 164 deletions

View File

@ -1,3 +1,11 @@
Fri Jan 29 16:44:01 1999 Edith Epstein <eepstein@sophia.cygnus.com>
* inferior.h: ran indent
* fork-child.c: ran indent
* infrun.c : ran indent
Fri Jan 29 12:57:34 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* infrun.c (_initialize_infrun): do not stop or print anything

View File

@ -60,15 +60,18 @@ char **argv;
#if DEBUGGING
printf ("breakup_args: input = %s\n", scratch);
#endif
for (;;) {
for (;;)
{
/* Scan past leading separators */
while (*cp == ' ' || *cp == '\t' || *cp == '\n') {
while (*cp == ' ' || *cp == '\t' || *cp == '\n')
{
cp++;
}
/* Break if at end of string */
if (*cp == '\0') break;
if (*cp == '\0')
break;
/* Take an arg */
*argv++ = cp;
@ -134,7 +137,8 @@ fork_inferior (exec_file, allargs, env, traceme_fun, init_trace_fun,
* If 0, we'll just do a fork/exec, no shell, so don't
* bother figuring out what shell.
*/
if (STARTUP_WITH_SHELL) {
if (STARTUP_WITH_SHELL)
{
/* Figure out what shell to start up the user program under. */
if (shell_file == NULL)
shell_file = getenv ("SHELL");
@ -161,7 +165,8 @@ fork_inferior (exec_file, allargs, env, traceme_fun, init_trace_fun,
shell_command[0] = '\0';
#endif
if (!shell) {
if (!shell)
{
/* We're going to call execvp. Create argv */
/* Largest case: every other character is a separate arg */
#if DEBUGGING
@ -176,7 +181,9 @@ fork_inferior (exec_file, allargs, env, traceme_fun, init_trace_fun,
argv[0] = exec_file;
breakup_args (allargs, &argv[1]);
} else {
}
else
{
/* We're going to call a shell */
@ -325,7 +332,8 @@ fork_inferior (exec_file, allargs, env, traceme_fun, init_trace_fun,
* don't do .cshrc file. Doing .cshrc may cause fork/exec
* events which will confuse debugger start-up code.
*/
if (shell) {
if (shell)
{
#if 0
/* HP change is problematic. The -f option has different meanings
@ -342,14 +350,17 @@ fork_inferior (exec_file, allargs, env, traceme_fun, init_trace_fun,
safe_strerror (errno));
gdb_flush (gdb_stderr);
_exit (0177);
} else {
}
else
{
/* Otherwise, we directly exec the target program with execvp. */
int i;
char *errstring;
#if DEBUGGING
printf ("about to exec target, exec_file = %s\n", exec_file);
i = 0;
while (argv[i] != NULL) {
while (argv[i] != NULL)
{
printf ("strlen(argv[%d]) is %d\n", i, strlen (argv[i]));
printf ("argv[%d] is %s\n", i, argv[i]);
i++;
@ -362,7 +373,8 @@ fork_inferior (exec_file, allargs, env, traceme_fun, init_trace_fun,
fprintf_unfiltered (gdb_stderr, "Cannot exec %s ", exec_file);
i = 1;
while (argv[i] != NULL) {
while (argv[i] != NULL)
{
if (i != 1)
fprintf_unfiltered (gdb_stderr, " ");
fprintf_unfiltered (gdb_stderr, "%s", argv[i]);