aboutsummaryrefslogtreecommitdiff
path: root/gdb/nat
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-09-07 09:03:43 -0600
committerTom Tromey <tromey@adacore.com>2023-12-01 10:36:00 -0700
commit31141b552026de77f737c92c7a41789102bae8dc (patch)
tree7be475a98bf1c14d2f28fa662cd47023a7c62513 /gdb/nat
parent9d8fc40eb0e611162844eb7b89f1c76875153fbe (diff)
downloadbinutils-31141b552026de77f737c92c7a41789102bae8dc.zip
binutils-31141b552026de77f737c92c7a41789102bae8dc.tar.gz
binutils-31141b552026de77f737c92c7a41789102bae8dc.tar.bz2
Minor cleanup in linux_proc_attach_tgid_threads
linux_proc_attach_tgid_threads computes a file name, and then re-computes it for a warning. It is better to reuse the already-computed name here. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/nat')
-rw-r--r--gdb/nat/linux-procfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/nat/linux-procfs.c b/gdb/nat/linux-procfs.c
index 9c2d1be..95ecae4 100644
--- a/gdb/nat/linux-procfs.c
+++ b/gdb/nat/linux-procfs.c
@@ -287,7 +287,7 @@ linux_proc_attach_tgid_threads (pid_t pid,
dir = opendir (pathname);
if (dir == NULL)
{
- warning (_("Could not open /proc/%ld/task."), (long) pid);
+ warning (_("Could not open %s."), pathname);
return;
}