forked from Imagelibrary/binutils-gdb
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:
@@ -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 ())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user