aboutsummaryrefslogtreecommitdiff
path: root/gdb/nat
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/nat')
-rw-r--r--gdb/nat/linux-osdata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/nat/linux-osdata.c b/gdb/nat/linux-osdata.c
index 9850cad..7d603a6 100644
--- a/gdb/nat/linux-osdata.c
+++ b/gdb/nat/linux-osdata.c
@@ -150,7 +150,7 @@ command_from_pid (char *command, int maxlen, PID_T pid)
static char *
commandline_from_pid (PID_T pid)
{
- std::string pathname = xstrprintf ("/proc/%lld/cmdline", pid);
+ std::string pathname = string_printf ("/proc/%lld/cmdline", pid);
char *commandline = NULL;
gdb_file_up f = gdb_fopen_cloexec (pathname, "r");