mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-24 04:29:49 +00:00
* mep-tdep.c (current_me_module): Read from current regcache
instead of calling read_register. (current_options): Likewise.
This commit is contained in:
parent
1b5a9a8ffd
commit
3d1a74ac50
@ -1,3 +1,9 @@
|
||||
2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
|
||||
|
||||
* mep-tdep.c (current_me_module): Read from current regcache
|
||||
instead of calling read_register.
|
||||
(current_options): Likewise.
|
||||
|
||||
2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
|
||||
|
||||
* cris-tdep.c (cris_stopped_data_address): Read register values
|
||||
|
@ -850,7 +850,12 @@ static CONFIG_ATTR
|
||||
current_me_module ()
|
||||
{
|
||||
if (target_has_registers)
|
||||
return read_register (MEP_MODULE_REGNUM);
|
||||
{
|
||||
ULONGEST regval;
|
||||
regcache_cooked_read_unsigned (current_regcache,
|
||||
MEP_MODULE_REGNUM, ®val);
|
||||
return regval;
|
||||
}
|
||||
else
|
||||
return gdbarch_tdep (current_gdbarch)->me_module;
|
||||
}
|
||||
@ -868,7 +873,12 @@ static unsigned int
|
||||
current_options ()
|
||||
{
|
||||
if (target_has_registers)
|
||||
return read_register (MEP_OPT_REGNUM);
|
||||
{
|
||||
ULONGEST regval;
|
||||
regcache_cooked_read_unsigned (current_regcache,
|
||||
MEP_OPT_REGNUM, ®val);
|
||||
return regval;
|
||||
}
|
||||
else
|
||||
return me_module_opt (current_me_module ());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user