[v2,0/3] Fix attaching to process when it has zombie threads

Message ID 20240420055652.819024-1-thiago.bauermann@linaro.org
Headers
Series Fix attaching to process when it has zombie threads |

Message

Thiago Jung Bauermann April 20, 2024, 5:56 a.m. UTC
  Hello,

Thank you for your review of the patches! This version incorporates the
comments.

Luis suggested adding macros to identify the field indexes in
/proc/PID/stat, but Pedro doesn't think they help. I personally think they
help, but I agree that not by that much, so I don't have a strong opinion.

Since the previous version didn't have the macros, I'm sending v2 with
them so that it's easy to compare both and decide. I can remove the
macros if they're deemed unnecessary.

v1 of this series is here:

https://inbox.sourceware.org/gdb-patches/20240321231149.519549-1-thiago.bauermann@linaro.org/

Thiago Jung Bauermann (3):
  gdb/nat: Use procfs(5) indexes in linux_common_core_of_thread
  gdb/nat: Factor linux_proc_get_stat_field out of
    linux_common_core_of_thread
  gdb/nat/linux: Fix attaching to process when it has zombie threads

 gdb/nat/linux-osdata.c | 38 +++--------------
 gdb/nat/linux-osdata.h |  3 ++
 gdb/nat/linux-procfs.c | 96 ++++++++++++++++++++++++++++++++++++++++++
 gdb/nat/linux-procfs.h | 11 +++++
 4 files changed, 115 insertions(+), 33 deletions(-)


base-commit: edc27e2d90a2af3afddd68e7a534afcc428719e5