[Lldb-commits] [PATCH] D10968: Use /proc/$$/stat instead of $PPID.

Oleksiy Vyalov ovyalov at google.com
Mon Jul 6 11:48:27 PDT 2015


ovyalov accepted this revision.

This revision is now accepted and ready to land.

lgtm


================
Comment at: test/tools/lldb-server/gdbremote_testcase.py:164
@@ -162,1 +163,3 @@
+            # [pid] ([executable]) [state] [*ppid*]
+            pid = re.match(r"^\d+ \(.+\) . (\d+)", shell_stat).group(1)
             ls_output = run_shell_cmd("ls -l /proc/%s/exe" % pid)
----------------
As for me, it might be easier to extract ppid from /proc/$$/status if it's available in old shells - but it's up to you.


http://reviews.llvm.org/D10968







More information about the lldb-commits mailing list