-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move current_regcache to regcache::current_regcache
This patches moves global variable current_regcache to a class regcache static variable (protected) so that the unit test I add in the following patch can access it (by means of extending class regcache in unit test). gdb: 2017-05-24 Yao Qi <[email protected]> * regcache.c (current_regcache): Change it to regcache::current_regcache. (regcache_observer_target_changed): Update. (regcache_thread_ptid_changed): Make it a regcache static method. (regcache_thread_ptid_changed): Update. (class regcache_access): New. (current_regcache_test): Update. (_initialize_regcache): Update. * regcache.h: Include forward_list. (regcache): Declare regcache_thread_ptid_changed and declare registers_changed_ptid as friend.
- Loading branch information
Yao Qi
committed
May 24, 2017
1 parent
d8e07dd
commit e521e87
Showing
3 changed files
with
52 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
2017-05-24 Yao Qi <[email protected]> | ||
|
||
* regcache.c (current_regcache): Change it to | ||
regcache::current_regcache. | ||
(regcache_observer_target_changed): Update. | ||
(regcache_thread_ptid_changed): Make it a regcache static | ||
method. | ||
(regcache_thread_ptid_changed): Update. | ||
(class regcache_access): New. | ||
(current_regcache_test): Update. | ||
(_initialize_regcache): Update. | ||
* regcache.h: Include forward_list. | ||
(regcache): Declare regcache_thread_ptid_changed and declare | ||
registers_changed_ptid as friend. | ||
|
||
2017-05-24 Yao Qi <[email protected]> | ||
|
||
* i387-tdep.c (i387_register_to_value): Use register_size | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters