This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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 (éå)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]