This is the mail archive of the gdb-patches@sourceware.org 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]

Re: [PATCH] Removal of uses of MAX_REGISTER_SIZE


Alan Hayward <Alan.Hayward@arm.com> writes:

> +/* Make certain that the register cache is up-to-date with respect to the
> +   current thread.  */

Only register REGNUM is up-to-date.  REGCACHE has ptid, which may not be
the current thread.

/* Make certain that the register REGNUM in REGCACHE is up-to-date.  */

> +void regcache_raw_update (struct regcache *regcache, int regnum);
> +
> +enum register_status regcache_raw_read (struct regcache *regcache,
> +					int rawnum, gdb_byte *buf);

We've already had the declaration.

>  /* Transfer a raw register [0..NUM_REGS) between core-gdb and the
>     regcache.  The read variants return the status of the register.  */

-- 
Yao (齐尧)


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