diff options
author | Libor Bukata <libor.bukata@oracle.com> | 2021-07-14 13:19:51 +0000 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-07-14 20:47:51 -0400 |
commit | e22be21285391a557dafa4d9e6ff01288eca216a (patch) | |
tree | ad6193cbb0201e8d7c7295ea9c9b3e41ff14737d /gdb/procfs.c | |
parent | 600ac5b46138befa91a8c632ffb6c4ee34971ca4 (diff) | |
download | gdb-e22be21285391a557dafa4d9e6ff01288eca216a.zip gdb-e22be21285391a557dafa4d9e6ff01288eca216a.tar.gz gdb-e22be21285391a557dafa4d9e6ff01288eca216a.tar.bz2 |
[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 <libor.bukata@oracle.com>
* gdb/procfs.c (find_stop_signal): Use thread_info API.
Change-Id: I53bc57a05cd0eca5f28ef0726d6faeeb306e7904
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r-- | gdb/procfs.c | 4 |
1 files 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; } |