diff options
author | Tom Tromey <tom@tromey.com> | 2018-09-15 16:29:03 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-09-15 16:31:58 -0600 |
commit | cbaaa0cafcac0630c6f07f81663a1b10a4e197a0 (patch) | |
tree | f394637351b4dabedd9507e44387b2fdcb5fd41d /gdb/linux-tdep.c | |
parent | 3c3741435f315fba956bbace8c4991215e283510 (diff) | |
download | binutils-gdb-cbaaa0cafcac0630c6f07f81663a1b10a4e197a0.tar.gz |
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.
Diffstat (limited to 'gdb/linux-tdep.c')
-rw-r--r-- | gdb/linux-tdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/linux-tdep.c b/gdb/linux-tdep.c index 5801ab5222f..5bfd7ed92f9 100644 --- a/gdb/linux-tdep.c +++ b/gdb/linux-tdep.c @@ -1728,7 +1728,7 @@ linux_fill_prpsinfo (struct elf_internal_linux_prpsinfo *p) char filename[100]; /* The basename of the executable. */ const char *basename; - char *infargs; + const char *infargs; /* Temporary buffer. */ char *tmpstr; /* The valid states of a process, according to the Linux kernel. */ |