diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-11-02 20:06:56 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-11-02 20:06:56 +0000 |
commit | 192dbe338905e5322ae3f10f53f788671fed5462 (patch) | |
tree | de0c497385978e9c86a6dd4b52fdcb4c2c797fc6 /gdb | |
parent | b59ff9d5ff023638dba11477c822313178d14e4d (diff) | |
download | gdb-192dbe338905e5322ae3f10f53f788671fed5462.zip gdb-192dbe338905e5322ae3f10f53f788671fed5462.tar.gz gdb-192dbe338905e5322ae3f10f53f788671fed5462.tar.bz2 |
2002-11-02 Andrew Cagney <ac131313@redhat.com>
* regcache.h: Add coment indicating replacements for deprecated
functions.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/regcache.h | 20 |
2 files changed, 21 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 61f6723..3599948 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-11-02 Andrew Cagney <ac131313@redhat.com> + + * regcache.h: Add coment indicating replacements for deprecated + functions. + 2002-11-02 Andrew Cagney <cagney@redhat.com> * reggroups.h, reggroups.c: New files. diff --git a/gdb/regcache.h b/gdb/regcache.h index 48112b3..a15fc36 100644 --- a/gdb/regcache.h +++ b/gdb/regcache.h @@ -169,8 +169,24 @@ extern struct regcache *regcache_dup_no_passthrough (struct regcache *regcache); extern void regcache_cpy (struct regcache *dest, struct regcache *src); extern void regcache_cpy_no_passthrough (struct regcache *dest, struct regcache *src); +/* NOTE: cagney/2002-11-02: The below have been superseded by the + regcache_cooked_*() functions found above, and the frame_*() + functions found in "frame.h". Take care though, often more than a + simple substitution is required when updating the code. The + change, as far as practical, should avoid adding references to + global variables (e.g., current_regcache, current_frame, + current_gdbarch or selected_frame) and instead refer to the FRAME + or REGCACHE that has been passed into the containing function as + parameters. Consequently, the change typically involves modifying + the containing function so that it takes a FRAME or REGCACHE + parameter. In the case of an architecture vector method, there + should already be a non-deprecated variant that is parameterized + with FRAME or REGCACHE. */ + extern char *deprecated_grub_regcache_for_registers (struct regcache *); extern char *deprecated_grub_regcache_for_register_valid (struct regcache *); +extern void deprecated_read_register_gen (int regnum, char *myaddr); +extern void deprecated_write_register_gen (int regnum, char *myaddr); extern int register_cached (int regnum); @@ -184,10 +200,6 @@ extern void registers_fetched (void); extern void read_register_bytes (int regbyte, char *myaddr, int len); -extern void deprecated_read_register_gen (int regnum, char *myaddr); - -extern void deprecated_write_register_gen (int regnum, char *myaddr); - extern void write_register_bytes (int regbyte, char *myaddr, int len); /* Rename to read_unsigned_register()? */ |