[PATCH v5][pushed] Exit code of exited inferiors in -list-thread-groups

Yao Qi yao@codesourcery.com
Mon Oct 13 03:22:00 GMT 2014


Simon Marchi <simon.marchi@ericsson.com> writes:

> diff --git a/gdb/testsuite/gdb.mi/mi-exit-code.c b/gdb/testsuite/gdb.mi/mi-exit-code.c
> new file mode 100644
> index 0000000..df711a6
> --- /dev/null
> +++ b/gdb/testsuite/gdb.mi/mi-exit-code.c
> @@ -0,0 +1,27 @@
> +/* Copyright 1999-2014 Free Software Foundation, Inc.

The copyright year should be 2013 - 2014, because mi-exit-code.c was
posted in 2013.  This applies to mi-exit-code.exp too.

> +
> +int exit_code = 0;
> +
> +int
> +main (int argc, char **argv)
> +{
> +  if (argc > 1)
> +    exit_code = atoi (argv[1]);

I am looking at argv[] uses in gdb testsuite, and that is why I am
directed here.  exit_code is set by gdb, so do we still need these two
lines above?

> +
> +  return exit_code;
> +}

-- 
Yao (齐尧)



More information about the Gdb-patches mailing list