aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbthread.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-18 16:36:52 -0700
committerTom Tromey <tom@tromey.com>2023-01-20 11:02:23 -0700
commit6ec27270ff995940ffa532ee15414300782c30e8 (patch)
treeb998ec938089ca2fe192b5bd5d9cda7587f83521 /gdb/gdbthread.h
parent42938c1a5b84207e9b6526e56d8e57e1ad3bab5f (diff)
downloadgdb-6ec27270ff995940ffa532ee15414300782c30e8.zip
gdb-6ec27270ff995940ffa532ee15414300782c30e8.tar.gz
gdb-6ec27270ff995940ffa532ee15414300782c30e8.tar.bz2
Use bool in pc_in_* functions
I noticed that pc_in_unmapped_range had a weird return type -- it was returning a CORE_ADDR but intending to return a bool. This patch changes all the pc_in_* functions to return bool instead.
Diffstat (limited to 'gdb/gdbthread.h')
-rw-r--r--gdb/gdbthread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h
index 11d69fc..c0f27a8 100644
--- a/gdb/gdbthread.h
+++ b/gdb/gdbthread.h
@@ -892,7 +892,7 @@ extern void delete_exited_threads (void);
/* Return true if PC is in the stepping range of THREAD. */
-int pc_in_thread_step_range (CORE_ADDR pc, struct thread_info *thread);
+bool pc_in_thread_step_range (CORE_ADDR pc, struct thread_info *thread);
/* Enable storing stack temporaries for thread THR and disable and
clear the stack temporaries on destruction. Holds a strong