This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[rfc] read_register_gen(...) -> cooked_register_read (current_regcache,...)


Hello,

I wrote:

Note the fixme though:

+ /* FIXME: cagney/2002-06-26: This should be via the
+ gdbarch_register_read() method so that it, on the fly,
+ constructs either a raw or pseudo register from the raw
+ register cache. */
+ regcache_read (registers, regnum, bufferp);

I've opened a change-request against that one.
I'd like to propose a new pair of functions

cooked_register_read(regcache, regnum, buff)
cooked_register_write(regcache, regnum, buff)

that provide a superset of the functionality found in read_register_gen() and write_register_gen().

I'd also replace the read_register_gen() / write_register_gen() calls with calls to these functions but with a current_regcache parameter.

thoughts?

If this change looks good, I'm ready to do that long promised documentation.

enjoy,
Andrew



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]