From e22be21285391a557dafa4d9e6ff01288eca216a Mon Sep 17 00:00:00 2001 From: Libor Bukata Date: Wed, 14 Jul 2021 13:19:51 +0000 Subject: [gdb/procfs.c] Fix build failure in find_stop_signal It fixes a regression caused by commit 1edb66d856c82c389edfd7610143236a68c76846 where thread_info::suspend was made private. The public thread_info API has to be used to get stop signal and avoid build failures. gdb/ChangeLog: 2021-07-14 Libor Bukata * gdb/procfs.c (find_stop_signal): Use thread_info API. Change-Id: I53bc57a05cd0eca5f28ef0726d6faeeb306e7904 --- gdb/procfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/procfs.c b/gdb/procfs.c index 529ee33..8343865 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -3576,7 +3576,7 @@ procfs_corefile_thread_callback (procinfo *pi, procinfo *thread, void *data) static int find_signalled_thread (struct thread_info *info, void *data) { - if (info->suspend.stop_signal != GDB_SIGNAL_0 + if (info->stop_signal () != GDB_SIGNAL_0 && info->ptid.pid () == inferior_ptid.pid ()) return 1; @@ -3590,7 +3590,7 @@ find_stop_signal (void) iterate_over_threads (find_signalled_thread, NULL); if (info) - return info->suspend.stop_signal; + return info->stop_signal (); else return GDB_SIGNAL_0; } -- cgit v1.1