gdbserver: boolify and defaultize the 'fetch' parameter of get_thread_regcache

Boolify the 'fetch' parameter of the get_thread_regcache function.

All of the current uses pass true for this parameter.  Therefore, define
its default value as true and remove the argument from the uses.

We still keep the parameter, though, to give downstream targets the
option to obtain a regcache without having to fetch the whole
contents.  Our (Intel) downstream target is an example.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
Tankut Baris Aktemur
2024-12-17 08:48:02 +01:00
parent 2903d61808
commit a2cc13fad6
12 changed files with 24 additions and 24 deletions

View File

@@ -1175,7 +1175,7 @@ prepare_resume_reply (char *buf, ptid_t ptid, const target_waitstatus &status)
switch_to_thread (the_target, ptid);
regcache = get_thread_regcache (current_thread, 1);
regcache = get_thread_regcache (current_thread);
if (the_target->stopped_by_watchpoint ())
{