]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
linux-procfs: Handle lowercase "t (tracing stop)" state
authorPedro Alves <palves@redhat.com>
Mon, 25 Jul 2016 11:42:18 +0000 (12:42 +0100)
committerPedro Alves <palves@redhat.com>
Mon, 25 Jul 2016 11:58:38 +0000 (12:58 +0100)
commit0e1a6a5169023ee0c19de2c9160b469e43634b21
treec464c43d9c5585953e69e8444b606763bfb827c3
parentd617208bb06bd461b52ce041d89f7127e3044762
linux-procfs: Handle lowercase "t (tracing stop)" state

Since Linux 2.6.33, /proc/PID/status shows "t (tracing stop)", with
lowercase 't'.  Because GDB is only expecting "T (tracing stop)", GDB
can incorrectly suppress errors in check_ptrace_stopped_lwp_gone:

 1578          if (!check_ptrace_stopped_lwp_gone (lp))
 1579            throw_exception (ex);

Ref: https://sourceware.org/ml/gdb-patches/2016-06/msg00072.html

2016-07-25  Pedro Alves  <palves@redhat.com>
    Jan Kratochvil  <jan.kratochvil@redhat.com>

* nat/linux-procfs.c (parse_proc_status_state): Handle lowercase
't'.
gdb/ChangeLog
gdb/nat/linux-procfs.c