mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
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.
This commit is contained in:
@@ -154,7 +154,7 @@ show_inferior_tty_command (struct ui_file *file, int from_tty,
|
||||
"is \"%s\".\n"), inferior_io_terminal);
|
||||
}
|
||||
|
||||
char *
|
||||
const char *
|
||||
get_inferior_args (void)
|
||||
{
|
||||
if (current_inferior ()->argc != 0)
|
||||
|
||||
Reference in New Issue
Block a user