Change get_inferior_args to return const char *
authorTom Tromey <tom@tromey.com>
Sat, 15 Sep 2018 22:29:03 +0000 (16:29 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 15 Sep 2018 22:31:58 +0000 (16:31 -0600)
commitcbaaa0cafcac0630c6f07f81663a1b10a4e197a0
treef394637351b4dabedd9507e44387b2fdcb5fd41d
parent3c3741435f315fba956bbace8c4991215e283510
Change get_inferior_args to return const char *

I noticed that get_inferior_args should return const char *, because
it is just returning a reference to something owned by the inferior.

I'm checking this in.

gdb/ChangeLog
2018-09-15  Tom Tromey  <tom@tromey.com>

* infcmd.c (get_inferior_args): Return const char *.
* inferior.h (get_inferior_args): Return type now const.
* linux-tdep.c (linux_fill_prpsinfo): Update.
* procfs.c (procfs_target::make_corefile_notes): Update.
gdb/ChangeLog
gdb/infcmd.c
gdb/inferior.h
gdb/linux-tdep.c
gdb/procfs.c